CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复(禁用)
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
<span>司机状态</span>
|
||||
</div>
|
||||
<div class="isJoin">
|
||||
<van-radio-group v-model="states" @change="isUse" class="joinWrap">
|
||||
<van-radio-group v-model="states" @change="isUse" :disabled="statesDisabled" :class="{ 'disabled-radio': statesDisabled }" class="joinWrap">
|
||||
<van-radio :name="1" style="margin-right: 26px" class="item">
|
||||
启用
|
||||
<img
|
||||
@@ -185,6 +185,7 @@ export default {
|
||||
iconList: [],
|
||||
driverInfo: {},
|
||||
drivingLicenceName: '',
|
||||
fromSupplierAdd: false, // 是否从 supplierAdd 进入
|
||||
idCardAuthority:'',
|
||||
idCardValidStartTime:'',
|
||||
idCardValidEndTime:'',
|
||||
@@ -224,8 +225,9 @@ export default {
|
||||
this.drivingLicenceName = this.$route.params?.drivingLicenceName;
|
||||
// 获取 fromSupplierAdd 标识
|
||||
const fromSupplierAdd = this.$route.params?.fromSupplierAdd;
|
||||
this.fromSupplierAdd = fromSupplierAdd === 'true';
|
||||
// 如果从 supplierAdd 进入且不是修改模式,默认设置为停用状态
|
||||
if(!this.id && fromSupplierAdd === 'true') {
|
||||
if(!this.id && this.fromSupplierAdd) {
|
||||
this.states = 0;
|
||||
}
|
||||
if( this.identityCardFront ) {
|
||||
@@ -462,6 +464,12 @@ export default {
|
||||
},2000)
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
// 司机状态是否禁用(从 supplierAdd 进入且非修改模式时禁用)
|
||||
statesDisabled() {
|
||||
return !this.id && this.fromSupplierAdd;
|
||||
}
|
||||
},
|
||||
components:{
|
||||
TwoCommonBtn,
|
||||
CellGroup
|
||||
@@ -536,4 +544,8 @@ export default {
|
||||
position: fixed;
|
||||
bottom: 30px;
|
||||
}
|
||||
.disabled-radio {
|
||||
pointer-events: none;
|
||||
opacity: 0.6;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -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