From 870de5df7836daf7aaf89e5c9fa8b55c49e63498 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Wed, 3 Jan 2024 09:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=85=E6=9D=90=E5=87=BA=E5=BA=93=E4=BC=A0?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wms/outorder/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/wms/outorder/index.vue b/src/views/wms/outorder/index.vue index e503e41..167ee82 100644 --- a/src/views/wms/outorder/index.vue +++ b/src/views/wms/outorder/index.vue @@ -178,8 +178,10 @@ export default { return { // 遮罩层 loading: true, - // 选中数组 + // 选中数组id ids: [], + //选中数组 + selectrows:[], // 非单个禁用 single: true, // 非多个禁用 @@ -440,6 +442,7 @@ export default { }, handleSelectionChange1(selection) { this.ids = selection.map(item => item.id) + this.selectrows = selection this.single = selection.length !== 1 this.multiple = !selection.length this.selectedRows = selection; @@ -516,6 +519,8 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id) + this.selectrows = selection; + console.log('selectrows',this.selectrows); this.single = selection.length !== 1 this.multiple = !selection.length @@ -548,8 +553,8 @@ export default { }, handleSAP(row) { console.log(this.ids) - - let postData = this.ids.map(id => ({ id: id })); + let postData = this.selectedRows.map(item => ({ produceCode: item.produceCode,userDefined1:item.userDefined1 })); + //let postData = this.ids.map(id => ({ id: id })); console.log(postData) OutboundPostingSAP(JSON.stringify(postData)).then(response => { this.$modal.msgSuccess("操作完成");