Просмотр исходного кода

Merge branch 'master' of http://192.168.1.222:3000/zhoufan/RMYY_CallCenter_UI

闪电 1 год назад
Родитель
Сommit
59c0a92321

BIN
CallCenterWeb.UI/RMYY/0120-1dist.zip


+ 69 - 10
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

@@ -225,8 +225,8 @@
225 225
           </el-row>
226 226
           <el-row v-if="orderTypeSzData.indexOf(worktypeInfo3) !== -1">
227 227
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
228
-              <el-form-item label="患者姓名" required>
229
-                <el-input v-model="patientMsgAll[currentIndex].name" placeholder="请输入患者姓名" />
228
+              <el-form-item label="患者姓名" prop="patientName">
229
+                <el-input v-model="patientMsgAll[currentIndex].name" @change="patientNameChange" placeholder="请输入患者姓名" />
230 230
               </el-form-item>
231 231
             </el-col>
232 232
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
@@ -235,17 +235,17 @@
235 235
               </el-form-item>
236 236
             </el-col>
237 237
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
238
-              <el-form-item label="身份证号" required>
238
+              <el-form-item label="身份证号" prop="patientIdCard">
239 239
                 <el-input v-model="patientMsgAll[currentIndex].shenfenzheng" @change="changeIdCard" placeholder="请输入身份证号" />
240 240
               </el-form-item>
241 241
             </el-col>
242 242
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
243
-              <el-form-item label="年龄" required>
244
-                <el-input-number v-model="patientMsgAll[currentIndex].F_nl" :min="1" />
243
+              <el-form-item label="年龄"  prop="patientNl">
244
+                <el-input-number v-model="patientMsgAll[currentIndex].F_nl" :min="1"  @change="patientNlChange"/>
245 245
               </el-form-item>
246 246
             </el-col>
247 247
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
248
-              <el-form-item label="性别" prop="F_Sex">
248
+              <el-form-item label="性别">
249 249
                 <el-radio-group v-model="patientMsgAll[currentIndex].F_Sex">
250 250
                   <el-radio label="0">男</el-radio>
251 251
                   <el-radio label="1">女</el-radio>
@@ -265,15 +265,15 @@
265 265
           </el-row>
266 266
           <el-row v-if="orderTypeSzData.indexOf(worktypeInfo3) !== -1">
267 267
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
268
-              <el-form-item label="接诊院区" required>
269
-                <el-select v-model="patientMsgAll[currentIndex].jzyq" placeholder="请选择接诊院区" clearable>
268
+              <el-form-item label="接诊院区"  prop="patientGzyq">
269
+                <el-select v-model="patientMsgAll[currentIndex].jzyq" placeholder="请选择接诊院区" @change="patientGzyqChange" clearable>
270 270
                   <el-option v-for="(item,index) in hospitalDataLists" :key="index" :value="item.T_Woid"
271 271
                     :label="item.T_Woname" />
272 272
                 </el-select>
273 273
               </el-form-item>
274 274
             </el-col>
275 275
             <el-col v-if="patientMsgAll[currentIndex]" :span="12">
276
-              <el-form-item label="接诊科室" required prop="jzks">
276
+              <el-form-item label="接诊科室" prop="jzks">
277 277
                 <el-input v-model="patientMsgAll[currentIndex].jzks" @change="jzksChange" placeholder="请输入接诊科室" clearable />
278 278
               </el-form-item>
279 279
             </el-col>
@@ -662,6 +662,34 @@
662 662
               trigger: 'blur'
663 663
             }
664 664
           ],
665
+          patientGzyq:[
666
+          {
667
+              required: true,
668
+              message: '请选择接诊院区',
669
+              trigger: 'blur'
670
+            }
671
+          ],
672
+          patientName:[
673
+          {
674
+              required: true,
675
+              message: '请输入患者姓名',
676
+              trigger: 'blur'
677
+            }
678
+          ],
679
+          patientIdCard:[
680
+          {
681
+              required: true,
682
+              message: '请输入身份证号',
683
+              trigger: 'blur'
684
+            }
685
+          ],
686
+          patientNl:[
687
+          {
688
+              required: true,
689
+              message: '请输入患者年龄',
690
+              trigger: 'blur'
691
+            }
692
+          ],
665 693
           F_hzdh: [
666 694
             // {
667 695
             //   required: true,
@@ -673,6 +701,10 @@
673 701
         F_Type2: '',
674 702
         ruleForm: {
675 703
           jzks:'',
704
+          patientName:'',
705
+          patientIdCard:'',
706
+          patientNl:'',
707
+          patientGzyq:'',
676 708
           F_CallID: '',
677 709
           F_ID: '',
678 710
           F_Type1: '', // 工单类别
@@ -975,10 +1007,12 @@
975 1007
         })
976 1008
       },
977 1009
       changeIdCard(e){
978
-
1010
+        this.ruleForm.patientIdCard = e
979 1011
         if (e.length === 15 || e.length === 18) {
980 1012
           this.patientMsgAll[this.currentIndex].F_nl = this.getIdCardAge(e)
981 1013
           this.patientMsgAll[this.currentIndex].F_Sex = this.getIdCardSex(e)
1014
+          this.ruleForm.patientNl =  this.getIdCardAge(e)
1015
+          this.ruleForm.F_Sex =  this.getIdCardAge(e)
982 1016
         } else {
983 1017
           this.$message.error('身份证号位数不正确')
984 1018
         }
@@ -1053,6 +1087,19 @@
1053 1087
         console.log('jzksChange',e)
1054 1088
         this.ruleForm.jzks = e
1055 1089
       },
1090
+      patientNameChange(e){
1091
+        console.log(e)
1092
+        this.ruleForm.patientName = e
1093
+      },
1094
+      patientIdCardChange(e){
1095
+        this.ruleForm.patientIdCard = e
1096
+      },
1097
+      patientNlChange(e){
1098
+        this.ruleForm.patientNl = e
1099
+      },
1100
+      patientGzyqChange(e){
1101
+        this.ruleForm.patientGzyq = e
1102
+      },
1056 1103
       changePatient(index, data) {
1057 1104
         this.currentIndex = index
1058 1105
       },
@@ -1344,6 +1391,12 @@
1344 1391
                 }];
1345 1392
                 console.log(res)
1346 1393
                 this.ruleForm.jzks = res.F_Jzks
1394
+                this.ruleForm.patientName = res.F_FullName
1395
+                this.ruleForm.patientIdCard = decrypt(res.F_IDNumberShow)
1396
+                this.ruleForm.patientNl = res.F_nl
1397
+                this.ruleForm.patientGzyq = res.F_JzYq
1398
+                
1399
+
1347 1400
                 this.patientMsgAll = [{
1348 1401
                   name: res.F_FullName,
1349 1402
                   tel: res.F_hzdh,
@@ -1757,6 +1810,12 @@
1757 1810
         this.ruleForm.F_FullName = ''
1758 1811
         this.ruleForm.F_IDNumber = ''
1759 1812
         this.ruleForm.F_AppointmentTime = ''
1813
+
1814
+        this.ruleForm.patientName = '' // 处理意见
1815
+        this.ruleForm.patientIdCard = ''
1816
+        this.ruleForm.patientNl = ''
1817
+        this.ruleForm.patientGzyq = ''
1818
+        this.ruleForm.jzks = ''
1760 1819
       },
1761 1820
       // 工单类型切换清空
1762 1821
       resetOrderType() {