Browse Source

修改医生注册功能

c4az6 4 years ago
parent
commit
eac3da3fa7

+ 7 - 2
src/components/doctorRegister/doctorFillInfomation.vue

@@ -10,10 +10,12 @@
                    name="doctorName"
                    label="医生姓名"
                    placeholder="姓名"
+                   required
                    :rules="[{ required: true, pattern: patternName, message: '请输入正确的姓名' }]" />
         <van-field v-model="doctorFillForm.idCard"
                    name="idCard"
                    label="身份证号"
+                   required
                    maxlength="18"
                    type="text"
                    placeholder="18位身份证"
@@ -26,6 +28,7 @@
                  name="jobTitle"
                  :value="doctorFillForm.jobTitle"
                  label="医生职称"
+                 required
                  placeholder="请选择"
                  right-icon="arrow"
                  @click="showPicker = true"
@@ -44,6 +47,7 @@
                  name="doctorDepartments"
                  :value="doctorFillForm.doctorDepartments"
                  label="医生科室"
+                 required
                  placeholder="请选择"
                  right-icon="arrow"
                  @click="showPicker2 = true"
@@ -62,6 +66,7 @@
                  name="firstHospital"
                  :value="doctorFillForm.firstHospital"
                  label="执业医院"
+                 required
                  placeholder="请选择"
                  right-icon="arrow"
                  @click="show = true"
@@ -106,7 +111,7 @@
                  placeholder="请选择日期"
                  right-icon="arrow"
                  @click="showPicker3 = true"
-                 :rules="[{ required: true, message: '请选择日期' }]" />
+                 :rules="[{ required: false, message: '请选择日期' }]" />
       <van-popup v-model="showPicker3"
                  position="bottom">
         <van-datetime-picker v-model="currentDate"
@@ -128,7 +133,7 @@
                  placeholder="请选择"
                  right-icon="arrow"
                  @click="showPicker4 = true"
-                 :rules="[{ required: true, message: '请选择是否全科医生' }]" />
+                 :rules="[{ required: false, message: '请选择是否全科医生' }]" />
       <van-popup v-model="showPicker4"
                  position="bottom">
         <van-picker show-toolbar

+ 2 - 2
src/components/doctorRegister/uploadLicense.vue

@@ -193,13 +193,13 @@
         // 如果缓存中没有手写签名则直接调用生成接口
         if (!this.licenseForm.caPersonUrl) this.handleGenerate()
         setTimeout(async () => {
-          if (!this.licenseForm.headurl) {
+/*           if (!this.licenseForm.headurl) {
             this.$toast('请上传职业照片!')
           } else if (!this.licenseForm.qualificationImgurl) {
             this.$toast('请上传医师资格证!')
           } else if (!this.licenseForm.practiceImgurl) {
             this.$toast('请上传执业医生证!')
-          } else if (!this.resultImg && !this.licenseForm.caPersonUrl) {
+          }  */if (!this.resultImg && !this.licenseForm.caPersonUrl) {
             this.$toast('请完成手写签名!')
           } else {
             // 全部通过