|
|
@@ -419,8 +419,24 @@
|
|
|
@deletefun="finstlbillsitemsRemovefun"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
- <div>
|
|
|
+ <div style="display: flex;">
|
|
|
<el-button size="small" type="success" :disabled="editSave" :loading="saveLoading" @click="SelectedRows">确认选定行</el-button>
|
|
|
+ <div class="bottomFlex" style="color: #81B337;margin-right: 20px;">
|
|
|
+ <span>应收:</span>
|
|
|
+ <span class="weightnum">¥{{ amountDSubSum || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #81B337;margin-right: 20px;">
|
|
|
+ <span></span>
|
|
|
+ <span class="weightnum">${{ amountDSubUsdSum || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #6BBCD1;margin-right: 20px;">
|
|
|
+ <span>应付:</span>
|
|
|
+ <span class="weightnum">¥{{ amountCSubSum || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #6BBCD1;margin-right: 20px;">
|
|
|
+ <span></span>
|
|
|
+ <span class="weightnum">${{ amountCSubUsdSum || 0 }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</query-finstlbillsitems>
|
|
|
@@ -436,7 +452,7 @@
|
|
|
@deletefun="finstlbillsitemsRemovefun"
|
|
|
>
|
|
|
<template slot="menuLeft">
|
|
|
- <div>
|
|
|
+ <div style="display:flex">
|
|
|
<el-button size="small" type="danger" style="margin-left: 10px" :disabled="editSave" :loading="saveLoading" @click="batchDeletefun"
|
|
|
>一键删除
|
|
|
</el-button>
|
|
|
@@ -465,6 +481,22 @@
|
|
|
<el-button style="margin-left: 10px" :disabled="editSave" size="small" type="primary" @click="invoiceMatchingfun()"
|
|
|
>匹配金额</el-button
|
|
|
>
|
|
|
+ <div class="bottomFlex" style="color: #81B337;margin-right: 20px;">
|
|
|
+ <span>应收:</span>
|
|
|
+ <span class="weightnum">¥{{ amountDSubSum2 || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #81B337;margin-right: 20px;">
|
|
|
+ <span></span>
|
|
|
+ <span class="weightnum">${{ amountDSubUsdSum2 || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #6BBCD1;margin-right: 20px;">
|
|
|
+ <span>应付:</span>
|
|
|
+ <span class="weightnum">¥{{ amountCSubSum2 || 0 }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="bottomFlex" style="color: #6BBCD1;margin-right: 20px;">
|
|
|
+ <span></span>
|
|
|
+ <span class="weightnum">${{ amountCSubUsdSum2 || 0 }}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</finstlbillsitems>
|
|
|
@@ -634,6 +666,14 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ amountDSubSum: 0,
|
|
|
+ amountDSubUsdSum: 0,
|
|
|
+ amountCSubSum: 0,
|
|
|
+ amountCSubUsdSum: 0,
|
|
|
+ amountDSubSum2: 0,
|
|
|
+ amountDSubUsdSum2: 0,
|
|
|
+ amountCSubSum2: 0,
|
|
|
+ amountCSubUsdSum2: 0,
|
|
|
activeName: "1",
|
|
|
checkId: "", // 审核需要的id
|
|
|
batchNo: "",
|
|
|
@@ -979,7 +1019,7 @@ export default {
|
|
|
},
|
|
|
allClick(name) {
|
|
|
if (name == "指示") {
|
|
|
- this.$refs.cashier.openDialog(this.form,this.tableData,'auto');
|
|
|
+ this.$refs.cashier.openDialog(this.form, this.tableData, "auto");
|
|
|
}
|
|
|
},
|
|
|
updateCashier() {
|
|
|
@@ -1203,7 +1243,7 @@ export default {
|
|
|
this.$set(this.form, "corpArgreementNo", row.enName);
|
|
|
this.retrievePopupsType = false;
|
|
|
this.bcorpsbankListfun();
|
|
|
- this.finstlbillslistAccBillV1fun('检索');
|
|
|
+ this.finstlbillslistAccBillV1fun("检索");
|
|
|
},
|
|
|
//请核关闭
|
|
|
choceScheduleFun() {
|
|
|
@@ -1221,7 +1261,7 @@ export default {
|
|
|
return this.$message.warning("请填写对账单位");
|
|
|
}
|
|
|
console.log("原来的接口");
|
|
|
- this.finstlbillslistAccBillV1fun('检索');
|
|
|
+ this.finstlbillslistAccBillV1fun("检索");
|
|
|
}
|
|
|
},
|
|
|
// 检索弹窗数据
|
|
|
@@ -1331,7 +1371,7 @@ export default {
|
|
|
this.queryData.push(item);
|
|
|
}
|
|
|
}
|
|
|
- if (this.queryData.length == 0&&type=='检索') {
|
|
|
+ if (this.queryData.length == 0 && type == "检索") {
|
|
|
this.$message.warning("当前检索暂无数据!");
|
|
|
}
|
|
|
}
|
|
|
@@ -1412,7 +1452,7 @@ export default {
|
|
|
this.queryData.push(item);
|
|
|
}
|
|
|
}
|
|
|
- if (this.queryData.length == 0&&type=='检索') {
|
|
|
+ if (this.queryData.length == 0 && type == "检索") {
|
|
|
this.$message.warning("当前检索暂无数据!");
|
|
|
}
|
|
|
}
|
|
|
@@ -1481,10 +1521,43 @@ export default {
|
|
|
this.editCustomer("选定行");
|
|
|
},
|
|
|
addSelectionChange(arr) {
|
|
|
+ this.amountDSubSum = 0;
|
|
|
+ this.amountDSubUsdSum = 0;
|
|
|
+ this.amountCSubSum = 0;
|
|
|
+ this.amountCSubUsdSum = 0;
|
|
|
+ if (arr.length) {
|
|
|
+ arr.forEach(e => {
|
|
|
+ console.log(e.accountDc);
|
|
|
+ if (e.dc == "D") {
|
|
|
+ this.amountDSubSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.amountDSubUsdSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ }
|
|
|
+ if (e.dc == "C") {
|
|
|
+ this.amountCSubSum += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.amountCSubUsdSum += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
this.addData = arr;
|
|
|
},
|
|
|
// 下面表格多选
|
|
|
handleSelectionChange(arr) {
|
|
|
+ this.amountDSubSum2 = 0;
|
|
|
+ this.amountDSubUsdSum2 = 0;
|
|
|
+ this.amountCSubSum2 = 0;
|
|
|
+ this.amountCSubUsdSum2 = 0;
|
|
|
+ if (arr.length) {
|
|
|
+ arr.forEach(e => {
|
|
|
+ if (e.dc == "D") {
|
|
|
+ this.amountDSubSum2 += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.amountDSubUsdSum2 += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ }
|
|
|
+ if (e.dc == "C") {
|
|
|
+ this.amountCSubSum2 += Number(e.currentStlAmountRMB ? e.currentStlAmountRMB : 0);
|
|
|
+ this.amountCSubUsdSum2 += Number(e.currentStlAmountUSD ? e.currentStlAmountUSD : 0);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
this.handleSelectionData = arr;
|
|
|
},
|
|
|
//返回列表
|