优化结算页面问题
This commit is contained in:
parent
cb3652fb1e
commit
d585da9247
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue