|
|
@ -181,7 +181,7 @@ export default {
|
|
|
|
// 选中数组id
|
|
|
|
// 选中数组id
|
|
|
|
ids: [],
|
|
|
|
ids: [],
|
|
|
|
//选中数组
|
|
|
|
//选中数组
|
|
|
|
selectrows:[],
|
|
|
|
selectabletrows:[],
|
|
|
|
// 非单个禁用
|
|
|
|
// 非单个禁用
|
|
|
|
single: true,
|
|
|
|
single: true,
|
|
|
|
// 非多个禁用
|
|
|
|
// 非多个禁用
|
|
|
@ -442,7 +442,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSelectionChange1(selection) {
|
|
|
|
handleSelectionChange1(selection) {
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.selectrows = selection
|
|
|
|
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.selectedRows = selection;
|
|
|
|
this.selectedRows = selection;
|
|
|
@ -519,8 +518,8 @@ export default {
|
|
|
|
// 多选框选中数据
|
|
|
|
// 多选框选中数据
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
handleSelectionChange(selection) {
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
this.selectrows = selection;
|
|
|
|
this.selectabletrows = selection;
|
|
|
|
console.log('selectrows',this.selectrows);
|
|
|
|
console.log('selectabletrows',this.selectabletrows);
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
this.single = selection.length !== 1
|
|
|
|
this.multiple = !selection.length
|
|
|
|
this.multiple = !selection.length
|
|
|
|
|
|
|
|
|
|
|
@ -553,7 +552,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleSAP(row) {
|
|
|
|
handleSAP(row) {
|
|
|
|
console.log(this.ids)
|
|
|
|
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 }));
|
|
|
|
//let postData = this.ids.map(id => ({ id: id }));
|
|
|
|
console.log(postData)
|
|
|
|
console.log(postData)
|
|
|
|
OutboundPostingSAP(JSON.stringify(postData)).then(response => {
|
|
|
|
OutboundPostingSAP(JSON.stringify(postData)).then(response => {
|
|
|
|