详情界面 含税总金额
parent
a84c4c31c3
commit
f23bf9e175
|
@ -467,6 +467,7 @@
|
|||
payAmount: numberFixed(detail.payAmount),
|
||||
totalTaxExclude: numberFixed(detail.totalTaxExclude),
|
||||
totalTaxInclude_: numberFixed(detail.totalTaxInclude),// 存在相同字段转换一下
|
||||
totalTaxInclude: numberFixed(detail.totalTaxInclude)
|
||||
}
|
||||
}
|
||||
let rowKey = 0
|
||||
|
@ -485,10 +486,13 @@
|
|||
const first = purchaseDetails.shift();
|
||||
// 再处理剩余的子元素
|
||||
purchaseDetails = purchaseDetails.map(purchase => ({
|
||||
...purchase, rowKey: rowKey++, parent, newRow: true
|
||||
...purchase, rowKey: rowKey++, parent, newRow: true,
|
||||
totalTaxInclude: numberFixed(purchase.totalTaxInclude)
|
||||
}))
|
||||
// 合并第一行到父级
|
||||
Object.assign(parent, first)
|
||||
Object.assign(parent, {
|
||||
...first, totalTaxInclude: numberFixed(first.totalTaxInclude)
|
||||
})
|
||||
delete parent['parent']
|
||||
delete parent['purchaseDetails']
|
||||
|
||||
|
|
Loading…
Reference in New Issue