CRM_26-04-22#story#8495,潜在供应商H5页面提交信息,信息审核,提交补充信息与退回理由的优化与修复(禁用)

This commit is contained in:
2026-06-09 11:29:02 +08:00
parent 57f839166e
commit 4aae54f9a5
2 changed files with 22 additions and 4 deletions

View File

@@ -122,7 +122,7 @@
<span>司机状态</span> <span>司机状态</span>
</div> </div>
<div class="isJoin"> <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"> <van-radio :name="1" style="margin-right: 26px" class="item">
启用 启用
<img <img
@@ -185,6 +185,7 @@ export default {
iconList: [], iconList: [],
driverInfo: {}, driverInfo: {},
drivingLicenceName: '', drivingLicenceName: '',
fromSupplierAdd: false, // 是否从 supplierAdd 进入
idCardAuthority:'', idCardAuthority:'',
idCardValidStartTime:'', idCardValidStartTime:'',
idCardValidEndTime:'', idCardValidEndTime:'',
@@ -224,8 +225,9 @@ export default {
this.drivingLicenceName = this.$route.params?.drivingLicenceName; this.drivingLicenceName = this.$route.params?.drivingLicenceName;
// 获取 fromSupplierAdd 标识 // 获取 fromSupplierAdd 标识
const fromSupplierAdd = this.$route.params?.fromSupplierAdd; const fromSupplierAdd = this.$route.params?.fromSupplierAdd;
this.fromSupplierAdd = fromSupplierAdd === 'true';
// 如果从 supplierAdd 进入且不是修改模式,默认设置为停用状态 // 如果从 supplierAdd 进入且不是修改模式,默认设置为停用状态
if(!this.id && fromSupplierAdd === 'true') { if(!this.id && this.fromSupplierAdd) {
this.states = 0; this.states = 0;
} }
if( this.identityCardFront ) { if( this.identityCardFront ) {
@@ -462,6 +464,12 @@ export default {
},2000) },2000)
}, },
}, },
computed: {
// 司机状态是否禁用(从 supplierAdd 进入且非修改模式时禁用)
statesDisabled() {
return !this.id && this.fromSupplierAdd;
}
},
components:{ components:{
TwoCommonBtn, TwoCommonBtn,
CellGroup CellGroup
@@ -536,4 +544,8 @@ export default {
position: fixed; position: fixed;
bottom: 30px; bottom: 30px;
} }
.disabled-radio {
pointer-events: none;
opacity: 0.6;
}
</style> </style>

View File

@@ -197,7 +197,7 @@
<span>车辆状态</span> <span>车辆状态</span>
</div> </div>
<div class="isJoin"> <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"> <van-radio :name="1" style="margin-right: 14px">
启用 启用
<img <img
@@ -471,6 +471,7 @@ export default {
checkList: [], checkList: [],
virtualVehicle: '', virtualVehicle: '',
vehicleStatus: '', vehicleStatus: '',
fromSupplierAdd: false, // 是否从 supplierAdd 进入
showDatePicker: false, showDatePicker: false,
dateVal: '', dateVal: '',
trailerService: '',//拖车服务 trailerService: '',//拖车服务
@@ -648,6 +649,10 @@ export default {
} else { } else {
return false return false
} }
},
// 车辆状态是否禁用(从 supplierAdd 进入且非修改模式时禁用)
vehicleStatusDisabled() {
return !this.id && this.fromSupplierAdd;
} }
}, },
watch:{ watch:{
@@ -691,6 +696,7 @@ export default {
this.supplierId = rawId ? Number(rawId) : ''; this.supplierId = rawId ? Number(rawId) : '';
// 获取 fromSupplierAdd 标识 // 获取 fromSupplierAdd 标识
const fromSupplierAdd = this.$route.query.fromSupplierAdd || urlParams.get('fromSupplierAdd'); const fromSupplierAdd = this.$route.query.fromSupplierAdd || urlParams.get('fromSupplierAdd');
this.fromSupplierAdd = fromSupplierAdd === 'true';
await this.getSupplierServiceTree(); await this.getSupplierServiceTree();
await this.getTypeList(); await this.getTypeList();
if( this.id){ if( this.id){
@@ -708,7 +714,7 @@ export default {
insurancePicturePhoto:'' insurancePicturePhoto:''
} }
// 如果从 supplierAdd 进入,默认设置为停用状态 // 如果从 supplierAdd 进入,默认设置为停用状态
if(fromSupplierAdd === 'true') { if(this.fromSupplierAdd) {
this.vehicleStatus = 2; this.vehicleStatus = 2;
} }
} }