CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复(禁用)
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
<span>车辆状态</span>
|
||||
</div>
|
||||
<div class="isJoin">
|
||||
<van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled }" :disabled="vehicleInfoDisabled" @change="isVehicleChange" class="joinWrap">
|
||||
<van-radio-group v-model="vehicleStatus" :class="{ 'disabled-tree': vehicleInfoDisabled || vehicleStatusDisabled }" :disabled="vehicleInfoDisabled || vehicleStatusDisabled" @change="isVehicleChange" class="joinWrap">
|
||||
<van-radio :name="1" style="margin-right: 14px">
|
||||
启用
|
||||
<img
|
||||
@@ -471,6 +471,7 @@ export default {
|
||||
checkList: [],
|
||||
virtualVehicle: '',
|
||||
vehicleStatus: '',
|
||||
fromSupplierAdd: false, // 是否从 supplierAdd 进入
|
||||
showDatePicker: false,
|
||||
dateVal: '',
|
||||
trailerService: '',//拖车服务
|
||||
@@ -648,6 +649,10 @@ export default {
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
},
|
||||
// 车辆状态是否禁用(从 supplierAdd 进入且非修改模式时禁用)
|
||||
vehicleStatusDisabled() {
|
||||
return !this.id && this.fromSupplierAdd;
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
@@ -691,6 +696,7 @@ export default {
|
||||
this.supplierId = rawId ? Number(rawId) : '';
|
||||
// 获取 fromSupplierAdd 标识
|
||||
const fromSupplierAdd = this.$route.query.fromSupplierAdd || urlParams.get('fromSupplierAdd');
|
||||
this.fromSupplierAdd = fromSupplierAdd === 'true';
|
||||
await this.getSupplierServiceTree();
|
||||
await this.getTypeList();
|
||||
if( this.id){
|
||||
@@ -708,7 +714,7 @@ export default {
|
||||
insurancePicturePhoto:''
|
||||
}
|
||||
// 如果从 supplierAdd 进入,默认设置为停用状态
|
||||
if(fromSupplierAdd === 'true') {
|
||||
if(this.fromSupplierAdd) {
|
||||
this.vehicleStatus = 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user