Commit 06b7d0e1 authored by renjintao's avatar renjintao

aps/plan/index outPar

parent fde723ed
......@@ -177,7 +177,7 @@ export default {
statuList:
this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [],
name: "",
item: null,
items: null,
title: "",
details: null,
uId: "",
......@@ -229,25 +229,22 @@ export default {
key: "isSupportingFinish",
title: this.l("isSupportingFinish"),
align: "center",
high: true,
render: (h, params) => {
return h("div", { class: "action" }, [
h(
"op",
{
attrs: {
oprate: "detail",
},
style: {
color: this.setName(params.row.isSupportingFinish).color,
},
on: {
click: () => this.openAccessory(params.row),
},
return h(
"op",
{
attrs: {
oprate: "detail",
},
this.setName(params.row.isSupportingFinish).name
),
]);
style: {
color: this.setName(params.row.isSupportingFinish).color,
},
on: {
click: () => this.openAccessory(params.row),
},
},
this.setName(params.row.isSupportingFinish).name
);
},
},
{
......@@ -787,6 +784,10 @@ export default {
},
//配套申请
setName(v) {
let outPar = {
name: "",
color: "",
};
if ((v + "").indexOf(",") == -1) {
var item;
this.statuList.map((u) => {
......@@ -795,13 +796,14 @@ export default {
}
});
if (item) {
this.item = item;
} else {
this.item.name = " ";
this.item.color = "";
}
//this.items = item;
outPar = {
name: item.name,
color: item.color,
};
}
}
return this.item;
return outPar;
},
openAccessory(row) {
this.orderId = row.id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment