Browse Source

HIS 系统提交

XMLWAN 4 years ago
parent
commit
d8b1d717d8

+ 45 - 23
src/xt_pages/data/components/addInspection.vue View File

45
                 </el-form-item>
45
                 </el-form-item>
46
   
46
   
47
                  <el-form-item label="组套明细" style="width:50%;">
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
                         <el-option
50
                         <el-option
50
                         v-for="item in projectList"
51
                         v-for="item in projectList"
51
                         :key="item.id"
52
                         :key="item.id"
110
 
111
 
111
 <script>
112
 <script>
112
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
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
 export default {
115
 export default {
115
     data(){
116
     data(){
116
         return{
117
         return{
142
               team_type: [{ required:true,message:'请填写组套类型',trigger:'change' }]
143
               team_type: [{ required:true,message:'请填写组套类型',trigger:'change' }]
143
            },
144
            },
144
            tableData:[],
145
            tableData:[],
145
-           projectList:[]
146
+           projectList:[],
147
+           tabList:[],
146
         }
148
         }
147
     },
149
     },
148
     methods:{
150
     methods:{
168
          this.visible = false
170
          this.visible = false
169
         },
171
         },
170
         submitAction(formName){
172
         submitAction(formName){
171
-          
172
            this.$refs[formName].validate((valid)=>{
173
            this.$refs[formName].validate((valid)=>{
173
                 var arr = []
174
                 var arr = []
174
                 for(let i=0;i<this.tableData.length;i++){
175
                 for(let i=0;i<this.tableData.length;i++){
200
                    this.form.tube_color = "",
201
                    this.form.tube_color = "",
201
                    this.form.team_type = "",
202
                    this.form.team_type = "",
202
                    this.form.remark = ""
203
                    this.form.remark = ""
204
+                   this.tableData = []
205
+                   this.form.number = ""
203
                    this.$parent.getlist()
206
                    this.$parent.getlist()
204
                  }else{
207
                  }else{
205
                     this.$message.error("项目组套名称已存在!")
208
                     this.$message.error("项目组套名称已存在!")
213
                var projectList = response.data.data.projectList
216
                var projectList = response.data.data.projectList
214
                console.log('projectlist33333',projectList)
217
                console.log('projectlist33333',projectList)
215
                this.projectList = projectList
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
         getId(id){
226
         getId(id){
239
           var name = ""
227
           var name = ""
240
           var statistics_category =  getDictionaryDataConfig('system','statistics_category') 
228
           var statistics_category =  getDictionaryDataConfig('system','statistics_category') 
246
           }
234
           }
247
           return name
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
         DeleteProject(id,index){
271
         DeleteProject(id,index){
250
            this.$confirm("确认删除此项目吗?", "删除", {
272
            this.$confirm("确认删除此项目吗?", "删除", {
251
             confirmButtonText: "确 定",
273
             confirmButtonText: "确 定",

+ 3 - 1
src/xt_pages/data/components/inspection.vue View File

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

+ 2 - 2
src/xt_pages/data/components/project.vue View File

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

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

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

+ 1 - 2
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

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

+ 72 - 9
src/xt_pages/outpatientDoctorStation/doctorDesk.vue View File

51
             <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
51
             <el-button size="small" @click="open(5)" type="primary">存模板</el-button>
52
           </div>
52
           </div>
53
           <div class="mainCell fixedCell" style="float:right" v-if="titleType == '病历'">
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
           </div>
58
           </div>
59
         </div>
59
         </div>
60
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
60
         <!--<desk-prescription ref="prescriptions"   :prescriptions="prescriptions" :patientInfo="patientInfo" :hisPatientInfo="hisPatientInfo"-->
65
                            v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
65
                            v-if="titleType == '处方'" style="flex:1;"></desk-prescription>
66
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
66
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
67
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
67
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '病历'"></desk-record>
68
+        <medicalRecord ref='medicalRecord'  @func="getMsgFormSon"></medicalRecord>
69
+       <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
68
       </div>
70
       </div>
69
 
71
 
70
     </div>
72
     </div>
75
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
77
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
76
   import deskPrescription from './components/deskPrescription'
78
   import deskPrescription from './components/deskPrescription'
77
   import deskRecord from './components/deskRecord'
79
   import deskRecord from './components/deskRecord'
78
-  import { getPatientInfo, getSchedulePatientList } from '@/api/his/his'
80
+  import { getPatientInfo, getSchedulePatientList,createCaseHistory } from '@/api/his/his'
79
   import { getDictionaryDataConfig } from '@/utils/data'
81
   import { getDictionaryDataConfig } from '@/utils/data'
80
-
82
+  import medicalRecord from './components/medicalRecord'
83
+  import saveRecordTemplate from './components/saveRecordTemplate'
81
   import { uParseTime } from '@/utils/tools'
84
   import { uParseTime } from '@/utils/tools'
82
 
85
 
83
   export default {
86
   export default {
84
     components: {
87
     components: {
85
       BreadCrumb,
88
       BreadCrumb,
86
       deskPrescription,
89
       deskPrescription,
87
-      deskRecord
90
+      deskRecord,
91
+      medicalRecord,
92
+      saveRecordTemplate
88
     },
93
     },
89
     data() {
94
     data() {
90
       return {
95
       return {
299
         //     psn_name:"杨美英",
304
         //     psn_name:"杨美英",
300
         //     age:60.7
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
       // changePatient(val){
365
       // changePatient(val){
304
       //   console.log("患者val",val)
366
       //   console.log("患者val",val)
305
       //   this.hisPatientInfo = val.hisPatientInfo
367
       //   this.hisPatientInfo = val.hisPatientInfo
306
       //   console.log("333333",this.hisPatientInfo)
368
       //   console.log("333333",this.hisPatientInfo)
307
       // }
369
       // }
308
-    }, created() {
370
+    }, 
371
+    created() {
309
       var nowDate = new Date()
372
       var nowDate = new Date()
310
       var nowYear = nowDate.getFullYear()
373
       var nowYear = nowDate.getFullYear()
311
       var nowMonth = nowDate.getMonth() + 1
374
       var nowMonth = nowDate.getMonth() + 1

+ 4 - 7
src/xt_pages/outpatientRegistration/index.vue View File

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

+ 4 - 2
src/xt_pages/outpatientRegistration/registrationHistory.vue View File

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