|
@@ -388,16 +388,17 @@
|
|
|
computed: {
|
|
computed: {
|
|
|
totalAmount() {
|
|
totalAmount() {
|
|
|
let allcountAmount = 0;
|
|
let allcountAmount = 0;
|
|
|
|
|
+ let totalAmount =
|
|
|
|
|
+ (this.$refs.inventoryTableref &&
|
|
|
|
|
+ this.$refs.inventoryTableref.totalAmount) ||
|
|
|
|
|
+ 0;
|
|
|
if (this.form.returnSourceType == 1) {
|
|
if (this.form.returnSourceType == 1) {
|
|
|
if (this.form.type === '10') {
|
|
if (this.form.type === '10') {
|
|
|
- allcountAmount =
|
|
|
|
|
- this.$refs.inventoryTableref &&
|
|
|
|
|
- this.$refs.inventoryTableref.totalAmount;
|
|
|
|
|
|
|
+ allcountAmount = Number(totalAmount);
|
|
|
}
|
|
}
|
|
|
if (this.form.type === '20') {
|
|
if (this.form.type === '20') {
|
|
|
allcountAmount =
|
|
allcountAmount =
|
|
|
- (this.$refs.inventoryTableref &&
|
|
|
|
|
- this.$refs.inventoryTableref.totalAmount) +
|
|
|
|
|
|
|
+ Number(totalAmount) +
|
|
|
Number(
|
|
Number(
|
|
|
this.$refs.inventoryTableref1 &&
|
|
this.$refs.inventoryTableref1 &&
|
|
|
this.$refs.inventoryTableref1.getPrice()[0]
|
|
this.$refs.inventoryTableref1.getPrice()[0]
|
|
@@ -405,9 +406,7 @@
|
|
|
}
|
|
}
|
|
|
if (this.form.type === '30') {
|
|
if (this.form.type === '30') {
|
|
|
allcountAmount =
|
|
allcountAmount =
|
|
|
- (this.$refs.inventoryTableref &&
|
|
|
|
|
- this.$refs.inventoryTableref.totalAmount) +
|
|
|
|
|
- Number(this.form.redressAmount || 0);
|
|
|
|
|
|
|
+ Number(totalAmount) + Number(this.form.redressAmount || 0);
|
|
|
}
|
|
}
|
|
|
if (this.form.type === '40') {
|
|
if (this.form.type === '40') {
|
|
|
allcountAmount =
|
|
allcountAmount =
|
|
@@ -418,9 +417,7 @@
|
|
|
allcountAmount = Number(this.form.redressAmount || 0);
|
|
allcountAmount = Number(this.form.redressAmount || 0);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- allcountAmount =
|
|
|
|
|
- this.$refs.inventoryTableref &&
|
|
|
|
|
- this.$refs.inventoryTableref.totalAmount;
|
|
|
|
|
|
|
+ allcountAmount = Number(totalAmount);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return parseFloat(allcountAmount).toFixed(2);
|
|
return parseFloat(allcountAmount).toFixed(2);
|