|
|
|
@ -154,7 +154,7 @@
|
|
|
|
|
|
|
|
|
|
const calcSumAmount = computed(() => {
|
|
|
|
|
return billTableData.value?.reduce((acc, cur) => {
|
|
|
|
|
return plus(acc, cur?.amount || 0)
|
|
|
|
|
return plus(acc, cur?.totalWithTax || 0)
|
|
|
|
|
}, 0)
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -218,9 +218,12 @@
|
|
|
|
|
// 获取额外Query参数
|
|
|
|
|
const getActionExtraQuery = (index) => {
|
|
|
|
|
const obj = appStore.getIdsData
|
|
|
|
|
console.log('expenseAccount', obj['expenseAccount'])
|
|
|
|
|
console.log('index', index)
|
|
|
|
|
|
|
|
|
|
if (obj && obj['expenseAccount']) {
|
|
|
|
|
const preData = obj['expenseAccount'][index]
|
|
|
|
|
const pageType = [0, 2, 4].includes(preData.reimbursementType) ? 'EDIT' : 'VIEW'
|
|
|
|
|
const pageType = [0, 4].includes(preData.reimbursementType) ? 'EDIT' : 'VIEW'
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
type: pageType,
|
|
|
|
|