Commit e32edf40 by 张杰

修复问题

1 parent 9c546511
......@@ -176,7 +176,7 @@
<el-form ref="carInfoForm" :model="carInfoForm" :rules="carInfoFormRules" label-width="140px">
<el-form-item label="请选择对应车辆:" prop="vehicleId">
<el-select class="a_select" v-model="carInfoForm.vehicleId">
<el-option v-for="(item,index) in vehicleList" :key="index" :value="item.vehicleId" :label="item.ownerName + '/' + item.shopName"></el-option>
<el-option v-for="(item,index) in vehicleList" :key="index" :value="item.vehicleId" :label="item.vin"></el-option>
</el-select>
</el-form-item>
<el-form-item v-if="currentVehicle.ownerName || currentVehicle.shopName || currentVehicle.bizOrderNo">
......@@ -688,17 +688,24 @@ export default {
if (!_pass) {
return false;
}
_this.aloading = true;
oParams.orderId = this.orderId;
oParams.vehicleId = this.currentVehicle.vehicleId;
let res = await SAVE_RELINKVEHICLE_INFO(oParams);
if (res.code == 200) {
_this.aloading = false;
if (res.code != 200) {
showToast({
message: res.message,
type: "error",
});
return false;
}
showToast({
message: "关联成功",
type: "success",
});
_this.closeCarDialog();
_this.getList(1);
}
console.log(res);
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!