|
|
@@ -1512,7 +1512,7 @@ export default {
|
|
|
},
|
|
|
// 费用明细表格多选
|
|
|
handleSelectionChange(list) {
|
|
|
- this.amountSubSum = 0;
|
|
|
+ this.amountSubSum = 0;
|
|
|
this.amountDSubSum = 0;
|
|
|
this.amountCSubSum = 0;
|
|
|
this.amountSubUsdSum = 0;
|
|
|
@@ -1520,11 +1520,11 @@ export default {
|
|
|
this.amountCSubUsdSum = 0;
|
|
|
if (list.length) {
|
|
|
list.forEach(e => {
|
|
|
- if (e.accountDc == "D") {
|
|
|
+ if (e.dc == "D") {
|
|
|
this.amountDSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
this.amountDSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
}
|
|
|
- if (e.accountDc == "C") {
|
|
|
+ if (e.dc == "C") {
|
|
|
this.amountCSubSum += Number(e.currentAmountCNY ? e.currentAmountCNY : 0);
|
|
|
this.amountCSubUsdSum += Number(e.currentAmountUSD ? e.currentAmountUSD : 0);
|
|
|
}
|
|
|
@@ -1532,6 +1532,7 @@ export default {
|
|
|
}
|
|
|
this.amountSubSum = Number(this.amountDSubSum - this.amountCSubSum);
|
|
|
this.amountSubUsdSum = Number(this.amountDSubUsdSum - this.amountCSubUsdSum);
|
|
|
+ console.log(111,this.amountSubSum,this.amountSubUsdSum)
|
|
|
this.handleSelectionData = list;
|
|
|
},
|
|
|
// 开票明细表格多选
|
|
|
@@ -1895,6 +1896,7 @@ export default {
|
|
|
},
|
|
|
// 详情接口
|
|
|
fininvoicesDetailfun(id, type) {
|
|
|
+ this.activeName="2"
|
|
|
this.pageLoading = true;
|
|
|
fininvoicesDetail(id)
|
|
|
.then(res => {
|
|
|
@@ -1939,6 +1941,7 @@ export default {
|
|
|
},
|
|
|
// 开票获取数据
|
|
|
fininvoicesGenerateFinInvoicesfun(billId) {
|
|
|
+ this.activeName="2"
|
|
|
this.pageLoading = true;
|
|
|
fininvoicesGenerateFinInvoices({ billId })
|
|
|
.then(res => {
|