Commit 2be75094 authored by renjintao's avatar renjintao

detail

parent fca87e43
...@@ -44,6 +44,8 @@ export default { ...@@ -44,6 +44,8 @@ export default {
return { return {
disabled: false, disabled: false,
deletelModal: false, deletelModal: false,
statuList: this.$store.getters.dictionaryByKey("accessory.status") || [],
statuList1: this.$store.getters.dictionaryByKey("outstore.status") || [],
curId: 0, curId: 0,
editIndex: -1, editIndex: -1,
editNum: "", editNum: "",
...@@ -74,6 +76,17 @@ export default { ...@@ -74,6 +76,17 @@ export default {
title: this.l("status"), title: this.l("status"),
align: "center", align: "center",
width: 120, width: 120,
render: (h, params) => {
return h(
"span",
{
style: {
color: this.setName(this.statuList1, params.row.status).color,
},
},
this.setName(this.statuList1, params.row.status).name
);
},
}, },
{ {
key: "remark", key: "remark",
...@@ -135,7 +148,8 @@ export default { ...@@ -135,7 +148,8 @@ export default {
} }
}); });
}, },
application(type, arr) {//撤回配套申请 type:0 单条 1 全部 application(type, arr) {
//撤回配套申请 type:0 单条 1 全部
let parms = []; let parms = [];
if (type == 0) { if (type == 0) {
parms.push(arr.id); parms.push(arr.id);
...@@ -144,16 +158,38 @@ export default { ...@@ -144,16 +158,38 @@ export default {
parms.push(ele.id); parms.push(ele.id);
}); });
} }
Api.batchdelete(parms).then(res=>{ Api.batchdelete(parms).then((res) => {
if(res.success&&res.result) if (res.success && res.result) {
{
this.$Message.success("撤销成功"); this.$Message.success("撤销成功");
this.load(this.eid); this.load(this.eid);
this.$emit('on-ok') this.$emit("on-ok");
} }
}) });
},
//配套申请
setName(list, v) {
let outPar = {
name: "",
color: "",
};
if ((v + "").indexOf(",") == -1) {
var item;
list.map((u) => {
if (u.code == v) {
item = u;
}
});
if (item) {
//this.items = item;
outPar = {
name: item.name,
color: item.color,
};
}
}
return outPar;
}, },
l(key) { l(key) {
let vkey = "support_item" + "." + key; let vkey = "support_item" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
订单编号:{{mesCodes}} 订单编号:{{mesCodes}}
<span class="ml20">产品名称:{{productNames}}</span> <span class="ml20">产品名称:{{productNames}}</span>
<span class="ml20">生产数量:{{counts}}</span> <span class="ml20">生产数量:{{counts}}</span>
<span class="fr mr20"> <span class="fr mr20" v-if="false">
<a href="javascript:;">出库单</a> <a href="javascript:;">出库单</a>
</span> </span>
<span class="fr mr20"> <span class="fr mr20">
......
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