优化结算页面问题

This commit is contained in:
BianLzhaoMin 2024-07-26 15:40:54 +08:00
parent cb3652fb1e
commit d585da9247
1 changed files with 307 additions and 309 deletions

View File

@ -472,14 +472,14 @@
</template>
<script>
import {
import {
getAgreementList,
getUnitList,
getProjectList,
} from '@/api/claimAndRefund/receive'
import { getSltInfo, submitFee, exportLease } from '@/api/cost/cost'
} from '@/api/claimAndRefund/receive'
import { getSltInfo, submitFee, exportLease } from '@/api/cost/cost'
export default {
export default {
name: 'Agreement',
dicts: ['sys_normal_disable'],
data() {
@ -674,9 +674,7 @@
sums[index] = '最终费用'
return
}
const values = data.map((item) =>
Number(item[column.property]),
)
const values = data.map((item) => Number(item[column.property]))
// amount
if (column.property === 'cost') {
if (!values.every((value) => isNaN(value))) {
@ -703,8 +701,8 @@
Number(row.repairCost) +
Number(row.scrapCost) +
Number(row.loseCost) +
Number(row.addCost) -
Number(row.subCost)
Number(row.addCost || 0) -
Number(row.subCost || 0)
},
//
@ -783,11 +781,11 @@
this.handleExport4()
},
},
}
}
</script>
<style lang="scss" scoped>
::v-deep.el-table .fixed-width .el-button--mini {
::v-deep.el-table .fixed-width .el-button--mini {
width: 80px !important;
margin-bottom: 10px;
}
}
</style>