|
@@ -1045,7 +1045,7 @@ export default {
|
|
|
obj.corpId = this.form.corpId // 结算单位
|
|
|
obj.checkNo = this.form.checkNo // CHK NO 对账单号
|
|
|
finstlbillsGetByDetail(obj).then(res=>{
|
|
|
- let arr = res.data.data.map((item,index)=>{
|
|
|
+ let arr = res.data.data.finStlBillsItemsList.map((item,index)=>{
|
|
|
item.lineNo = Number(index) + 1 // 行号
|
|
|
item.accBillId = item.id
|
|
|
item.accBillNo = item.billNo // JOB NO
|
|
@@ -1053,14 +1053,12 @@ export default {
|
|
|
item.accDate = item.createTime
|
|
|
item.currentCurCode = item.curCode
|
|
|
item.currentExrate = item.exrate
|
|
|
- item.dc = item.accountDc
|
|
|
- let amountdata = (Number(item.amount) - Number(item.appliedInvoiceAmount)).toFixed(2)
|
|
|
if (item.currentCurCode == 'CNY') {
|
|
|
// 本次发票金额
|
|
|
- this.$set(item,'currentAmountCNY',amountdata)
|
|
|
+ this.$set(item,'currentAmountCNY',item.appliedInvoiceCurrentStlAmount)
|
|
|
}else {
|
|
|
// 本次发票金额
|
|
|
- this.$set(item,'currentAmountUSD',amountdata)
|
|
|
+ this.$set(item,'currentAmountUSD',item.appliedInvoiceCurrentStlAmount)
|
|
|
}
|
|
|
delete item.id
|
|
|
return item
|
|
@@ -1098,13 +1096,12 @@ export default {
|
|
|
item.currentCurCode = item.curCode
|
|
|
item.currentExrate = item.exrate
|
|
|
item.dc = item.accountDc
|
|
|
- let amountdata = (Number(item.amount) - Number(item.appliedInvoiceAmount)).toFixed(2)
|
|
|
if (item.currentCurCode == 'CNY') {
|
|
|
// 本次发票金额
|
|
|
- this.$set(item,'currentAmountCNY',amountdata)
|
|
|
+ this.$set(item,'currentAmountCNY',item.appliedInvoiceCurrentStlAmount)
|
|
|
}else {
|
|
|
// 本次发票金额
|
|
|
- this.$set(item,'currentAmountUSD',amountdata)
|
|
|
+ this.$set(item,'currentAmountUSD',item.appliedInvoiceCurrentStlAmount)
|
|
|
}
|
|
|
delete item.id
|
|
|
return item
|