|
@@ -828,6 +828,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
queryData(id, isCopy = false) {
|
|
queryData(id, isCopy = false) {
|
|
this.pageLoading = true
|
|
this.pageLoading = true
|
|
|
|
+ this.saveLoading = true
|
|
detail(id).then(res => {
|
|
detail(id).then(res => {
|
|
this.form = res.data.data;
|
|
this.form = res.data.data;
|
|
this.receiveDisabled = this.form.deliveryStatus == '录入'? false: true
|
|
this.receiveDisabled = this.form.deliveryStatus == '录入'? false: true
|
|
@@ -1282,12 +1283,14 @@ export default {
|
|
if (typeof this.form.corpsTypeId == 'object') {
|
|
if (typeof this.form.corpsTypeId == 'object') {
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
}
|
|
}
|
|
|
|
+ this.saveLoading = true
|
|
this.pageLoading = true
|
|
this.pageLoading = true
|
|
sendInGoods(this.form).then(res => {
|
|
sendInGoods(this.form).then(res => {
|
|
this.$message.success('发货成功')
|
|
this.$message.success('发货成功')
|
|
this.queryData(res.data.data.id)
|
|
this.queryData(res.data.data.id)
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
this.pageLoading = false
|
|
this.pageLoading = false
|
|
|
|
+ this.saveLoading = false
|
|
})
|
|
})
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
@@ -1307,11 +1310,13 @@ export default {
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
}
|
|
}
|
|
this.pageLoading = true
|
|
this.pageLoading = true
|
|
|
|
+ this.saveLoading = true
|
|
revokeInGoods(this.form).then(res => {
|
|
revokeInGoods(this.form).then(res => {
|
|
this.$message.success('撤销成功')
|
|
this.$message.success('撤销成功')
|
|
this.queryData(res.data.data.id)
|
|
this.queryData(res.data.data.id)
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
this.pageLoading = false
|
|
this.pageLoading = false
|
|
|
|
+ this.saveLoading = false
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
return false;
|
|
return false;
|
|
@@ -1361,11 +1366,13 @@ export default {
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
this.form.corpsTypeId = this.form.corpsTypeId.join(",")
|
|
}
|
|
}
|
|
this.pageLoading = true
|
|
this.pageLoading = true
|
|
|
|
+ this.saveLoading = true
|
|
sendInGoods(this.form).then(res => {
|
|
sendInGoods(this.form).then(res => {
|
|
this.$message.success('发货成功')
|
|
this.$message.success('发货成功')
|
|
this.queryData(res.data.data.id)
|
|
this.queryData(res.data.data.id)
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
this.pageLoading = false
|
|
this.pageLoading = false
|
|
|
|
+ this.saveLoading = false
|
|
})
|
|
})
|
|
})
|
|
})
|
|
}
|
|
}
|