Commit 03205fa2 authored by renjintao's avatar renjintao

supportMainId

parent 3cb02a8a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<Content> <Content>
<div class="mb20" v-for="(item,index) in datas" :key="index"> <div class="mb20" v-for="(item,index) in datas" :key="index">
<p class="fwBold" :id="'item'+index"> <p class="fwBold" :id="'item'+index">
<span >申请编号:{{item.code}}</span> <span>申请编号:{{item.code}}</span>
<span class="ml20">齐套日期:{{item.finishDate}}</span> <span class="ml20">齐套日期:{{item.finishDate}}</span>
<span class="ml20">申请人:{{item.creator}}</span> <span class="ml20">申请人:{{item.creator}}</span>
<span class="ml20">申请时间:{{item.applyTime}}</span> <span class="ml20">申请时间:{{item.applyTime}}</span>
...@@ -111,7 +111,7 @@ export default { ...@@ -111,7 +111,7 @@ export default {
click: () => this.application(0, params.row), click: () => this.application(0, params.row),
}, },
}, },
"撤回" params.row.status == 0 ? "撤回" : ""
), ),
]); ]);
}, },
...@@ -156,9 +156,12 @@ export default { ...@@ -156,9 +156,12 @@ export default {
parms.push(arr.id); parms.push(arr.id);
} else { } else {
arr.forEach((ele) => { arr.forEach((ele) => {
if (ele.status == 0) {
parms.push(ele.id); parms.push(ele.id);
}
}); });
} }
if (parms.length > 0) {
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("撤销成功");
...@@ -166,6 +169,11 @@ export default { ...@@ -166,6 +169,11 @@ export default {
this.$emit("on-ok"); this.$emit("on-ok");
} }
}); });
}
else
{
this.$Message.error("物料无法撤回!")
}
}, },
//配套申请 //配套申请
setName(list, v) { setName(list, v) {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<span class="ml20">申请时间:{{row.creationTime}}</span> <span class="ml20">申请时间:{{row.creationTime}}</span>
<span class="ml20"> <span class="ml20">
状态: 状态:
<state code="outstore.status" :value="row.status+''" type="text"></state> <state code="accessory.status" :value="row.status+''" type="text"></state>
</span> </span>
</p> </p>
<Card :padding="0"> <Card :padding="0">
...@@ -241,8 +241,7 @@ export default { ...@@ -241,8 +241,7 @@ export default {
this.butTxt = "更多"; this.butTxt = "更多";
this.iconLabel = "md-arrow-dropdown"; this.iconLabel = "md-arrow-dropdown";
let parm = { orderId: r.result.orderId }; let parm = { supportMainId : v };
this.orderId = r.result.orderId;
this.curRowId = 0; this.curRowId = 0;
Api.listbysupportitem(parm).then((res) => { Api.listbysupportitem(parm).then((res) => {
if (res.success) { if (res.success) {
......
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