Pārlūkot izejas kodu

HIS 系统提交

XMLWAN 4 gadus atpakaļ
vecāks
revīzija
d8b1d717d8

+ 45 - 23
src/xt_pages/data/components/addInspection.vue Parādīt failu

@@ -45,7 +45,8 @@
45 45
                 </el-form-item>
46 46
   
47 47
                  <el-form-item label="组套明细" style="width:50%;">
48
-                    <el-select v-model="form.project_detail" placeholder="请选择">
48
+                    <el-select v-model="form.project_detail" placeholder="请选择"
49
+                     @change="chagneInspection">
49 50
                         <el-option
50 51
                         v-for="item in projectList"
51 52
                         :key="item.id"
@@ -110,7 +111,7 @@
110 111
 
111 112
 <script>
112 113
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
113
-import { saveProjectTeam,getAllProjectList,addProjectList,DeleteProject } from "@/api/project/project"
114
+import { saveProjectTeam,getAllProjectList,addProjectList,DeleteProject,getProjectDetail } from "@/api/project/project"
114 115
 export default {
115 116
     data(){
116 117
         return{
@@ -142,7 +143,8 @@ export default {
142 143
               team_type: [{ required:true,message:'请填写组套类型',trigger:'change' }]
143 144
            },
144 145
            tableData:[],
145
-           projectList:[]
146
+           projectList:[],
147
+           tabList:[],
146 148
         }
147 149
     },
148 150
     methods:{
@@ -168,7 +170,6 @@ export default {
168 170
          this.visible = false
169 171
         },
170 172
         submitAction(formName){
171
-          
172 173
            this.$refs[formName].validate((valid)=>{
173 174
                 var arr = []
174 175
                 for(let i=0;i<this.tableData.length;i++){
@@ -200,6 +201,8 @@ export default {
200 201
                    this.form.tube_color = "",
201 202
                    this.form.team_type = "",
202 203
                    this.form.remark = ""
204
+                   this.tableData = []
205
+                   this.form.number = ""
203 206
                    this.$parent.getlist()
204 207
                  }else{
205 208
                     this.$message.error("项目组套名称已存在!")
@@ -213,28 +216,13 @@ export default {
213 216
                var projectList = response.data.data.projectList
214 217
                console.log('projectlist33333',projectList)
215 218
                this.projectList = projectList
216
-               var hisprojectlist = response.data.data.hisprojectlist
217
-               console.log("hisprojectlist",hisprojectlist)
218
-               this.tableData = hisprojectlist
219
+            //    var hisprojectlist = response.data.data.hisprojectlist
220
+            //    console.log("hisprojectlist",hisprojectlist)
221
+            //    this.tableData = hisprojectlist
219 222
              }
220 223
           })   
221 224
         },
222
-        addProjectList(){
223
-            const params = {
224
-              id:this.form.project_detail,
225
-              number:parseInt(this.form.number)
226
-            }
227
-           console.log("params",params)
228
-          addProjectList(params).then(response=>{
229
-             if(response.data.state == 1){
230
-               var projectList = response.data.data.projectList
231
-               this.$message.success("保存成功")
232
-               this.form.project_detail = ""
233
-               this.form.number = ""
234
-               this.getlist()
235
-             }
236
-          })
237
-        },
225
+       
238 226
         getId(id){
239 227
           var name = ""
240 228
           var statistics_category =  getDictionaryDataConfig('system','statistics_category') 
@@ -246,6 +234,40 @@ export default {
246 234
           }
247 235
           return name
248 236
         },
237
+        chagneInspection(id){
238
+           getProjectDetail(id).then(response=>{
239
+              if(response.data.state == 1){
240
+               var projectdetail = response.data.data.projecDetail
241
+               console.log("projectdetail",projectdetail)
242
+               this.tableData.push(projectdetail)
243
+              }
244
+           })
245
+        },
246
+       addProjectList(){
247
+          for(let i=0;i<this.tabList.length;i++){
248
+            if(this.form.project_detail == this.tabList[i].id){
249
+                this.tabList[i].number = this.form.number
250
+            }
251
+         }
252
+         this.tableData = []
253
+         this.tableData = this.tabList
254
+         
255
+       
256
+        //     const params = {
257
+        //       id:this.form.project_detail,
258
+        //       number:parseInt(this.form.number)
259
+        //     }
260
+        //    console.log("params",params)
261
+        //   addProjectList(params).then(response=>{
262
+        //      if(response.data.state == 1){
263
+        //        var projectList = response.data.data.projectList
264
+        //        this.$message.success("保存成功")
265
+        //        this.form.project_detail = ""
266
+        //        this.form.number = ""
267
+        //        this.getlist()
268
+        //      }
269
+        //   })
270
+        },
249 271
         DeleteProject(id,index){
250 272
            this.$confirm("确认删除此项目吗?", "删除", {
251 273
             confirmButtonText: "确 定",

+ 3 - 1
src/xt_pages/data/components/inspection.vue Parādīt failu

@@ -115,7 +115,9 @@ export default {
115 115
         this.page = val
116 116
         this.getlist()
117 117
       },
118
-        searchAction(){},
118
+        searchAction(){
119
+          this.getlist()  
120
+        },
119 121
         clickSelfPayment(){
120 122
             this.$refs.selfPayment.show();
121 123
         },

+ 2 - 2
src/xt_pages/data/components/project.vue Parādīt failu

@@ -4,7 +4,7 @@
4 4
             <div class="cell clearfix" style="margin-bottom:0;">
5 5
                 <el-input style="width: 180px;margin-right:10px;" @keyup.enter.native='searchAction' v-model.trim="search_input" class="filter-item"/>
6 6
                 <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction" >搜索</el-button>
7
-                <label class="title"><span class="name">是否启用</span> : </label>
7
+                <label class="title"><span class="name">状态</span> : </label>
8 8
                 <el-select v-model="is_start" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeStart">
9 9
                     <el-option
10 10
                     v-for="item in options"
@@ -13,7 +13,7 @@
13 13
                     :value="item.value">
14 14
                     </el-option>
15 15
                 </el-select>
16
-                <label class="title"><span class="name">是否收费</span> : </label>
16
+                <label class="title"><span class="name">是否收费预估项:</span> : </label>
17 17
                 <el-select v-model="is_charge" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeOption">
18 18
                     <el-option
19 19
                     v-for="item in optionOne"

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Parādīt failu

@@ -247,7 +247,7 @@
247 247
   import saveTemplate from './saveTemplate'
248 248
   import additionalCharges from './additionalCharges'
249 249
   import { addProjectTeam, getAllProjectTeam, getHisProject, getPojectListById } from '@/api/project/project'
250
-
250
+ 
251 251
   export default {
252 252
     props: {
253 253
       patientInfo: Object,
@@ -854,6 +854,7 @@
854 854
         })
855 855
       },
856 856
       selectTeam(row) {
857
+        console.log("row------",row)
857 858
         var arr = []
858 859
         for (let i = 0; i < row.length; i++) {
859 860
           arr.push(row[i].project_id)
@@ -879,6 +880,7 @@
879 880
         const params = {
880 881
           project_id: idstr
881 882
         }
883
+        console.log("params",params)
882 884
         getPojectListById(params).then(response => {
883 885
           if (response.data.state == 1) {
884 886
             var project = response.data.data.project

+ 1 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Parādīt failu

@@ -152,8 +152,7 @@
152 152
         </el-input>
153 153
       </el-form-item>
154 154
     </el-form>
155
-    <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
156
-    <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
155
+   
157 156
   </div>
158 157
 </template>
159 158
 

+ 72 - 9
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Parādīt failu

@@ -51,10 +51,10 @@
51 51
             <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
52 52
           </div>
53 53
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
54
-            <el-button size="small" @click="open(1)" type="primary" style="margin-left:10px;">保存</el-button>
55
-            <el-button size="small" @click="open(2)" type="primary">打印</el-button>
56
-            <el-button size="small" @click="open(3)" type="primary">病历调用</el-button>
57
-            <el-button size="small" @click="open(4)" type="primary">存模板</el-button>
54
+            <el-button size="small" @click="opentwo(1)" type="primary" style="margin-left:10px;">保存</el-button>
55
+            <el-button size="small" @click="opentwo(2)" type="primary">打印</el-button>
56
+            <el-button size="small" @click="opentwo(3)" type="primary">病历调用</el-button>
57
+            <el-button size="small" @click="opentwo(4)" type="primary">存模板</el-button>
58 58
           </div>
59 59
         </div>
60 60
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
@@ -65,6 +65,8 @@
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 67
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
68
+        <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
69
+       <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
68 70
       </div>
69 71
 
70 72
     </div>
@@ -75,16 +77,19 @@
75 77
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
76 78
   import deskPrescription from './components/deskPrescription'
77 79
   import deskRecord from './components/deskRecord'
78
-  import { getPatientInfo, getSchedulePatientList } from '@/api/his/his'
80
+  import { getPatientInfo, getSchedulePatientList,createCaseHistory } from '@/api/his/his'
79 81
   import { getDictionaryDataConfig } from '@/utils/data'
80
-
82
+  import medicalRecord from './components/medicalRecord'
83
+  import saveRecordTemplate from './components/saveRecordTemplate'
81 84
   import { uParseTime } from '@/utils/tools'
82 85
 
83 86
   export default {
84 87
     components: {
85 88
       BreadCrumb,
86 89
       deskPrescription,
87
-      deskRecord
90
+      deskRecord,
91
+      medicalRecord,
92
+      saveRecordTemplate
88 93
     },
89 94
     data() {
90 95
       return {
@@ -299,13 +304,71 @@
299 304
         //     psn_name:"杨美英",
300 305
         //     age:60.7
301 306
         // }
302
-      }
307
+      },
308
+      opentwo(index) {
309
+        console.log("index",index)
310
+        if (index == 1) {
311
+          if(this.patientInfo.id == undefined){
312
+            this.$message.error("请先选择病人")
313
+            return
314
+          }
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
+          })
356
+        } else if (index == 2) {
357
+          this.$router.push('/outpatientDoctorStation/recordPrint?record='+this.record_date)
358
+        } else if (index == 3) {
359
+          this.$refs.medicalRecord.show()
360
+        } else if (index == 4) {
361
+          this.$refs.saveRecordTemplate.show(this.case_history)
362
+        }
363
+
364
+      },
303 365
       // changePatient(val){
304 366
       //   console.log("患者val",val)
305 367
       //   this.hisPatientInfo = val.hisPatientInfo
306 368
       //   console.log("333333",this.hisPatientInfo)
307 369
       // }
308
-    }, created() {
370
+    }, 
371
+    created() {
309 372
       var nowDate = new Date()
310 373
       var nowYear = nowDate.getFullYear()
311 374
       var nowMonth = nowDate.getMonth() + 1

+ 4 - 7
src/xt_pages/outpatientRegistration/index.vue Parādīt failu

@@ -6,7 +6,7 @@
6 6
         <div class="app-container">
7 7
             <div class="nameTitle">患者基本信息:</div>
8 8
             <div class="formMain">
9
-                <el-form class="basicForm" :model="form" :rules="rules" ref="form"  label-width="100px">
9
+                <el-form class="basicForm" :model="form"  :rules="rules"  ref="form"  label-width="100px">
10 10
                     <el-form-item label="结算类型:">
11 11
                         <el-select v-model="form.settlementValue" placeholder="请选择">
12 12
                             <el-option
@@ -64,16 +64,13 @@
64 64
                     </el-form-item>
65 65
                     <el-form-item label="证件号码:" required prop="idCard">
66 66
                         <el-input v-model="form.idCard"></el-input>
67
-                        <!-- <div class="el-form-item__error" v-show="show">
68
-                          请填写证件号码
69
-                        </div> -->
70 67
                     </el-form-item>
71 68
    
72 69
                 </el-form>
73 70
             </div>
74 71
             <div class="nameTitle">患者挂号信息:</div>
75 72
             <div class="formMain">
76
-                <el-form class="basicForm" :model="form" :rules="rules" label-width="100px">
73
+                <el-form class="basicForm" :model="form" label-width="100px">
77 74
                     <el-form-item label="挂号类型:"  prop="register">
78 75
                         <el-select v-model="form.register"  placeholder="请选择">
79 76
                             <el-option
@@ -248,7 +245,7 @@ export default {
248 245
             },
249 246
 
250 247
             rules: {
251
-              idCard: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
248
+              idCard: [{ required: true, message: '请填写身份证', trigger: 'blur'  }],
252 249
               register: [{ required: true, message: '请选择挂号类型' , trigger: 'blur' }],
253 250
               doctor: [{ required: true, message: '请选择医生' , trigger: 'blur' }],
254 251
               department: [{ required: true, message: '请填写科室', trigger: 'blur' }],
@@ -405,7 +402,7 @@ export default {
405 402
                      this.form.medicalCare = "",
406 403
                      this.form.birthday ="",
407 404
                      this.form.age ="",
408
-                     this.form.idCard = "",
405
+                    //  this.form.idCard = "",
409 406
                      this.form.register = "",
410 407
                      this.form.doctor = "",
411 408
                      this.form.department = "",

+ 4 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue Parādīt failu

@@ -206,12 +206,14 @@ export default {
206 206
         // },
207 207
         changeStart(val){
208 208
           this.start_time = val
209
+          this.getlist()
209 210
         },
210 211
         changeEnd(val){
211
-           this.end_time = val
212
+          this.end_time = val
213
+          this.getlist()
212 214
         },
213 215
         changeRegister(val){
214
-
216
+          this.getlist()
215 217
         },
216 218
        handleSizeChange(val) {
217 219
           this.limit = val