|
@@ -372,6 +372,9 @@
|
|
|
<template slot="plateNoHeader" slot-scope="{column}">
|
|
|
{{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
</template>
|
|
|
+ <template slot="feeIdHeader" slot-scope="{column}">
|
|
|
+ {{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
+ </template>
|
|
|
<template slot-scope="{row}" slot="feeId">
|
|
|
<breakdown-select
|
|
|
v-if="row.$cellEdit"
|
|
@@ -429,6 +432,12 @@
|
|
|
></crop-select>
|
|
|
<span v-else>{{ row.corpName }}</span>
|
|
|
</template>
|
|
|
+ <template slot="plateNoHeader" slot-scope="{column}">
|
|
|
+ {{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
+ </template>
|
|
|
+ <template slot="feeIdHeader" slot-scope="{column}">
|
|
|
+ {{ column.label }}<span style="color:#F56C6C">*</span>
|
|
|
+ </template>
|
|
|
<template slot-scope="{row}" slot="feeId">
|
|
|
<breakdown-select
|
|
|
v-if="row.$cellEdit"
|
|
@@ -1390,6 +1399,9 @@ export default {
|
|
|
props: {
|
|
|
label: "fleetName",
|
|
|
value: "fleetId"
|
|
|
+ },
|
|
|
+ change:(data)=>{
|
|
|
+ data.row.plateNo = ''
|
|
|
}
|
|
|
},
|
|
|
// {
|
|
@@ -1402,12 +1414,19 @@ export default {
|
|
|
label: '车号',
|
|
|
cell: true,
|
|
|
prop: 'plateNo',
|
|
|
- dicUrl: "/blade-land/order-fee/plate-no?orderId=" + this.id+'&fleetId={{key}}',
|
|
|
+ dicUrl: "api/blade-land/order-fee/plate-no?orderId=" + this.id + '&fleetId={{key}}',
|
|
|
type: "select",
|
|
|
props: {
|
|
|
label: "label",
|
|
|
value: "label"
|
|
|
},
|
|
|
+ dicFormatter:(data)=>{
|
|
|
+ let list = []
|
|
|
+ data.data.forEach(ele=>{
|
|
|
+ list.push({label:ele})
|
|
|
+ })
|
|
|
+ return list
|
|
|
+ }
|
|
|
}, {
|
|
|
label: '费用名称',
|
|
|
slot: true,
|
|
@@ -1511,17 +1530,24 @@ export default {
|
|
|
// })
|
|
|
})
|
|
|
}
|
|
|
- // queryVehicle({orderId: this.id}).then(res => {
|
|
|
- // const column = this.findObject(this.collectionOption.column, "plateNo");
|
|
|
+ queryVehicle({orderId: this.id}).then(res => {
|
|
|
+ const column = this.findObject(this.collectionOption.column, "plateNo");
|
|
|
+ column.dicData = []
|
|
|
+ res.data.data.forEach(item => {
|
|
|
+ column.dicData.push({label: item})
|
|
|
+ })
|
|
|
+ this.key++
|
|
|
+ });
|
|
|
+ // this.findObject(this.paymentOption.column, "plateNo").change = (data) => {
|
|
|
// const columnTwo = this.findObject(this.paymentOption.column, "plateNo");
|
|
|
- // column.dicData = []
|
|
|
// columnTwo.dicData = []
|
|
|
- // res.data.data.forEach(item => {
|
|
|
- // column.dicData.push({label: item})
|
|
|
- // columnTwo.dicData.push({label: item})
|
|
|
- // })
|
|
|
+ // queryVehicle({orderId: this.id,fleetId:data.row.fleetId}).then(res => {
|
|
|
+ // res.data.data.forEach(item => {
|
|
|
+ // columnTwo.dicData.push({label: item})
|
|
|
+ // })
|
|
|
+ // });
|
|
|
// this.key++
|
|
|
- // });
|
|
|
+ // }
|
|
|
this.$refs.other.show = false
|
|
|
// 非租户模式默认加载管理组数据
|
|
|
if (!website.tenantMode) {
|
|
@@ -1807,11 +1833,15 @@ export default {
|
|
|
rowCell(row, index) {
|
|
|
if (row.$cellEdit) {
|
|
|
if (row.plateNo) {
|
|
|
- incidentalSubmit(row).then(res => {
|
|
|
- this.$refs.collection.rowCell(row, index)
|
|
|
- row = res.data.data
|
|
|
- this.$message.success("保存成功");
|
|
|
- })
|
|
|
+ if (row.feeId){
|
|
|
+ incidentalSubmit(row).then(res => {
|
|
|
+ this.$refs.collection.rowCell(row, index)
|
|
|
+ row = res.data.data
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message.error("请选择费用名称");
|
|
|
+ }
|
|
|
} else {
|
|
|
this.$message.error("请选择车号");
|
|
|
}
|
|
@@ -1821,12 +1851,21 @@ export default {
|
|
|
},
|
|
|
paymentRowCell(row, index) {
|
|
|
if (row.$cellEdit) {
|
|
|
- incidentalSubmit(row).then(res => {
|
|
|
- row = res.data.data
|
|
|
- this.$message.success("保存成功");
|
|
|
- })
|
|
|
+ if (row.plateNo) {
|
|
|
+ if (row.feeId){
|
|
|
+ incidentalSubmit(row).then(res => {
|
|
|
+ row = res.data.data
|
|
|
+ this.$message.success("保存成功");
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ this.$message.error("请选择费用名称");
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$message.error("请选择车号");
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$refs.payment.rowCell(row, index)
|
|
|
}
|
|
|
- this.$refs.payment.rowCell(row, index)
|
|
|
},
|
|
|
//箱信息移除
|
|
|
rowDel(row, index) {
|