Browse Source

完善采购渠道--作废

master
yunuo970428 1 year ago
parent
commit
247f384efa
  1. 8
      anrui-scm/anrui-scm-ui/src/views/purchasingchannels/caigouqudaotobeselected.vue

8
anrui-scm/anrui-scm-ui/src/views/purchasingchannels/caigouqudaotobeselected.vue

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

Loading…
Cancel
Save