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>
|
||||
|
||||
Reference in New Issue
Block a user