|
@@ -975,6 +975,7 @@ export default {
|
|
|
methods: {
|
|
|
queryData(id, isCopy = false, type) {
|
|
|
this.pageLoading = true
|
|
|
+ this.saveLoading = true
|
|
|
detail(id).then(res => {
|
|
|
this.form = res.data.data;
|
|
|
if (this.form.deliveryStatus == '已收货') {
|
|
@@ -1116,12 +1117,14 @@ export default {
|
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
|
}
|
|
|
this.pageLoading = true
|
|
|
+ this.saveLoading = true
|
|
|
this.saveActives = ''
|
|
|
sendOutGoods(this.form).then(res => {
|
|
|
this.$message.success('收货成功')
|
|
|
this.queryData(res.data.data.id)
|
|
|
}).finally(() => {
|
|
|
this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
})
|
|
|
})
|
|
|
} else if (type == '到货') {
|
|
@@ -1130,6 +1133,7 @@ export default {
|
|
|
} else {
|
|
|
this.form.deliveryItemsList = this.goodsShowData.concat(this.giftData)
|
|
|
}
|
|
|
+ this.saveLoading = true
|
|
|
this.pageLoading = true
|
|
|
this.saveActives = ''
|
|
|
confirmArrival(this.form).then(res => {
|
|
@@ -1137,6 +1141,7 @@ export default {
|
|
|
this.queryData(this.form.id)
|
|
|
}).catch(() => {
|
|
|
this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
})
|
|
|
}
|
|
|
}).finally(() => {
|
|
@@ -1750,12 +1755,14 @@ export default {
|
|
|
this.form.deliveryItemsList = this.goodsShowData.concat(this.giftData)
|
|
|
}
|
|
|
this.pageLoading = true
|
|
|
+ this.saveLoading = true
|
|
|
this.saveActives = ''
|
|
|
cancelArrival(this.form).then(res => {
|
|
|
this.$message.success('撤销到货成功')
|
|
|
this.queryData(this.form.id)
|
|
|
}).catch(() => {
|
|
|
this.pageLoading = false
|
|
|
+ this.saveLoading = false
|
|
|
})
|
|
|
},
|
|
|
// 导入销售明细
|