Commit 06b7d0e1 authored by renjintao's avatar renjintao

aps/plan/index outPar

parent fde723ed
...@@ -177,7 +177,7 @@ export default { ...@@ -177,7 +177,7 @@ export default {
statuList: statuList:
this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [], this.$store.getters.dictionaryByKey("aps.plan.supportingStatus") || [],
name: "", name: "",
item: null, items: null,
title: "", title: "",
details: null, details: null,
uId: "", uId: "",
...@@ -229,25 +229,22 @@ export default { ...@@ -229,25 +229,22 @@ export default {
key: "isSupportingFinish", key: "isSupportingFinish",
title: this.l("isSupportingFinish"), title: this.l("isSupportingFinish"),
align: "center", align: "center",
high: true,
render: (h, params) => { render: (h, params) => {
return h("div", { class: "action" }, [ return h(
h( "op",
"op", {
{ attrs: {
attrs: { oprate: "detail",
oprate: "detail",
},
style: {
color: this.setName(params.row.isSupportingFinish).color,
},
on: {
click: () => this.openAccessory(params.row),
},
}, },
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 { ...@@ -787,6 +784,10 @@ export default {
}, },
//配套申请 //配套申请
setName(v) { setName(v) {
let outPar = {
name: "",
color: "",
};
if ((v + "").indexOf(",") == -1) { if ((v + "").indexOf(",") == -1) {
var item; var item;
this.statuList.map((u) => { this.statuList.map((u) => {
...@@ -795,13 +796,14 @@ export default { ...@@ -795,13 +796,14 @@ export default {
} }
}); });
if (item) { if (item) {
this.item = item; //this.items = item;
} else { outPar = {
this.item.name = " "; name: item.name,
this.item.color = ""; color: item.color,
} };
}
} }
return this.item; return outPar;
}, },
openAccessory(row) { openAccessory(row) {
this.orderId = row.id; 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