Commit b7744091 authored by 我在何方's avatar 我在何方

更新合单

parent 97ca3518
...@@ -228,11 +228,10 @@ export default { ...@@ -228,11 +228,10 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
var orderNo = [] var orderNo = []
console.log(val)
val.forEach((item)=>{ val.forEach((item)=>{
orderNo.push(item.orderNo) orderNo.push(item.orderNo)
}) })
this.orderNos = orderNo.join(',') this.orderNos = orderNo
}, },
importCityName(id){ importCityName(id){
var arr = this.tradeCityList.filter(item => item.id == id) var arr = this.tradeCityList.filter(item => item.id == id)
...@@ -269,13 +268,17 @@ export default { ...@@ -269,13 +268,17 @@ export default {
that.$message.error("请选择待合单的订单"); that.$message.error("请选择待合单的订单");
return return
} }
var params = { var params = []
that.orderNos.forEach((item)=>{
var data = {
applyOrderNo:that.queryParams.mergedOrderNo, applyOrderNo:that.queryParams.mergedOrderNo,
copyUserId:that.selectedUsers, copyUserId:that.selectedUsers,
orderNos:that.orderNos, orderNos:item,
status:1 status:1
} }
createMerge([params]).then(res=>{ params.push(data)
})
createMerge(params).then(res=>{
that.$message.success("修改成功"); that.$message.success("修改成功");
that.$router.back() that.$router.back()
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment