车辆管理,司机管理bug修复
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
@click-left="h5GoBack"
|
||||
/>
|
||||
</div>
|
||||
<cell-group label="司机姓名" placeholder="请输入司机姓名" v-model="driverName"/>
|
||||
<cell-group label="司机姓名" placeholder="请输入司机姓名" v-model="driverName" :disabled="supplierType ==1 ? true:false"/>
|
||||
<cell-group label="手机号码" v-model="driverPhone" placeholder="请输入手机号" />
|
||||
<p v-if="phoneNumberError" class="error-message">{{ phoneNumberErrorMessage }}</p>
|
||||
<cell-group label="身份证号" v-model="identityCardNumber" placeholder="请输入身份证号" />
|
||||
@ -64,7 +64,7 @@
|
||||
|
||||
<script>
|
||||
import {myMixins} from "@/utils/myMixins"
|
||||
import {timeFormat} from "@/utils/common"
|
||||
// import {timeFormat} from "@/utils/common"
|
||||
import {saveDriver} from "@/api/mine"
|
||||
import TwoCommonBtn from "@/components/twoBtnCommon.vue"
|
||||
import CellGroup from "@/components/cellGroup.vue"
|
||||
@ -82,7 +82,9 @@ export default {
|
||||
activeIcon: require('@/assets/check.png'),
|
||||
inactiveIcon: require('@/assets/uncheck.png'),
|
||||
phoneNumberError: false,
|
||||
phoneNumberErrorMessage: ''
|
||||
phoneNumberErrorMessage: '',
|
||||
supplierType:'',
|
||||
createTime:''
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@ -92,6 +94,8 @@ export default {
|
||||
this.drivingModel = this.$route.params?.drivingModel;
|
||||
this.identityCardNumber = this.$route.params?.identityCardNumber;
|
||||
this.states = this.$route.params?.states;
|
||||
this.supplierType=this.$route.params?.supplierType;
|
||||
this.createTime=this.$route.params?.createTime;
|
||||
console.log(this.driverName,this.driverPhone,this.drivingModel,this.identityCardNumber,this.states)
|
||||
const selectElement = document.getElementById('mySelect');
|
||||
selectElement.addEventListener('change', function() {
|
||||
@ -115,7 +119,7 @@ export default {
|
||||
identityCardNumber:this.identityCardNumber,
|
||||
drivingModel:this.drivingModel,
|
||||
states:Number(this.states),
|
||||
createTime:timeFormat(new Date())
|
||||
createTime:this.createTime || ''
|
||||
})
|
||||
if(this.id){
|
||||
this.$toast('修改成功')
|
||||
|
@ -84,6 +84,7 @@ export default {
|
||||
}, 1000);
|
||||
},
|
||||
addDriver(){
|
||||
this.$toast('supplierType的值为:'+this.supplierType)
|
||||
if(this.supplierType == 1){
|
||||
this.$toast("无权添加")
|
||||
}else{
|
||||
@ -135,7 +136,9 @@ export default {
|
||||
phone:item.driverPhone,
|
||||
drivingModel:item.drivingModel,
|
||||
identityCardNumber:item.identityCardNumber,
|
||||
states:item.states.code
|
||||
states:item.states.code,
|
||||
createTime:item.createTime,
|
||||
supplierType:this.supplierType
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -95,6 +95,7 @@ export default {
|
||||
})
|
||||
// if(result.code === 200){
|
||||
this.$toast('删除成功');
|
||||
this.pageNum=1
|
||||
// this.vehicleList=[]
|
||||
await this.getVehicleList();
|
||||
// }
|
||||
|
@ -217,7 +217,7 @@
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<two-common-btn v-show="auditFormShow" class="btn" title1="提交" title2="确定审核" @cancelClick="save" @submitClick="save" />
|
||||
<two-common-btn v-show="auditFormShow" class="btn" title1="提交" title2="确定审核" @submitClick1="save" @submitClick="save" />
|
||||
<!-- <div class="twoBtn" v-show="auditFormShow">-->
|
||||
<!-- <button class="cancel" @click="noMultipleClicks(save)">提交</button>-->
|
||||
<!-- <button class="submit" @click="noMultipleClicks(save)">确定审核</button>-->
|
||||
|
Reference in New Issue
Block a user