|
|
@ -206,6 +206,7 @@ export default { |
|
|
|
tableKey: 0, |
|
|
|
list: [], |
|
|
|
sids: [], |
|
|
|
sid_list: [], |
|
|
|
orgDept_list: [], |
|
|
|
purchaseOrderType_list: [], |
|
|
|
purchaseSystem_list: [], |
|
|
@ -333,6 +334,7 @@ export default { |
|
|
|
}, |
|
|
|
handleSelectionChange(row) { |
|
|
|
const aa = [] |
|
|
|
const bb = [] |
|
|
|
row.forEach((element) => { |
|
|
|
aa.push({ |
|
|
|
sid: element.sid, |
|
|
@ -343,8 +345,10 @@ export default { |
|
|
|
purchaseSystemSid: '', |
|
|
|
purchaseSystemName: '' |
|
|
|
}) |
|
|
|
bb.push(element.sid) |
|
|
|
}) |
|
|
|
this.sids = aa |
|
|
|
this.sid_list = bb |
|
|
|
}, |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
@ -370,8 +374,8 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
doCancellation() { |
|
|
|
if (this.sids.length > 0) { |
|
|
|
req.cancel(this.sids).then((res) => { |
|
|
|
if (this.sid_list.length > 0) { |
|
|
|
req.cancel(this.sid_list).then((res) => { |
|
|
|
if (res.success) { |
|
|
|
this.$message({ showClose: true, type: 'success', message: '作废成功' }) |
|
|
|
this.getList() |
|
|
|