|
|
|
@ -294,7 +294,6 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="maxitembxlist"> |
|
|
|
|
<el-form :model="formData" ref="form"> |
|
|
|
|
<div class="items" v-for="(item,index) in orderlist" :key="item"> |
|
|
|
|
<div class="titltophead"> |
|
|
|
|
<div>订单{{ index+1 }}</div> |
|
|
|
@ -348,11 +347,10 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</el-form> |
|
|
|
|
</div> |
|
|
|
|
<div class="btsbx"> |
|
|
|
|
<el-button @click="hidedial">取消</el-button> |
|
|
|
|
<el-button type="primary" @click="hidedial">确认</el-button> |
|
|
|
|
<el-button type="primary" @click="hidedial()">确认</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> |
|
|
|
|
<edittablehead |
|
|
|
@ -1076,12 +1074,21 @@ export default {
|
|
|
|
|
|
|
|
|
|
console.log(this.orderlist[0].goods) |
|
|
|
|
}, |
|
|
|
|
hidedial(res){ |
|
|
|
|
console.log('11111111111111111') |
|
|
|
|
console.log(res) |
|
|
|
|
splitOrder().then(res=> { |
|
|
|
|
|
|
|
|
|
hidedial(){ |
|
|
|
|
let row =[]; |
|
|
|
|
for (let index = 0; index < this.orderlist.length; index++) { |
|
|
|
|
const element = this.orderlist[index]; |
|
|
|
|
let obj ={ |
|
|
|
|
waybillNo:this.rowobj.waybillNo, |
|
|
|
|
customerPerson:element.name, |
|
|
|
|
customerMobile:element.phone, |
|
|
|
|
customerAddress:element.addres, |
|
|
|
|
products:element.goods |
|
|
|
|
} |
|
|
|
|
row.push(obj) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
splitOrder(row).then(res=> { |
|
|
|
|
const data = res.data.data; |
|
|
|
|
this.page.total = data.total; |
|
|
|
|
this.data = data.records; |
|
|
|
@ -1089,7 +1096,6 @@ export default {
|
|
|
|
|
this.selectionClear(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dialogTableVisible=false |
|
|
|
|
}, |
|
|
|
|
addorder(){ |
|
|
|
|