|
|
|
@ -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("操作完成");
|
|
|
|
|