Browse Source

完善维修单应收调差、维修单开票

master
yunuo970428 1 week ago
parent
commit
00d1ea9ed1
  1. 2
      yxt-as-ui/src/views/operation/workorderinvoicing/relation/chooseRepairbill.vue
  2. 2
      yxt-as-ui/src/views/operation/workorderinvoicing/workorderinvoicingAdd.vue
  3. 13
      yxt-as-ui/src/views/operation/workorderreceivable/workorderreceivableAdd.vue
  4. 2
      yxt-as-ui/src/views/workFlow/gongdankaipiaoFlow/relation/chooseRepairbill.vue
  5. 2
      yxt-as-ui/src/views/workFlow/gongdankaipiaoFlow/workorderinvoicingEdit.vue
  6. 15
      yxt-as-ui/src/views/workFlow/gongdanyingshouFlow/workorderreceivableEdit.vue

2
yxt-as-ui/src/views/operation/workorderinvoicing/relation/chooseRepairbill.vue

@ -59,7 +59,7 @@
<el-table-column prop="outAmount" label="外出费" align="center" width="130" />
<el-table-column prop="otherAmount" label="其它费用" align="center" width="130" />
<el-table-column prop="settleTime" label="结算日期" align="center" width="120" />
<el-table-column prop="totalAmount" label="结算金额合计" align="center" width="150" />
<el-table-column prop="settleAmount" label="结算金额合计" align="center" width="150" />
</el-table>
</div>
<div class="pages">

2
yxt-as-ui/src/views/operation/workorderinvoicing/workorderinvoicingAdd.vue

@ -277,7 +277,7 @@ export default {
outAmount: e.outAmount,
rescueAmount: e.rescueAmount,
otherAmount: e.otherAmount,
totalAmount: e.totalAmount
totalAmount: e.settleAmount
})
})
}

13
yxt-as-ui/src/views/operation/workorderreceivable/workorderreceivableAdd.vue

@ -43,6 +43,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" />
@ -222,8 +227,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
@ -244,7 +248,7 @@ export default {
outAmount: e.outAmount,
rescueAmount: e.rescueAmount,
otherAmount: e.otherAmount,
totalAmount: e.totalAmount,
totalAmount: e.settleAmount,
diffHourAmount: '',
diffGoodsAmount: '',
diffOutAomunt: '',
@ -260,6 +264,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

2
yxt-as-ui/src/views/workFlow/gongdankaipiaoFlow/relation/chooseRepairbill.vue

@ -59,7 +59,7 @@
<el-table-column prop="outAmount" label="外出费" align="center" width="130" />
<el-table-column prop="otherAmount" label="其它费用" align="center" width="130" />
<el-table-column prop="settleTime" label="结算日期" align="center" width="120" />
<el-table-column prop="totalAmount" label="结算金额合计" align="center" width="150" />
<el-table-column prop="settleAmount" label="结算金额合计" align="center" width="150" />
</el-table>
</div>
<div class="pages">

2
yxt-as-ui/src/views/workFlow/gongdankaipiaoFlow/workorderinvoicingEdit.vue

@ -272,7 +272,7 @@ export default {
outAmount: e.outAmount,
rescueAmount: e.rescueAmount,
otherAmount: e.otherAmount,
totalAmount: e.totalAmount
totalAmount: e.settleAmount
})
})
}

15
yxt-as-ui/src/views/workFlow/gongdanyingshouFlow/workorderreceivableEdit.vue

@ -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

Loading…
Cancel
Save