Commit 2be75094 authored by renjintao's avatar renjintao

detail

parent fca87e43
......@@ -44,6 +44,8 @@ export default {
return {
disabled: false,
deletelModal: false,
statuList: this.$store.getters.dictionaryByKey("accessory.status") || [],
statuList1: this.$store.getters.dictionaryByKey("outstore.status") || [],
curId: 0,
editIndex: -1,
editNum: "",
......@@ -74,6 +76,17 @@ export default {
title: this.l("status"),
align: "center",
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",
......@@ -135,7 +148,8 @@ export default {
}
});
},
application(type, arr) {//撤回配套申请 type:0 单条 1 全部
application(type, arr) {
//撤回配套申请 type:0 单条 1 全部
let parms = [];
if (type == 0) {
parms.push(arr.id);
......@@ -144,14 +158,36 @@ export default {
parms.push(ele.id);
});
}
Api.batchdelete(parms).then(res=>{
if(res.success&&res.result)
{
Api.batchdelete(parms).then((res) => {
if (res.success && res.result) {
this.$Message.success("撤销成功");
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) {
let vkey = "support_item" + "." + key;
......
......@@ -5,7 +5,7 @@
订单编号:{{mesCodes}}
<span class="ml20">产品名称:{{productNames}}</span>
<span class="ml20">生产数量:{{counts}}</span>
<span class="fr mr20">
<span class="fr mr20" v-if="false">
<a href="javascript:;">出库单</a>
</span>
<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