|
|
|
@ -29,6 +29,10 @@
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button type="success" plain icon="el-icon-edit" size="mini" @click="handleSAP">过账</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd"-->
|
|
|
|
|
<!-- v-hasPermi="['wms:outorder:add']">生成退货单</el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
|
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
|
|
|
|
|
v-hasPermi="['wms:outorder:remove']">删除</el-button>
|
|
|
|
@ -616,7 +620,8 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleSAP(row) {
|
|
|
|
|
console.log(this.ids)
|
|
|
|
|
let postData = this.selectabletrows.map(item => ({ produceCode: item.produceCode,userDefined1:item.userDefined1 }));
|
|
|
|
|
// let postData = this.selectabletrows.map(item => ({ id:this.ids[0] }));
|
|
|
|
|
let postData = this.selectabletrows.map(item => ({ id: item.id }));
|
|
|
|
|
//let postData = this.ids.map(id => ({ id: id }));
|
|
|
|
|
console.log(postData)
|
|
|
|
|
OutboundPostingzcSAP(JSON.stringify(postData)).then(response => {
|
|
|
|
|