Browse Source

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 years ago
parent
commit
af14eb2664

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

654
       },
654
       },
655
       comfirm: function(formName) {
655
       comfirm: function(formName) {
656
         this.$refs[formName].validate((valid) => {
656
         this.$refs[formName].validate((valid) => {
657
-          // console.log(valid)
657
+           console.log(valid)
658
           if (valid) {
658
           if (valid) {
659
             this.$emit('dialog-comfirm', this.getValue())
659
             this.$emit('dialog-comfirm', this.getValue())
660
           }
660
           }

+ 6 - 7
src/xt_pages/dialysis/bloodPresssWatch.vue View File

723
           this.total = response.data.data.total;
723
           this.total = response.data.data.total;
724
           // console.log(response.data.data)
724
           // console.log(response.data.data)
725
           for (let i = 0; i < response.data.data.schedule.length; i++) {
725
           for (let i = 0; i < response.data.data.schedule.length; i++) {
726
-            if (response.data.data.schedule[i].patient.id > 0) {
726
+            if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
727
               const SchedualPatientsTable = {
727
               const SchedualPatientsTable = {
728
                 bp: []
728
                 bp: []
729
               };
729
               };
760
               }
760
               }
761
 
761
 
762
               SchedualPatientsTable.bp = [];
762
               SchedualPatientsTable.bp = [];
763
-              for (
764
-                let a = 0;
765
-                a < response.data.data.schedule[i].monitoring_record.length;
766
-                a++
767
-              ) {
763
+              if(response.data.data.schedule[i].monitoring_record && response.data.data.schedule[i].monitoring_record.length > 0){
764
+                for (let a = 0;a < response.data.data.schedule[i].monitoring_record.length;a++) {
768
                 const bp = {};
765
                 const bp = {};
769
                 bp["value"] =
766
                 bp["value"] =
770
                   response.data.data.schedule[i].monitoring_record[
767
                   response.data.data.schedule[i].monitoring_record[
775
                     a
772
                     a
776
                   ].diastolic_blood_pressure.toString();
773
                   ].diastolic_blood_pressure.toString();
777
 
774
 
778
-                SchedualPatientsTable.bp.push(bp);
775
+                 SchedualPatientsTable.bp.push(bp);
776
+               }
779
               }
777
               }
778
+             
780
 
779
 
781
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
780
               this.SchedualPatientsTableData.push(SchedualPatientsTable);
782
               console.log("中国222222",this.SchedualPatientsTableData)
781
               console.log("中国222222",this.SchedualPatientsTableData)

+ 4 - 4
src/xt_pages/user/components/PatientSidebar.vue View File

106
               name: '1-9',
106
               name: '1-9',
107
               label: '阶段小结'
107
               label: '阶段小结'
108
             },
108
             },
109
-            // {
110
-            //   name: '1-10',
111
-            //   label: '住院小结'
112
-            // },
109
+            {
110
+              name: '1-10',
111
+              label: '住院小结'
112
+            },
113
             {
113
             {
114
               name: '1-3',
114
               name: '1-3',
115
               label: '检验检查'
115
               label: '检验检查'

+ 81 - 73
src/xt_pages/user/hospitalSummaryPrint.vue View File

32
             </td>
32
             </td>
33
             <td style="text-align:center;" colspan="1">
33
             <td style="text-align:center;" colspan="1">
34
               <span style="display:inline-block;margin-left:10px;">
34
               <span style="display:inline-block;margin-left:10px;">
35
-               
35
+                 {{getNewAge(patient.id_card_no)}}
36
               </span>
36
               </span>
37
             </td>
37
             </td>
38
             <td style="text-align:center;" colspan="1">
38
             <td style="text-align:center;" colspan="1">
40
             </td>
40
             </td>
41
              <td style="text-align:center;" colspan="1">
41
              <td style="text-align:center;" colspan="1">
42
               <span style="display:inline-block;margin-left:10px;">
42
               <span style="display:inline-block;margin-left:10px;">
43
-               
43
+                 <span v-if="patient.marital_status == 0">未婚</span>
44
+                 <span v-if="patient.marital_status == 1">已婚</span>
45
+                 <span v-if="patient.marital_status == 2">未婚</span>
46
+                 <span v-if="patient.marital_status == 3">离异</span>
47
+                 <span v-if="patient.marital_status == 4">丧偶</span>
44
               </span>
48
               </span>
45
             </td>
49
             </td>
46
              <td style="text-align:center;" colspan="1">
50
              <td style="text-align:center;" colspan="1">
47
-              职业:
51
+              职业: 
48
             </td>
52
             </td>
49
              <td style="text-align:center;" colspan="1">
53
              <td style="text-align:center;" colspan="1">
50
               <span style="display:inline-block;margin-left:10px;">
54
               <span style="display:inline-block;margin-left:10px;">
51
-               
55
+               {{getProfession(patient.profession)?getProfession(patient.profession):''}}
52
               </span>
56
               </span>
53
             </td>
57
             </td>
54
              <td style="text-align:center;" colspan="1">
58
              <td style="text-align:center;" colspan="1">
56
             </td>
60
             </td>
57
              <td style="text-align:center;" colspan="1">
61
              <td style="text-align:center;" colspan="1">
58
               <span style="display:inline-block;margin-left:10px;">
62
               <span style="display:inline-block;margin-left:10px;">
59
-               
63
+                {{patient.phone}}
60
               </span>
64
               </span>
61
             </td>
65
             </td>
62
           </tr>
66
           </tr>
67
+
63
           <tr>
68
           <tr>
64
             <td style="text-align:center;" colspan="1">
69
             <td style="text-align:center;" colspan="1">
65
-              入院时间:
70
+              住址:
66
             </td>   
71
             </td>   
67
             <td style="text-align:center;" colspan="11">
72
             <td style="text-align:center;" colspan="11">
68
             
73
             
69
               <span style="display:inline-block;margin-left:10px;">
74
               <span style="display:inline-block;margin-left:10px;">
70
-               
75
+                {{patient.home_address}}
71
               </span>
76
               </span>
72
             </td>   
77
             </td>   
73
           </tr>
78
           </tr>
74
           <tr>
79
           <tr>
80
+            <td style="text-align:center;width:170px" colspan="1">
81
+              入院时间:
82
+            </td>
83
+            <td style="text-align:center;width:170px" colspan="2">
84
+              <span style="display:inline-block;margin-left:10px;">
85
+                {{getTime(hosDetail.admission_time)}}
86
+              </span>
87
+            </td>
75
             <td style="text-align:center;width:170px" colspan="2">
88
             <td style="text-align:center;width:170px" colspan="2">
76
               出院时间:
89
               出院时间:
77
             </td>
90
             </td>
78
             <td style="text-align:center;width:170px" colspan="2">
91
             <td style="text-align:center;width:170px" colspan="2">
79
               <span style="display:inline-block;margin-left:10px;">
92
               <span style="display:inline-block;margin-left:10px;">
80
-               
93
+                {{getTime(hosDetail.discharge_time)}}
81
               </span>
94
               </span>
82
             </td>
95
             </td>
83
-            <td style="text-align:center;" colspan="2">
96
+            <td style="text-align:center;" colspan="1">
84
               住院天数:
97
               住院天数:
85
             </td>
98
             </td>
86
-            <td style="text-align:center;" colspan="2">
99
+            <td style="text-align:center;" colspan="1">
87
               <span style="display:inline-block;margin-left:10px;">
100
               <span style="display:inline-block;margin-left:10px;">
88
-              
101
+               {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
102
+               
89
               </span>
103
               </span>
90
             </td>
104
             </td>
91
             <td style="text-align:center;" colspan="2">
105
             <td style="text-align:center;" colspan="2">
92
               转归:
106
               转归:
93
             
107
             
94
             </td>
108
             </td>
95
-            <td style="text-align:center;" colspan="2">
109
+            <td style="text-align:center;" colspan="1">
96
               <span style="display:inline-block;margin-left:10px;">
110
               <span style="display:inline-block;margin-left:10px;">
97
-               
111
+                <span v-if="patient.lapseto == 1">留治</span>
112
+                <span v-if="patient.lapseto == 2">转归</span>
98
               </span>
113
               </span>
99
             </td>
114
             </td>
100
             
115
             
101
           </tr>
116
           </tr>
102
           <tr>
117
           <tr>
103
-            <td style="text-align:center;width:170px" colspan="1">
118
+            <td style="text-align:center;width:170px" colspan="2">
104
               检查号:
119
               检查号:
105
-            </td>
106
-             <td style="text-align:center;" colspan="1">
107
-              <span style="display:inline-block;margin-left:10px;">
108
-              
109
-              </span>
110
             </td>
120
             </td>
111
             <td style="text-align:center;" colspan="1">
121
             <td style="text-align:center;" colspan="1">
112
               X线:
122
               X线:
113
             </td>
123
             </td>
114
             <td style="text-align:center;" colspan="1">
124
             <td style="text-align:center;" colspan="1">
115
               <span style="display:inline-block;margin-left:10px;">
125
               <span style="display:inline-block;margin-left:10px;">
116
-              
126
+                {{hosDetail.xray}}
117
               </span>
127
               </span>
118
             </td>
128
             </td>
119
             <td style="text-align:center;" colspan="1">
129
             <td style="text-align:center;" colspan="1">
121
             </td>
131
             </td>
122
             <td style="text-align:center;" colspan="1">
132
             <td style="text-align:center;" colspan="1">
123
               <span style="display:inline-block;margin-left:10px;">
133
               <span style="display:inline-block;margin-left:10px;">
124
-               
134
+                {{hosDetail.connecticut}}
125
               </span>
135
               </span>
126
             </td>
136
             </td>
127
             <td style="text-align:center;" colspan="1">
137
             <td style="text-align:center;" colspan="1">
129
             </td>
139
             </td>
130
              <td style="text-align:center;" colspan="1">
140
              <td style="text-align:center;" colspan="1">
131
               <span style="display:inline-block;margin-left:10px;">
141
               <span style="display:inline-block;margin-left:10px;">
132
-               
142
+                {{hosDetail.nuclear_magnetic_resonance}}
133
               </span>
143
               </span>
134
             </td>
144
             </td>
135
              <td style="text-align:center;" colspan="1">
145
              <td style="text-align:center;" colspan="1">
137
             </td>
147
             </td>
138
              <td style="text-align:center;" colspan="1">
148
              <td style="text-align:center;" colspan="1">
139
               <span style="display:inline-block;margin-left:10px;">
149
               <span style="display:inline-block;margin-left:10px;">
140
-               
150
+                {{hosDetail.ultrasound}}
141
               </span>
151
               </span>
142
             </td>
152
             </td>
143
              <td style="text-align:center;" colspan="1">
153
              <td style="text-align:center;" colspan="1">
145
             </td>
155
             </td>
146
              <td style="text-align:center;" colspan="1">
156
              <td style="text-align:center;" colspan="1">
147
               <span style="display:inline-block;margin-left:10px;">
157
               <span style="display:inline-block;margin-left:10px;">
148
-               
158
+                {{hosDetail.pathology}}
149
               </span>
159
               </span>
150
             </td>
160
             </td>
151
           </tr>
161
           </tr>
152
           <tr>
162
           <tr>
153
             <td style="text-align:center;" colspan="1">
163
             <td style="text-align:center;" colspan="1">
154
-              入院时间:
164
+              入院诊断:
155
               <span style="display:inline-block;margin-left:10px;">
165
               <span style="display:inline-block;margin-left:10px;">
156
                
166
                
157
               </span>
167
               </span>
158
             </td>   
168
             </td>   
159
             <td style="text-align:center;" colspan="11">
169
             <td style="text-align:center;" colspan="11">
160
               <span style="display:inline-block;margin-left:10px;">
170
               <span style="display:inline-block;margin-left:10px;">
161
-               
171
+                {{hosDetail.admitting_diagnosis_id}}
162
               </span>
172
               </span>
163
             </td>   
173
             </td>   
164
           </tr>
174
           </tr>
165
           <tr>
175
           <tr>
166
             <td style="text-align:center;width:170px" colspan="1">
176
             <td style="text-align:center;width:170px" colspan="1">
167
-              入院诊断:
168
-              <span style="display:inline-block;margin-left:10px;">
169
-               
170
-              </span>
177
+              出院诊断:
171
             </td>
178
             </td>
172
              <td style="text-align:center;width:170px" colspan="11">
179
              <td style="text-align:center;width:170px" colspan="11">
173
-              入院诊断:
180
+             
174
               <span style="display:inline-block;margin-left:10px;">
181
               <span style="display:inline-block;margin-left:10px;">
175
-               
182
+                {{hosDetail.discharge_diagnosis_id}}
176
               </span>
183
               </span>
177
             </td>
184
             </td>
178
             
185
             
179
           </tr>
186
           </tr>
180
            <tr>
187
            <tr>
181
             <td style="text-align:center;width:170px" colspan="1">
188
             <td style="text-align:center;width:170px" colspan="1">
182
-              出院诊断:
189
+              入院时病情:
183
             </td>
190
             </td>
184
            <td style="text-align:center;width:170px" colspan="11">
191
            <td style="text-align:center;width:170px" colspan="11">
185
             
192
             
186
               <span style="display:inline-block;margin-left:10px;">
193
               <span style="display:inline-block;margin-left:10px;">
187
-               
188
-              </span>
189
-            </td>
190
-            
191
-          </tr>
192
-           <tr>
193
-            <td style="text-align:center;width:170px" colspan="1">
194
-              入院时病情:
195
-             
196
-            </td>
197
-            <td style="text-align:center;width:170px" colspan="11">
198
-              <span style="display:inline-block;margin-left:10px;">
199
-               
194
+                 {{hosDetail.diagnosis_admission_id}}
200
               </span>
195
               </span>
201
             </td>
196
             </td>
202
             
197
             
203
           </tr>
198
           </tr>
199
+        
204
           <tr>
200
           <tr>
205
             <td style="text-align:center;width:170px" colspan="1">
201
             <td style="text-align:center;width:170px" colspan="1">
206
               诊断经过:
202
               诊断经过:
208
             </td>
204
             </td>
209
             <td style="text-align:center;width:170px" colspan="11">
205
             <td style="text-align:center;width:170px" colspan="11">
210
               <span style="display:inline-block;margin-left:10px;">
206
               <span style="display:inline-block;margin-left:10px;">
211
-               
207
+                {{hosDetail.treatment}}
212
               </span>
208
               </span>
213
             </td>
209
             </td>
214
             
210
             
216
           <tr>
212
           <tr>
217
             <td style="text-align:center;width:170px" colspan="1">
213
             <td style="text-align:center;width:170px" colspan="1">
218
               出院时病情:
214
               出院时病情:
219
-              <span style="display:inline-block;margin-left:10px;">
220
-               
221
-              </span>
222
             </td>
215
             </td>
223
             <td style="text-align:center;width:170px" colspan="11">
216
             <td style="text-align:center;width:170px" colspan="11">
224
             
217
             
225
               <span style="display:inline-block;margin-left:10px;">
218
               <span style="display:inline-block;margin-left:10px;">
226
-               
219
+                {{hosDetail.illness_discharge}}
227
               </span>
220
               </span>
228
             </td>
221
             </td>
229
           
222
           
232
           <tr>
225
           <tr>
233
             <td style="text-align:center;width:170px" colspan="1">
226
             <td style="text-align:center;width:170px" colspan="1">
234
               出院医嘱:
227
               出院医嘱:
235
-              <span style="display:inline-block;margin-left:10px;">
236
-               
237
-              </span>
238
             </td>
228
             </td>
239
             <td style="text-align:center;width:170px" colspan="11">
229
             <td style="text-align:center;width:170px" colspan="11">
240
-              出院医嘱:
241
               <span style="display:inline-block;margin-left:10px;">
230
               <span style="display:inline-block;margin-left:10px;">
242
-               
231
+                {{hosDetail.discharge_advice}}
243
               </span>
232
               </span>
244
             </td>
233
             </td>
245
             
234
             
252
             </td>
241
             </td>
253
             <td style="text-align:center;width:170px" colspan="2">
242
             <td style="text-align:center;width:170px" colspan="2">
254
               上级签名:
243
               上级签名:
255
-              <span style="display:inline-block;margin-left:10px;">
256
-               
257
-              </span>
258
             </td>
244
             </td>
259
             <td style="text-align:center;width:170px" colspan="2">
245
             <td style="text-align:center;width:170px" colspan="2">
260
               <span style="display:inline-block;margin-left:10px;">
246
               <span style="display:inline-block;margin-left:10px;">
261
-               
247
+                {{getDoctor(hosDetail.dean_id)}}
262
               </span>
248
               </span>
263
             </td>
249
             </td>
264
            <td style="text-align:center;width:170px" colspan="2">
250
            <td style="text-align:center;width:170px" colspan="2">
265
               住院医师签名:
251
               住院医师签名:
266
             </td>
252
             </td>
267
              <td style="text-align:center;width:170px" colspan="2">
253
              <td style="text-align:center;width:170px" colspan="2">
268
-             
269
               <span style="display:inline-block;margin-left:10px;">
254
               <span style="display:inline-block;margin-left:10px;">
270
-               
255
+                 {{getDoctor(hosDetail.doctor)}}
271
               </span>
256
               </span>
272
             </td>
257
             </td>
273
           </tr>
258
           </tr>
287
 import LabelBox from '../dialysis/printItem/LabelBox'
272
 import LabelBox from '../dialysis/printItem/LabelBox'
288
 import CheckBox from '../dialysis/batch_print/option_check_box'
273
 import CheckBox from '../dialysis/batch_print/option_check_box'
289
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
274
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
290
-import {getHospitalSummaryDetail} from "@/api/patient"
291
-  import { getAllDoctorList } from "@/api/device"
275
+import {getHospitalSummaryDetail,getPatientInfo} from "@/api/patient"
276
+import { getAllDoctorList } from "@/api/device"
277
+import { getDataConfig } from "@/utils/data";
292
 export default {
278
 export default {
293
   name: 'dialysisPrintOrderOne',
279
   name: 'dialysisPrintOrderOne',
294
   components: {
280
   components: {
305
      hosDetail:{},
291
      hosDetail:{},
306
      patient:{},
292
      patient:{},
307
      doctorList:[],
293
      doctorList:[],
294
+    educationOptions:[],
308
     }
295
     }
309
   },
296
   },
310
   methods: {
297
   methods: {
313
       var timestr = uParseTime(times, '{y}年{m}月{d}日')
300
       var timestr = uParseTime(times, '{y}年{m}月{d}日')
314
       return timestr
301
       return timestr
315
     },
302
     },
316
-    getTime(value, temp) {
317
-      if (value == 0) {
318
-        return ''
319
-      }
320
-      if (value != undefined) {
321
-        return uParseTime(value, temp)
322
-      }
323
-      return ''
303
+    getTime(val) {
304
+       if(val == "" || val == undefined){
305
+          return ""
306
+         }else {
307
+          return uParseTime(val, '{y}-{m}-{d}')
308
+         }
324
     },
309
     },
325
-   
326
     printThisPage() {
310
     printThisPage() {
327
         var ptime = Math.round(new Date().getTime() / 1000)
311
         var ptime = Math.round(new Date().getTime() / 1000)
328
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
312
         this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
385
         }
369
         }
386
        })
370
        })
387
      },
371
      },
372
+     getDoctor(id){
373
+        var name = ""
374
+        for(let i=0;i<this.doctorList.length;i++){
375
+          if(id == this.doctorList[i].admin_user_id){
376
+             name = this.doctorList[i].user_name
377
+          }
378
+        }
379
+        return name
380
+    },
381
+    getProfession(id){
382
+      var name = ""
383
+      for(let i=0;i<this.educationOptions.length;i++){
384
+          if(id == this.educationOptions[i].id){
385
+              name = this.educationOptions[i].name
386
+          }
387
+      }
388
+      return name
389
+    },
390
+    getTimeDay(start,end){
391
+      var count = ""
392
+      count = (end-start)/86400
393
+      return count
394
+    }
388
   },
395
   },
389
  
396
  
390
   created() {
397
   created() {
398
+    this.educationOptions = getDataConfig("patient", "education_types");
391
     var xtuser = this.$store.getters.xt_user
399
     var xtuser = this.$store.getters.xt_user
392
     this.orgname = xtuser.org.org_name
400
     this.orgname = xtuser.org.org_name
393
     var id = this.$route.query.id
401
     var id = this.$route.query.id