包材出库过账传参bug修复

yangwl
guoshuang 11 months ago
parent 870de5df78
commit f32774ca91

@ -181,7 +181,7 @@ export default {
// id
ids: [],
//
selectrows:[],
selectabletrows:[],
//
single: true,
//
@ -442,7 +442,6 @@ 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;
@ -519,8 +518,8 @@ export default {
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.selectrows = selection;
console.log('selectrows',this.selectrows);
this.selectabletrows = selection;
console.log('selectabletrows',this.selectabletrows);
this.single = selection.length !== 1
this.multiple = !selection.length
@ -553,7 +552,7 @@ export default {
},
handleSAP(row) {
console.log(this.ids)
let postData = this.selectedRows.map(item => ({ produceCode: item.produceCode,userDefined1:item.userDefined1 }));
let postData = this.selectabletrows.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 => {

Loading…
Cancel
Save