优化结算页面问题
This commit is contained in:
parent
cb3652fb1e
commit
d585da9247
|
|
@ -472,14 +472,14 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getAgreementList,
|
getAgreementList,
|
||||||
getUnitList,
|
getUnitList,
|
||||||
getProjectList,
|
getProjectList,
|
||||||
} from '@/api/claimAndRefund/receive'
|
} from '@/api/claimAndRefund/receive'
|
||||||
import { getSltInfo, submitFee, exportLease } from '@/api/cost/cost'
|
import { getSltInfo, submitFee, exportLease } from '@/api/cost/cost'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'Agreement',
|
name: 'Agreement',
|
||||||
dicts: ['sys_normal_disable'],
|
dicts: ['sys_normal_disable'],
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -674,9 +674,7 @@
|
||||||
sums[index] = '最终费用'
|
sums[index] = '最终费用'
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const values = data.map((item) =>
|
const values = data.map((item) => Number(item[column.property]))
|
||||||
Number(item[column.property]),
|
|
||||||
)
|
|
||||||
// 只对amount这一列进行总计核算。
|
// 只对amount这一列进行总计核算。
|
||||||
if (column.property === 'cost') {
|
if (column.property === 'cost') {
|
||||||
if (!values.every((value) => isNaN(value))) {
|
if (!values.every((value) => isNaN(value))) {
|
||||||
|
|
@ -703,8 +701,8 @@
|
||||||
Number(row.repairCost) +
|
Number(row.repairCost) +
|
||||||
Number(row.scrapCost) +
|
Number(row.scrapCost) +
|
||||||
Number(row.loseCost) +
|
Number(row.loseCost) +
|
||||||
Number(row.addCost) -
|
Number(row.addCost || 0) -
|
||||||
Number(row.subCost)
|
Number(row.subCost || 0)
|
||||||
},
|
},
|
||||||
|
|
||||||
//提交按钮
|
//提交按钮
|
||||||
|
|
@ -783,11 +781,11 @@
|
||||||
this.handleExport4()
|
this.handleExport4()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<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;
|
width: 80px !important;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue