|
@@ -16,6 +16,13 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="累计应收总金额">
|
|
|
|
|
+ <el-input disabled v-model="receivedTotalPriceCumulative">
|
|
|
|
|
+ <template slot="append">元</template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
|
|
|
|
@@ -291,6 +298,14 @@
|
|
|
// );
|
|
// );
|
|
|
// return isNaN(value) ? 0 : value;
|
|
// return isNaN(value) ? 0 : value;
|
|
|
return this.dataForm?.statReceipt?.receivedTotalPrice || 0;
|
|
return this.dataForm?.statReceipt?.receivedTotalPrice || 0;
|
|
|
|
|
+ },
|
|
|
|
|
+ // 累计应收总金额:取自下方明细行 receivedAmt 之和(不可调整)
|
|
|
|
|
+ receivedTotalPriceCumulative() {
|
|
|
|
|
+ const sum = this.localList.reduce(
|
|
|
|
|
+ (pre, cur) => pre + Math.round((+cur.receivedAmt || 0) * 100),
|
|
|
|
|
+ 0
|
|
|
|
|
+ );
|
|
|
|
|
+ return sum / 100;
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -433,7 +448,8 @@
|
|
|
return {
|
|
return {
|
|
|
receivableList: this.localList.map((item) => ({ ...item })),
|
|
receivableList: this.localList.map((item) => ({ ...item })),
|
|
|
statementAdvanceTotalPrice: this.statementAdvanceTotalPrice,
|
|
statementAdvanceTotalPrice: this.statementAdvanceTotalPrice,
|
|
|
- receivedTotalPrice: this.receivedTotalPrice
|
|
|
|
|
|
|
+ receivedTotalPrice: this.receivedTotalPrice,
|
|
|
|
|
+ receivedTotalPriceCumulative: this.receivedTotalPriceCumulative
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
validate() {
|
|
validate() {
|