diff --git a/pages/application/driving-inspections/dirving-inspections-list.vue b/pages/application/driving-inspections/dirving-inspections-list.vue index 3447ce9..36fef94 100644 --- a/pages/application/driving-inspections/dirving-inspections-list.vue +++ b/pages/application/driving-inspections/dirving-inspections-list.vue @@ -112,7 +112,7 @@ this.loginUserId = loginUser.USER_ID; this.background = require('@/common/background.json'); await this.getFunc(); - this.getData(); + this.fnInit(); // setTimeout(function() { // that.loading = true // }, 500) @@ -140,8 +140,7 @@ _this.list1 = []; await this.getFunc(); } - this.getData() - + this.fnInit() }, methods: { @@ -159,6 +158,39 @@ this.list = []; this.list1 = []; this.getData() + }, + async fnInit() { + uni.request({ + url: basePath + '/app/offduty/isRest', + method: 'POST', + dataType: 'json', + header: { + 'Content-type': 'application/x-www-form-urlencoded' + }, + data: { + USER_NAME: loginUser.NAME, + CORPINFO_ID: loginUser.CORPINFO_ID, + USER_ID: loginUser.USER_ID, + }, + success: (res) => { + console.log(res) + if("0" == res.data.ISREST){ + this.getData(); + }else{ + uni.showModal({ + title: "温馨提示", + confirmText: "确定", + content: + "重要提醒:您当前处于离岗状态,无法操作。", + success: (res) => { + if (res.cancel || res.confirm) { + uni.navigateBack(); + } + }, + }); + } + } + }) }, getData(){ var _this=this; @@ -170,7 +202,6 @@ title: '加载中' }) uni.request({ - url: basePath + '/app/waybillregistration/listForSecurityWaybillre', method: 'POST', dataType: 'json', diff --git a/pages/application/driving-inspections/driving-item-check-list.vue b/pages/application/driving-inspections/driving-item-check-list.vue index 90e5de4..d304e17 100644 --- a/pages/application/driving-inspections/driving-item-check-list.vue +++ b/pages/application/driving-inspections/driving-item-check-list.vue @@ -45,7 +45,7 @@ - 不是 + diff --git a/pages/basics/basic-info/components/baseInfo.vue b/pages/basics/basic-info/components/baseInfo.vue index aaa2f53..a16aa5d 100644 --- a/pages/basics/basic-info/components/baseInfo.vue +++ b/pages/basics/basic-info/components/baseInfo.vue @@ -19,6 +19,21 @@ + 人员类型 + + + 文化程度 {{formData.DEGREE_OF_EDUCATION_NAME}} @@ -85,8 +100,11 @@ import { formatDate,validateIdCard,validateMobile,getLevel } from '../../../../common/tool.js'; +import ZqsSelect from "../../../../components/zqs-select/zqs-select.vue"; + export default { name: "register_baseInfo", + components: {ZqsSelect}, props: { applyStatus: { type: String, @@ -162,12 +180,15 @@ import { this.formData[name] = e.detail.value this.$forceUpdate();//强制刷新 }, + changeSelect(e, name) { + this.$forceUpdate();//强制刷新 + }, pickerChangeData(e,name) { // 人员类型 if (name === 'PERSONNEL_TYPE') { this.dictData.PERSONNEL_TYPE.index = e.detail.value; this.formData.PERSONNEL_TYPE = this.dictData.PERSONNEL_TYPE.list[this.dictData.PERSONNEL_TYPE.index].DICTIONARIES_ID - this.formData.PERSONNEL_TYPE_NAME = this.dictData.PERSONNEL_TYPE.list[this.dictData.PERSONNEL_TYPE.index].NAME + this.formData.PERSONNEL_TYPENAME = this.dictData.PERSONNEL_TYPE.list[this.dictData.PERSONNEL_TYPE.index].NAME } // 政治面貌 if (name === 'POLITICAL_OUTLOOK') { @@ -192,7 +213,7 @@ import { }, validateData() { // 人员类型 - if (!this.formData.PERSONNEL_TYPE) { + if (this.formData.PERSONNEL_TYPE.length < 1) { uni.showToast({ icon: 'none', title: '请选择人员类型', diff --git a/pages/basics/basic-info/components/certificate.vue b/pages/basics/basic-info/components/certificate.vue index e1faf2c..18914fc 100644 --- a/pages/basics/basic-info/components/certificate.vue +++ b/pages/basics/basic-info/components/certificate.vue @@ -20,10 +20,10 @@ 人员类型 - {{formData.PERSONNEL_TYPE_NAME}} + {{formData.PERSONNEL_TYPENAME}} - {{formData.PERSONNEL_TYPE_NAME?formData.PERSONNEL_TYPE_NAME:'请选择'}} + {{formData.PERSONNEL_TYPE.join()}} @@ -737,53 +737,55 @@ export default { } // 驾驶证 - if (this.fileData.driverLicense.length < 1) { - uni.showToast({ - icon: 'none', - title: '请上传驾驶证照片', - duration: 2000 - }); - return false; - } - if (!this.formData.DRIVER_LICENSE_NO) { - uni.showToast({ - icon: 'none', - title: '请输入驾驶证号', - duration: 2000 - }); - return false; - } - if (this.formData.DRIVING_MODEL.length < 1) { - uni.showToast({ - icon: 'none', - title: '请选择准驾车型', - duration: 2000 - }); - return false; - } - if (!this.formData.DRIVER_LICENSE_ISSUE_DATE) { - uni.showToast({ - icon: 'none', - title: '请选择初次领证日期', - duration: 2000 - }); - return false; - } - if (!this.formData.DRIVER_LICENSE_VALIDITY_START || !this.formData.DRIVER_LICENSE_VALIDITY_END) { - uni.showToast({ - icon: 'none', - title: '请选择驾驶证有效期时间', - duration: 2000 - }); - return false; - } - if (!this.formData.DRIVER_LICENSE_ORGAN) { - uni.showToast({ - icon: 'none', - title: '请输入驾驶证的签发机关', - duration: 2000 - }); - return false; + if (this.formData.PERSONNEL_TYPE_NAME.find((item) => item === '驾驶员')) { + if (this.fileData.driverLicense.length < 1) { + uni.showToast({ + icon: 'none', + title: '请上传驾驶证照片', + duration: 2000 + }); + return false; + } + if (!this.formData.DRIVER_LICENSE_NO) { + uni.showToast({ + icon: 'none', + title: '请输入驾驶证号', + duration: 2000 + }); + return false; + } + if (this.formData.DRIVING_MODEL.length < 1) { + uni.showToast({ + icon: 'none', + title: '请选择准驾车型', + duration: 2000 + }); + return false; + } + if (!this.formData.DRIVER_LICENSE_ISSUE_DATE) { + uni.showToast({ + icon: 'none', + title: '请选择初次领证日期', + duration: 2000 + }); + return false; + } + if (!this.formData.DRIVER_LICENSE_VALIDITY_START || !this.formData.DRIVER_LICENSE_VALIDITY_END) { + uni.showToast({ + icon: 'none', + title: '请选择驾驶证有效期时间', + duration: 2000 + }); + return false; + } + if (!this.formData.DRIVER_LICENSE_ORGAN) { + uni.showToast({ + icon: 'none', + title: '请输入驾驶证的签发机关', + duration: 2000 + }); + return false; + } } // 从业资格证证 diff --git a/pages/basics/basic-info/user-info.vue b/pages/basics/basic-info/user-info.vue index 7597154..f8181bf 100644 --- a/pages/basics/basic-info/user-info.vue +++ b/pages/basics/basic-info/user-info.vue @@ -93,8 +93,8 @@ import Apply from "./components/apply.vue" SEXNAME: '', //人员类型 - PERSONNEL_TYPE: '', - PERSONNEL_TYPE_NAME: '', + PERSONNEL_TYPE: [], + PERSONNEL_TYPENAME: '', // 政治面貌 POLITICAL_OUTLOOK: '', POLITICAL_OUTLOOK_NAME: '',