Browse Source

HIS 系统提交

XMLWAN 4 years ago
parent
commit
79f4e21902

+ 7 - 6
src/xt_pages/data/printTemplate.vue View File

8
         <el-tab-pane label="电子病历模板" name="1">
8
         <el-tab-pane label="电子病历模板" name="1">
9
           <record-print></record-print>
9
           <record-print></record-print>
10
         </el-tab-pane>
10
         </el-tab-pane>
11
-        <el-tab-pane label="处方模板" name="2">
11
+        <el-tab-pane label="电子处方模板" name="2">
12
           <prescription-print></prescription-print>
12
           <prescription-print></prescription-print>
13
         </el-tab-pane>
13
         </el-tab-pane>
14
-        <el-tab-pane label="处方治疗模板" name="3">
14
+        <el-tab-pane label="处方治疗模板" name="3">
15
           <treat-print></treat-print>
15
           <treat-print></treat-print>
16
         </el-tab-pane>
16
         </el-tab-pane>
17
-        <el-tab-pane label="透析记录模板" name="4">
18
-          <dialysis-print></dialysis-print>
19
-        </el-tab-pane>
20
-        <el-tab-pane label="门诊收费明细模板" name="5">
17
+         <el-tab-pane label="门诊收费明细模板" name="5">
21
           <charge-print></charge-print>
18
           <charge-print></charge-print>
22
         </el-tab-pane>
19
         </el-tab-pane>
20
+        <el-tab-pane label="透析记录单模板" name="4">
21
+          <dialysis-print></dialysis-print>
22
+        </el-tab-pane>
23
+       
23
       </el-tabs>
24
       </el-tabs>
24
     </div>
25
     </div>
25
   </div>
26
   </div>

+ 40 - 10
src/xt_pages/outpatientRegistration/index.vue View File

24
                         </div>
24
                         </div>
25
                     </el-form-item>
25
                     </el-form-item>
26
                     <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
26
                     <el-form-item label="患者姓名:"  prop="name" :validate-event="is_Name">
27
-                        <el-input  v-model="form.name"></el-input>
27
+                        <!-- <el-input  v-model="form.name"></el-input> -->
28
+                       <el-select v-model="form.name" placeholder="请选择">
29
+                            <el-option
30
+                            v-for="item in patient"
31
+                            :key="item.patient_id"
32
+                            :label="item.name"
33
+                            :value="item.name">
34
+                            </el-option>
35
+                        </el-select>
28
                     </el-form-item>
36
                     </el-form-item>
29
-                    <el-form-item label="性别:">
37
+                    <el-form-item label="性别:" prop="sex" :validate-event="is_Name">
30
                         <el-select v-model="form.sex" placeholder="请选择">
38
                         <el-select v-model="form.sex" placeholder="请选择">
31
                             <el-option
39
                             <el-option
32
                             v-for="item in sex"
40
                             v-for="item in sex"
56
                             </el-option>
64
                             </el-option>
57
                         </el-select>
65
                         </el-select>
58
                     </el-form-item>
66
                     </el-form-item>
59
-                    <el-form-item label="出生日期:">
67
+                    <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
60
                         <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
68
                         <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
61
                     </el-form-item>
69
                     </el-form-item>
62
-                    <el-form-item label="年龄:">
70
+                    <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
63
                         <el-input v-model="form.age"></el-input>
71
                         <el-input v-model="form.age"></el-input>
64
                     </el-form-item>
72
                     </el-form-item>
65
                     <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
73
                     <el-form-item label="证件号码:" prop="idCard"  :validate-event="is_Name">
245
             },
253
             },
246
             rules: {
254
             rules: {
247
               name:[{ required:true,message:"患者姓名不能为空",trigger: 'blur'}],
255
               name:[{ required:true,message:"患者姓名不能为空",trigger: 'blur'}],
256
+              sex:[{ required:true,message:"患者性别不能为空",trigger: 'blur'}],
248
               idCard: [{ required: true, message: '证件号码不能为空', trigger: 'blur'  }],
257
               idCard: [{ required: true, message: '证件号码不能为空', trigger: 'blur'  }],
249
               register: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
258
               register: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
250
               doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
259
               doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
251
               department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
260
               department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
261
+              age:[{ required:true,message:"患者年龄不能为空",trigger: 'blur'}],
262
+              birthday:[{required:true,message:"患者出生日期不能为空",trigger:'blur'}]
252
            },
263
            },
253
            doctorList:[],
264
            doctorList:[],
254
            departmentList:[],
265
            departmentList:[],
255
            check:0,
266
            check:0,
256
            show:false,
267
            show:false,
257
-           is_Name:false
268
+           is_Name:false,
269
+           patient:[],
258
         }
270
         }
259
     },
271
     },
260
     computed:{
272
     computed:{
364
              this.is_Name = true
376
              this.is_Name = true
365
              return
377
              return
366
            }
378
            }
367
-          if(this.form.idCard == ""){
368
-             this.$message.error("证件号码不能为空")
369
-             this.is_Name = true
370
-             return
379
+          
380
+
381
+           if(this.form.sex == ""){
382
+             this.$message.error("患者性别不能为空")
371
            }
383
            }
372
 
384
 
373
           if(this.form.register == ""){
385
           if(this.form.register == ""){
387
              this.is_Name = true
399
              this.is_Name = true
388
              return
400
              return
389
            }
401
            }
402
+         if(this.form.age == ""){
403
+            this.$message.error("患者年龄不能为空")
404
+            this.is_Name = true
405
+            return
406
+         }
407
+         if(this.form.birthday == ""){
408
+            this.$message.error("出生日期不能为空")
409
+            this.is_Name = true
410
+            return
411
+         }
412
+
413
+         if(this.form.idCard == ""){
414
+             this.$message.error("证件号码不能为空")
415
+             this.is_Name = true
416
+             return
417
+          }
390
           this.$refs[formName].validate((valid)=>{
418
           this.$refs[formName].validate((valid)=>{
391
              if(valid){
419
              if(valid){
392
                   if(this.form.costChecked == true){
420
                   if(this.form.costChecked == true){
418
                     total:this.total
446
                     total:this.total
419
                 }
447
                 }
420
                 console.log("params",params)
448
                 console.log("params",params)
449
+                return
421
                 saveHisPatient(params).then(response=>{
450
                 saveHisPatient(params).then(response=>{
422
                    if(response.data.state == 1){
451
                    if(response.data.state == 1){
423
                      var patient =  response.data.data.patient
452
                      var patient =  response.data.data.patient
449
           getTodaySchedulePatient().then(response=>{
478
           getTodaySchedulePatient().then(response=>{
450
              if(response.data.state == 1){
479
              if(response.data.state == 1){
451
                var patient =  response.data.data.patient
480
                var patient =  response.data.data.patient
452
-            //    console.log("今日排班",patient)
481
+               console.log("今日排班",patient)
482
+               this.patient = patient
453
              }
483
              }
454
           }) 
484
           }) 
455
        }
485
        }

+ 1 - 1
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

54
                 <el-table-column align="center" type="index" label="序号" width="60">
54
                 <el-table-column align="center" type="index" label="序号" width="60">
55
                 </el-table-column>
55
                 </el-table-column>
56
                 <el-table-column align="center" prop="name" label="时间" width="100">
56
                 <el-table-column align="center" prop="name" label="时间" width="100">
57
-                    <template slot-scope="scope">{{getTime(scope.row.record_date,"{y}-{m}-{d}")}}</template>
57
+                    <template slot-scope="scope">{{getTime(scope.row.ctime,"{y}-{m}-{d} {h}:{i}:{s}")}}</template>
58
                 </el-table-column>
58
                 </el-table-column>
59
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
59
                 <el-table-column align="center" prop="dialysis_no" label="姓名" width="80">
60
                     <template slot-scope="scope">{{scope.row.name }}</template>
60
                     <template slot-scope="scope">{{scope.row.name }}</template>