Commit 9a2c9080 by 王志慧

commit

1 parent 0768ac7b
......@@ -248,7 +248,7 @@ export default {
})
})
},
handleSave() {
handleSave() {
let num = 0
this.$refs['addForm'].forEach(async item => {
try {
......@@ -257,13 +257,18 @@ export default {
} catch (err) {
console.log(err)
}
if (num == this.$refs['addForm'].length) {
let deliveryDetailList = this.detailInfo.deliveryDetailList.map(item=>{
if(item.deliveryCardList.length==0){
return item
}
})
let params = {
deliveryDetailList: this.detailInfo.deliveryDetailList
deliveryDetailList:deliveryDetailList
}
params.id = this.id
this.$apis.delivery.addPurchaseOrder(params).then(res => {
console.log(res)
if (res.code == 0) {
this.$message({
type: 'success',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!