|
|
@ -49,6 +49,7 @@ |
|
|
|
<el-table-column prop="goodsAmount1" label="材料费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimOutAmount1" label="外出费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimSubsidyAmount1" label="厂家补助" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimRescueAmount1" label="施救费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimOtherAmount1" label="其他费用" align="center" width="120" /> |
|
|
|
<el-table-column prop="all1" label="合计" align="center" width="120" /> |
|
|
|
</el-table-column> |
|
|
@ -57,6 +58,7 @@ |
|
|
|
<el-table-column prop="claimGoodsAmount2" label="材料费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimOutAmount2" label="外出费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimSubsidyAmount2" label="厂家补助" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimRescueAmount2" label="施救费" align="center" width="120" /> |
|
|
|
<el-table-column prop="claimOtherAmount2" label="其他费用" align="center" width="120" /> |
|
|
|
<el-table-column prop="all2" label="合计" align="center" width="120" /> |
|
|
|
</el-table-column> |
|
|
@ -82,6 +84,11 @@ |
|
|
|
<el-input @input="jeTotal(scope.row)" @keyup.native="scope.row.claimSubsidyAmount = getNumber(scope.row.claimSubsidyAmount, 2)" v-model="scope.row.claimSubsidyAmount" clearable placeholder="" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="施救费" align="center" width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input @input="jeTotal(scope.row)" @keyup.native="scope.row.claimRescueAmount = getNumber(scope.row.claimRescueAmount, 2)" v-model="scope.row.claimRescueAmount" clearable placeholder="" /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="其他费用" align="center" min-width="150"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input @input="jeTotal(scope.row)" @keyup.native="scope.row.claimOtherAmount = getNumber(scope.row.claimOtherAmount, 2)" v-model="scope.row.claimOtherAmount" clearable placeholder="" /> |
|
|
@ -179,7 +186,7 @@ export default { |
|
|
|
return val |
|
|
|
}, |
|
|
|
showAdd(list) { |
|
|
|
this.viewTitle = '【新增】工单索赔调整申请' |
|
|
|
this.viewTitle = '【新增】维修单索赔调整申请' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
@ -216,6 +223,7 @@ export default { |
|
|
|
claimGoodsAmount: Math.round((parseFloat(e.claimGoodsAmount2) - parseFloat(e.goodsAmount1)) * 100) / 100, |
|
|
|
claimOutAmount: Math.round((parseFloat(e.claimOutAmount2) - parseFloat(e.claimOutAmount1)) * 100) / 100, |
|
|
|
claimSubsidyAmount: Math.round((parseFloat(e.claimSubsidyAmount2) - parseFloat(e.claimSubsidyAmount1)) * 100) / 100, |
|
|
|
claimRescueAmount: Math.round((parseFloat(e.claimRescueAmount2) - parseFloat(e.claimRescueAmount1)) * 100) / 100, |
|
|
|
claimOtherAmount: Math.round((parseFloat(e.claimOtherAmount2) - parseFloat(e.claimOtherAmount1)) * 100) / 100, |
|
|
|
reserved: '', |
|
|
|
reasonKey: '', |
|
|
@ -238,7 +246,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
showEdit(row) { |
|
|
|
this.viewTitle = '【编辑】工单索赔调整申请' |
|
|
|
this.viewTitle = '【编辑】维修单索赔调整申请' |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs['form_obj'].clearValidate() |
|
|
|
}) |
|
|
@ -252,7 +260,7 @@ export default { |
|
|
|
}, |
|
|
|
// 计算列表中差异调整的合计金额 |
|
|
|
jeTotal(row) { |
|
|
|
row.all4 = Math.round((parseFloat(row.claimHourAmount === '' ? '0' : row.claimHourAmount) + parseFloat(row.claimGoodsAmount === '' ? '0' : row.claimGoodsAmount) + parseFloat(row.claimOutAmount === '' ? '0' : row.claimOutAmount) + parseFloat(row.claimSubsidyAmount === '' ? '0' : row.claimSubsidyAmount) + parseFloat(row.claimOtherAmount === '' ? '0' : row.claimOtherAmount) - parseFloat(row.reserved === '' ? '0' : row.reserved)) * 100) / 100 |
|
|
|
row.all4 = Math.round((parseFloat(row.claimHourAmount === '' ? '0' : row.claimHourAmount) + parseFloat(row.claimGoodsAmount === '' ? '0' : row.claimGoodsAmount) + parseFloat(row.claimOutAmount === '' ? '0' : row.claimOutAmount) + parseFloat(row.claimSubsidyAmount === '' ? '0' : row.claimSubsidyAmount) + parseFloat(row.claimRescueAmount === '' ? '0' : row.claimRescueAmount) + parseFloat(row.claimOtherAmount === '' ? '0' : row.claimOtherAmount) - parseFloat(row.reserved === '' ? '0' : row.reserved)) * 100) / 100 |
|
|
|
}, |
|
|
|
reasonChange(value, row) { |
|
|
|
const choose = this.adjustmentReason_list.filter((item) => item.dictKey === value) |
|
|
|