Commit 23faf18a by 姜雷

处理重复name问题

parent 6eed4852
...@@ -93,7 +93,7 @@ ...@@ -93,7 +93,7 @@
</el-form-item> </el-form-item>
<el-form-item class="col-line-3-1" label="派车车牌" label-width="100px"> <el-form-item class="col-line-3-1" label="派车车牌" label-width="100px">
<el-select class="w100" v-if="editType" v-model="selected.carPlateList" filterable clearable multiple placeholder="派车车牌"> <el-select class="w100" v-if="editType" v-model="selected.carPlateList" filterable clearable multiple placeholder="派车车牌">
<el-option v-for="item in carPlateOptions" :key="item.id" :label="item.name" :value="item.name"> <el-option v-for="item in carPlateOptions" :key="item.id" :label="item.name" :value="item.id">
</el-option> </el-option>
</el-select> </el-select>
<span v-else>{{selected.carPlate}}</span> <span v-else>{{selected.carPlate}}</span>
...@@ -313,10 +313,13 @@ export default { ...@@ -313,10 +313,13 @@ export default {
? `不同意 - ${this.selected.dealOpinion}` ? `不同意 - ${this.selected.dealOpinion}`
: `不同意 - 无车可派送`; : `不同意 - 无车可派送`;
} }
let carPlate = this.selected.carPlateList.map(
id => this.carPlateOptions.find(i => i.id === id).name
);
const entity = { const entity = {
userId: this.userInfo.id, userId: this.userInfo.id,
id: this.selected.id, id: this.selected.id,
carPlate: this.selected.carPlateList.join(','), carPlate: carPlate.join(','),
startKilometers: this.selected.startKilometers, startKilometers: this.selected.startKilometers,
stopKilometers: this.selected.stopKilometers, stopKilometers: this.selected.stopKilometers,
trueKilometers: this.selected.trueKilometers, trueKilometers: this.selected.trueKilometers,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment