Browse Source

HIS 系统提交

XMLWAN 4 years ago
parent
commit
3f1586ecc5

+ 3 - 10
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -221,9 +221,8 @@
221 221
 
222 222
 
223 223
       // },
224
-      open(index) {
225
-        console.log("index",index)
226
-        if (index == 1) {
224
+      createCaseHistory() {
225
+        console.log("触发了吗")
227 226
           if(this.patientInfo.id == undefined){
228 227
             this.$message.error("请先选择病人")
229 228
             return
@@ -269,13 +268,7 @@
269 268
               this.$message.success("保存成功")
270 269
             }
271 270
           })
272
-        } else if (index == 2) {
273
-          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
274
-        } else if (index == 3) {
275
-          this.$refs.medicalRecord.show()
276
-        } else if (index == 4) {
277
-          this.$refs.saveRecordTemplate.show(this.case_history)
278
-        }
271
+       
279 272
 
280 273
       },
281 274
       getMsgFormSon(data){

+ 50 - 44
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

@@ -64,8 +64,10 @@
64 64
                            :hisPatientInfo="hisPatientInfo"
65 65
                            v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
66 66
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
67
-                     :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
68
-        <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
67
+                     :hisPatientInfo="hisPatientInfo"   v-if="titleType == '病历'"  ref="child"></desk-record>
68
+                    
69
+        <!-- <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord> -->
70
+         <medicalRecord ref='medicalRecord' ></medicalRecord>
69 71
        <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
70 72
       </div>
71 73
 
@@ -306,53 +308,57 @@
306 308
         // }
307 309
       },
308 310
       opentwo(index) {
309
-        console.log("index",index)
311
+        console.log("index===",index)
310 312
         if (index == 1) {
311 313
           if(this.patientInfo.id == undefined){
312 314
             this.$message.error("请先选择病人")
313 315
             return
314 316
           }
315
-          if(this.case_history.is_infect == true){
316
-            this.case_history.is_infect = 1
317
-          }
318
-          if(this.case_history.is_infect == false){
319
-             this.case_history.is_infect = 2
320
-          }
321
-          let params = {
322
-            "his_patient_id":this.hisPatientInfo.id,
323
-            "delivery_way":this.delivery_way?"":0,
324
-            "patient_id":this.patientInfo.id,
325
-            "temperature":this.case_history.temperature,
326
-            "blood_sugar":this.case_history.blood_sugar,
327
-            "pulse":this.case_history.pulse,
328
-            "sbp":this.case_history.sbp,
329
-            "dbp":this.case_history.dbp,
330
-            "blood_fat":this.case_history.blood_fat,
331
-            "height":this.case_history.height,
332
-            "sick_type":this.case_history.sick_type,
333
-            "symptom":this.case_history.symptom,
334
-            "sick_date":this.start_time,
335
-            "is_infect":this.case_history.is_infect,
336
-            "chief_conplaint":this.case_history.chief_conplaint,
337
-            "history_of_present_illness":this.case_history.history_of_present_illness,
338
-            "past_history":this.case_history.past_history,
339
-            "personal_history":this.case_history.personal_history,
340
-            "family_history":this.case_history.family_history,
341
-            "record_date":this.record_date,
342
-            "diagnostic":this.case_history.diagnostic,
343
-            "breathing":this.case_history.breathing,
344
-            "doctor_advice":this.doctor_advice,
345
-            "remark":this.remark
346
-          }
347
-        
348
-          createCaseHistory(params).then(response => {
349
-            if (response.data.state == 0) {
350
-              this.$message.error("患者病历已存在")
351
-              return false
352
-            } else {
353
-              this.$message.success("保存成功")
354
-            }
355
-          })
317
+          this.$refs.child.createCaseHistory()
318
+          // if(this.case_history.is_infect == true){
319
+          //   this.case_history.is_infect = 1
320
+          // }
321
+          // if(this.case_history.is_infect == false){
322
+          //    this.case_history.is_infect = 2
323
+          // }
324
+          // let params = {
325
+          //   "his_patient_id":this.hisPatientInfo.id,
326
+          //   "delivery_way":this.delivery_way?"":0,
327
+          //   "patient_id":this.patientInfo.id,
328
+          //   "temperature":this.case_history.temperature,
329
+          //   "blood_sugar":this.case_history.blood_sugar,
330
+          //   "pulse":this.case_history.pulse,
331
+          //   "sbp":this.case_history.sbp,
332
+          //   "dbp":this.case_history.dbp,
333
+          //   "blood_fat":this.case_history.blood_fat,
334
+          //   "height":this.case_history.height,
335
+          //   "sick_type":this.case_history.sick_type,
336
+          //   "symptom":this.case_history.symptom,
337
+          //   "sick_date":this.start_time,
338
+          //   "is_infect":this.case_history.is_infect,
339
+          //   "chief_conplaint":this.case_history.chief_conplaint,
340
+          //   "history_of_present_illness":this.case_history.history_of_present_illness,
341
+          //   "past_history":this.case_history.past_history,
342
+          //   "personal_history":this.case_history.personal_history,
343
+          //   "family_history":this.case_history.family_history,
344
+          //   "record_date":this.record_date,
345
+          //   "diagnostic":this.case_history.diagnostic,
346
+          //   "breathing":this.case_history.breathing,
347
+          //   // "doctor_advice":this.doctor_advice,
348
+          //   // "remark":this.remark
349
+          //   "doctor_advice":this.$ref.doctor_advice,
350
+          //   // "remark":this.remark
351
+          // }
352
+          // console.log("params",params)
353
+          // return
354
+          // createCaseHistory(params).then(response => {
355
+          //   if (response.data.state == 0) {
356
+          //     this.$message.error("患者病历已存在")
357
+          //     return false
358
+          //   } else {
359
+          //     this.$message.success("保存成功")
360
+          //   }
361
+          // })
356 362
         } else if (index == 2) {
357 363
           this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
358 364
         } else if (index == 3) {

+ 5 - 2
src/xt_pages/outpatientRegistration/index.vue View File

@@ -70,7 +70,7 @@
70 70
             </div>
71 71
             <div class="nameTitle">患者挂号信息:</div>
72 72
             <div class="formMain">
73
-                <el-form class="basicForm" :model="form" label-width="100px">
73
+                <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
74 74
                     <el-form-item label="挂号类型:"  prop="register">
75 75
                         <el-select v-model="form.register"  placeholder="请选择">
76 76
                             <el-option
@@ -245,7 +245,7 @@ export default {
245 245
             },
246 246
 
247 247
             rules: {
248
-              idCard: [{ required: true, message: '请填写身份证', trigger: 'blur'  }],
248
+              idCard: [{ required: true, message: '证件号码不能为空', trigger: 'blur'  }],
249 249
               register: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
250 250
               doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
251 251
               department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
@@ -358,6 +358,9 @@ export default {
358 358
            })   
359 359
         },
360 360
         saveHisPatient(formName){   
361
+           if(this.form.idCard == ""){
362
+             this.$message.error("证件号码不能为空")
363
+           }
361 364
           this.$refs[formName].validate((valid)=>{
362 365
              if(valid){
363 366
                   if(this.form.costChecked == true){

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

@@ -88,7 +88,7 @@
88 88
                 </el-table-column>
89 89
                 <el-table-column align="center" prop="name" label="操作" width="80">
90 90
                     <template slot-scope="scope">
91
-                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)" >退号</el-button> 
91
+                        <el-button size="mini" type="primary" v-if="scope.row.is_return == 1" @click ="toReturnPatient(scope.row.id)">退号</el-button> 
92 92
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 2" :disabled="true">已退号</el-button>
93 93
                         <el-button size="mini" type="primary" v-if="scope.row.is_return == 3" :disabled="true">已就诊</el-button>  
94 94
                     </template>