|
|
@ -4,7 +4,7 @@ |
|
|
|
<div class="tab-header webtop"> |
|
|
|
<div>{{ viewTitle }}</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="chooseGd()">选择工单</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="chooseGd()">选择维修单</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> |
|
|
|
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button> |
|
|
|
</div> |
|
|
@ -42,6 +42,11 @@ |
|
|
|
<div class="title">维修单列表</div> |
|
|
|
<el-table :key="tableKey" :data="formobj.asBwdiffapplyDetailList" :index="index" border style="width: 100%"> |
|
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|
|
|
<el-table-column label="操作" align="center" width="100"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="danger" size="small" @click="handleDelete(scope.$index)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sourceBillNo" label="维修单号" align="center" width="170" /> |
|
|
|
<el-table-column prop="customerName" label="客户名称" align="center" width="150" /> |
|
|
|
<el-table-column prop="vehMark" label="车牌号" align="center" width="150" /> |
|
|
@ -221,8 +226,7 @@ export default { |
|
|
|
}, |
|
|
|
chooseGd() { |
|
|
|
this.viewState = 2 |
|
|
|
const aa = [] |
|
|
|
this.$refs['divGD'].showData(aa, this.formobj.deptSid) |
|
|
|
this.$refs['divGD'].showData(this.formobj.asBwdiffapplyDetailList, this.formobj.deptSid) |
|
|
|
}, |
|
|
|
backData(value) { |
|
|
|
this.viewState = 1 |
|
|
@ -243,7 +247,7 @@ export default { |
|
|
|
outAmount: e.outAmount, |
|
|
|
rescueAmount: e.rescueAmount, |
|
|
|
otherAmount: e.otherAmount, |
|
|
|
totalAmount: e.totalAmount, |
|
|
|
totalAmount: e.settleAmount, |
|
|
|
diffHourAmount: '', |
|
|
|
diffGoodsAmount: '', |
|
|
|
diffOutAomunt: '', |
|
|
@ -259,6 +263,9 @@ export default { |
|
|
|
resetState() { |
|
|
|
this.viewState = 1 |
|
|
|
}, |
|
|
|
handleDelete(index) { |
|
|
|
this.formobj.asBwdiffapplyDetailList.splice(index, 1) |
|
|
|
}, |
|
|
|
// 计算列表中差异调整的合计金额 |
|
|
|
jeTotal(row) { |
|
|
|
row.diffTotalAmount = Math.round((parseFloat(row.diffHourAmount === '' ? '0' : row.diffHourAmount) + parseFloat(row.diffGoodsAmount === '' ? '0' : row.diffGoodsAmount) + parseFloat(row.diffOutAomunt === '' ? '0' : row.diffOutAomunt) + parseFloat(row.diffRescueAmount === '' ? '0' : row.diffRescueAmount) + parseFloat(row.diffOtherAmount === '' ? '0' : row.diffOtherAmount)) * 100) / 100 |
|
|
|