|
@@ -1005,7 +1005,8 @@ export default {
|
|
|
this.$set(item, "actualQuantity", (Number(item.orderQuantity) - Number(item.actualQuantity)))
|
|
|
this.$set(item, "arrivalQuantity", item.actualQuantity)
|
|
|
this.$set(item, "deliveryAmount", item.amount)
|
|
|
- this.$set(item, "deliveryAmount", item.amount)
|
|
|
+ this.$set(item, "purchaseTotalAmount", (Number(item.purchaseAmount) * Number(item.actualQuantity)))
|
|
|
+ item.purchaseTotalAmount = item.purchaseTotalAmount.toFixed(2)
|
|
|
this.$set(item, "inventoryNumber", item.storageQuantity)
|
|
|
this.form.deliveryAmount += Number(item.deliveryAmount)
|
|
|
this.form.totalQuantity += Number(item.actualQuantity)
|
|
@@ -1632,10 +1633,10 @@ export default {
|
|
|
this.saveLoading = true
|
|
|
this.form.billType = 'FH'
|
|
|
// 如果有id解锁,没有跳过
|
|
|
- this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
+ // !this.detailData.seeDisabled && this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
typeSave(this.form).then(res => {
|
|
|
this.$message({type: "success", message: this.form.id ? "修改成功!" : "新增成功!"});
|
|
|
- this.detailData.seeDisabled = true;
|
|
|
+ // this.$set(this.detailData, 'seeDisabled', true);
|
|
|
if (isBack) {
|
|
|
//成功关闭此页面回到列表页
|
|
|
this.$emit("goBack");
|
|
@@ -1681,12 +1682,12 @@ export default {
|
|
|
}).then(() => {
|
|
|
this.editCustomer(true)
|
|
|
}).catch(() => {
|
|
|
- this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
+ !this.detailData.seeDisabled && this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
this.$emit("goBack");
|
|
|
this.leaveDetailsKey(this.$route.name)
|
|
|
})
|
|
|
} else {
|
|
|
- this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
+ !this.detailData.seeDisabled && this.form.id && this.unLock({moduleName: 'fh',tableName: 'business_delivery', billId: this.form.id})
|
|
|
this.$emit("goBack");
|
|
|
this.leaveDetailsKey(this.$route.name)
|
|
|
}
|
|
@@ -1853,6 +1854,8 @@ export default {
|
|
|
this.$set(item, 'srcOrderNo', this.form.srcOrderNo)
|
|
|
this.$set(item, 'arrivalQuantity', item.actualQuantity)
|
|
|
this.$set(item, "srcId", item.id)
|
|
|
+ this.$set(item, "purchaseTotalAmount", (Number(item.purchaseAmount) * Number(item.actualQuantity)))
|
|
|
+ item.purchaseTotalAmount = item.purchaseTotalAmount.toFixed(2)
|
|
|
if (this.goodsActives == "goods") {
|
|
|
this.$set(item, 'goodType', 0)
|
|
|
} else {
|
|
@@ -1897,6 +1900,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async resetColumn() {
|
|
|
+ this.customerContact = customerContact
|
|
|
const inSave = await this.delColumnData(
|
|
|
this.getColumnName(21),
|
|
|
customerContact
|
|
@@ -2004,7 +2008,13 @@ export default {
|
|
|
this.checkLock(data).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.onLock(data).then(response => {
|
|
|
+ this.saveActives = ''
|
|
|
this.queryData(this.form.id)
|
|
|
+ this.inDetailsKey(this.$route.name, {
|
|
|
+ moduleName: 'fh',
|
|
|
+ tableName: 'business_delivery',
|
|
|
+ billId: this.form.id,
|
|
|
+ })
|
|
|
this.detailData.seeDisabled = false;
|
|
|
})
|
|
|
}
|