Browse Source

修改华侨医院bug

csx 5 years ago
parent
commit
a1d171899e

+ 1 - 1
config/dev.env.js View File

@@ -6,5 +6,5 @@ module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7 7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8 8
    //http://api.xt.test.sgjyun.com http://localhost:9529
9
-   BASE_API: '"http://localhost:9529"'
9
+   BASE_API: '"https://api.xt.kuyicloud.com"'
10 10
 })

+ 1 - 1
src/api/dialysis.js View File

@@ -207,7 +207,7 @@ export function GetMonitor(params){
207 207
 
208 208
 export function PostSearch(keyword) {
209 209
   return request({
210
-    url: '/api/patients/search?keyword=' + keyword,
210
+    url: '/m/api/patients/search?keyword=' + keyword,
211 211
     method: 'post'
212 212
 
213 213
   })

+ 2 - 1
src/pages/main/PrintIndex.vue View File

@@ -12,6 +12,7 @@
12 12
       </div>
13 13
       <DialysisPrintOrderOne style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id != 2"> </DialysisPrintOrderOne>
14 14
       <DialysisPrintOrderTwo style="margin-top:60px;" v-bind:childResponse="childResponse" v-if="org_template_info.template_id == 2"></DialysisPrintOrderTwo>
15
+
15 16
     </div>
16 17
   </div>
17 18
 </template>
@@ -104,7 +105,7 @@ export default {
104 105
       summary: {},
105 106
       adminUser: [],
106 107
       receiverTreatmentAccess: {},
107
-    
108
+
108 109
 
109 110
       AlPanel: {
110 111
         id: 0,

+ 0 - 1
src/pages/main/add_urgent_schedule.vue View File

@@ -283,7 +283,6 @@
283 283
             searchArray = response.data.data.patient
284 284
             cb(searchArray)
285 285
           } else {
286
-            this.$message.error(response.data.msg)
287 286
             cb([])
288 287
           }
289 288
         })

+ 1 - 1
src/pages/main/dialog/ComputerDialog.vue View File

@@ -27,7 +27,7 @@
27 27
           <div class="item" @click="select_puncture_nurse">
28 28
             <h2 class="name">穿刺者</h2>
29 29
             <div class="content">
30
-              <span class="text" style="width: 100px">{{ admin_map[puncture_nurse_id].name}}</span>
30
+              <span class="text" style="width: 100px" v-if="admin_map[puncture_nurse_id]">{{ admin_map[puncture_nurse_id].name}}</span>
31 31
               <span class="iconfont">&#xe6f9;</span>
32 32
             </div>
33 33
           </div>

+ 4 - 3
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -219,7 +219,7 @@
219 219
             <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
220 220
           </div>
221 221
         </div>
222
-        
222
+
223 223
 
224 224
 
225 225
 
@@ -917,16 +917,17 @@
917 917
         }
918 918
       }
919 919
 
920
-      if (this.dialysisPrescription.dialysis_duration_hour == '' || this.dialysisPrescription.dialysis_duration_minute == '') {
920
+
921
+      if (this.dialysisPrescription.dialysis_duration_hour.length == 0 || this.dialysisPrescription.dialysis_duration_minute.length == 0) {
921 922
         this.timeValue = '';
922 923
         this.time = '03:00';
923 924
       } else {
924 925
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + "小时" + this.dialysisPrescription.dialysis_duration_minute + "分钟"
925 926
         this.time = (this.dialysisPrescription.dialysis_duration_hour > 10 ? this.dialysisPrescription.dialysis_duration_hour : "0" + this.dialysisPrescription.dialysis_duration_hour) + ":" + (this.dialysisPrescription.dialysis_duration_minute > 10 ? this.dialysisPrescription.dialysis_duration_minute : "0" + this.dialysisPrescription.dialysis_duration_minute)
926
-
927 927
       }
928 928
 
929 929
 
930
+
930 931
       this.dialyserList = this.machines_prop;
931 932
       // this.doctor = this.$store.getters.user.user.user_type;
932 933
 

+ 65 - 47
src/pages/main/template/DialysisPrintOrderTwo.vue View File

@@ -10,6 +10,12 @@
10 10
           &nbsp;
11 11
           <check-box text="住院" :checked="patientInfo_source_2"></check-box>
12 12
         </div>
13
+        <div class="inline_block" style="margin-left: 25px;">
14
+          住院号:
15
+          <div class="under_line" style="width: 100px;text-align: left">
16
+            {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
17
+          </div>
18
+        </div>
13 19
         <div class="inline_block" style="margin-left:25px;">
14 20
           姓名:
15 21
           <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
@@ -25,12 +31,7 @@
25 31
           <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
26 32
27 33
         </div>
28
-        <div class="inline_block" style="margin-left: 25px;">
29
-          住院号:
30
-          <div class="under_line" style="width: 100px;text-align: left">
31
-            {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
32
-          </div>
33
-        </div>
34
+
34 35
       </div>
35 36
 
36 37
       <div class="row flex">
@@ -293,6 +294,12 @@
293 294
             &nbsp;
294 295
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
295 296
           </div>
297
+          <div class="inline_block" style="margin-left: 25px;">
298
+            住院号:
299
+            <div class="under_line" style="width: 100px;text-align: left">
300
+              {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
301
+            </div>
302
+          </div>
296 303
           <div class="inline_block" style="margin-left:25px;">
297 304
             姓名:
298 305
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
@@ -308,12 +315,7 @@
308 315
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
309 316
310 317
           </div>
311
-          <div class="inline_block" style="margin-left: 25px;">
312
-            住院号:
313
-            <div class="under_line" style="width: 100px;text-align: left">
314
-              {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
315
-            </div>
316
-          </div>
318
+
317 319
         </div>
318 320
         <div class="row flex">
319 321
           <div class="inline_block">
@@ -470,7 +472,7 @@
470 472
               <div class="row" style="padding: 2px 0;line-height:19px;">
471 473
                 <div class="inline_block" >
472 474
                   责任护士:
473
-                  <div class="under_line" style="width: 100px;text-align: left">
475
+                  <div class="under_line" style="width: 80px;text-align: left">
474 476
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
475 477
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
476 478
                   </div>
@@ -478,35 +480,43 @@
478 480
 
479 481
                 <div class="inline_block" >
480 482
                   穿刺者:
481
-                  <div class="under_line" style="width: 100px;text-align: left">
483
+                  <div class="under_line" style="width: 80px;text-align: left">
482 484
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
483 485
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
484 486
                   </div>
485 487
                 </div>
486 488
                 <div class="inline_block" >
487 489
                   &emsp;核对人:
488
-                  <div class="under_line" style="width: 100px;text-align: left" v-if="dialysisOrder.start_nurse == check.modifier">
490
+                  <div class="under_line" style="width: 80px;text-align: left" v-if="dialysisOrder == null">
491
+                    <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
492
+                    <img class="es-img" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
493
+                  </div>
494
+                  <div class="under_line" style="width: 80px;text-align: left" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.modifier">
489 495
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
490 496
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
491 497
                   </div>
492
-                  <div class="under_line" style="width: 100px;text-align: left" v-if="dialysisOrder.start_nurse == check.creater">
498
+                  <div class="under_line" style="width: 100px;text-align: left" v-if="dialysisOrder != null && dialysisOrder.start_nurse == check.creater">
493 499
                     <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
494 500
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
495 501
                   </div>
496 502
                 </div>
497 503
                 <div class="inline_block">
498 504
                   &emsp;核对时间:
499
-                  <div class="under_line" style="width: 200px;text-align: left" v-if="check.first_check_time > check.check_time">
505
+                  <div class="under_line" style="width: 200px;text-align: left" v-if="check == null">
500 506
                     {{getTime(check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
501 507
                   </div>
502 508
 
503
-                  <div class="under_line" style="width: 200px;text-align: left" v-if="check.check_time > check.first_check_time">
509
+                  <div class="under_line" style="width: 200px;text-align: left" v-if="check != null && check.first_check_time < check.check_time">
510
+                    {{getTime(check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
511
+                  </div>
512
+
513
+                  <div class="under_line" style="width: 200px;text-align: left" v-if="check != null &&check.check_time < check.first_check_time">
504 514
                     {{getTime(check.first_check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
505 515
                   </div>
506 516
                 </div>
507 517
                 <div class="inline_block" >
508 518
                   &emsp;收针者:
509
-                  <div class="under_line" style="width: 100px;text-align: left">
519
+                  <div class="under_line" style="width: 80px;text-align: left">
510 520
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
511 521
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
512 522
                   </div>
@@ -571,6 +581,12 @@
571 581
             <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
572 582
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
573 583
           </div>
584
+          <div class="inline_block" style="margin-left:25px;">
585
+            住院号:
586
+            <div class="under_line" style="width: 120px;text-align: left">
587
+              {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
588
+            </div>
589
+          </div>
574 590
           <div class="inline_block" style="margin-left:25px;">
575 591
             姓名:
576 592
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
@@ -585,12 +601,7 @@
585 601
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
586 602
587 603
           </div>
588
-          <div class="inline_block" style="margin-left:25px;">
589
-            住院号:
590
-            <div class="under_line" style="width: 120px;text-align: left">
591
-              {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
592
-            </div>
593
-          </div>
604
+
594 605
         </div>
595 606
         <div class="row flex">
596 607
           <div class="inline_block">
@@ -611,7 +622,7 @@
611 622
               <div class="row" style="padding: 2px 0;line-height:24px;">
612 623
 
613 624
                 <div class="inline_block" style="margin-left: -10px" >
614
-                  &emsp;治疗方式:
625
+                  治疗方式:
615 626
                   <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
616 627
                   <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
617 628
                   <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
@@ -644,13 +655,31 @@
644 655
                   </div>
645 656
                   min
646 657
                 </div>
647
-              </div>
648
-              <div class="row" style="padding: 2px 0;line-height:24px;">
649 658
                 <div class="inline_block">
650 659
                   病情:
651 660
                   <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
652 661
                   <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
653 662
                   <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
663
+                </div>
664
+              </div>
665
+              <div class="row" style="padding: 2px 0;line-height:24px;">
666
+                <div class="inline_block">
667
+
668
+                  <div class="inline_block">
669
+                    体液过多症状:
670
+                    <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
671
+                    <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
672
+                    <check-box text="下肢水肿++"  :checked="prescription.body_fluid==3?true:false"></check-box>
673
+                    <check-box text="下肢水肿+++"  :checked="prescription.body_fluid==4?true:false"></check-box>
674
+                  </div>
675
+
676
+                  <div class="inline_block">
677
+                    其它:
678
+                    <div class="under_line" style="width: 100px;">
679
+                      <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
680
+                    </div>
681
+                  </div>
682
+
654 683
                   <div class="inline_block">
655 684
                     &emsp;透析器型号:
656 685
                     <div class="under_line" style="width: 200px;text-align: left">
@@ -660,19 +689,7 @@
660 689
                 </div>
661 690
               </div>
662 691
               <div class="row" style="padding: 2px 0; line-height:24px;">
663
-                <div class="inline_block">
664
-                  体液过多症状:
665
-                  <check-box text="无" :checked="prescription.body_fluid==1?true:false"></check-box>
666
-                  <check-box text="下肢水肿+" :checked="prescription.body_fluid==2?true:false"></check-box>
667
-                  <check-box text="下肢水肿++"  :checked="prescription.body_fluid==3?true:false"></check-box>
668
-                  <check-box text="下肢水肿+++"  :checked="prescription.body_fluid==4?true:false"></check-box>
669
-                </div>
670
-                <!-- <div class="inline_block">
671
-                  其它:
672
-                  <div class="under_line" style="width: 100px;">
673
-                    <div class="under-line" v-if="prescription&&prescription.body_fluid_other.length > 0">&nbsp;{{prescription.body_fluid_other}}</div>
674
-                  </div>
675
-                </div> -->
692
+
676 693
                 <div class="inline_block" style="margin-left:20px;">
677 694
                   透析前使用特殊药物:
678 695
                   <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
@@ -859,6 +876,12 @@
859 876
               <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
860 877
               <check-box text="住院" :checked="patientInfo_source_2"></check-box>
861 878
             </div>
879
+            <div class="inline_block" style="margin-left:25px;">
880
+              住院号:
881
+              <div class="under_line" style="width: 120px;text-align: left">
882
+                {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
883
+              </div>
884
+            </div>
862 885
             <div class="inline_block" style="margin-left:25px;">
863 886
               姓名:
864 887
               <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
@@ -873,12 +896,7 @@
873 896
               <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
874 897
875 898
             </div>
876
-            <div class="inline_block" style="margin-left:25px;">
877
-              住院号:
878
-              <div class="under_line" style="width: 120px;text-align: left">
879
-                {{patientInfo.admission_number?patientInfo.admission_number:'/'}}
880
-              </div>
881
-            </div>
899
+
882 900
           </div>
883 901
           <div class="row flex">
884 902
             <div class="inline_block">

+ 24 - 24
src/pages/waitingRoom/components/dialog/medicalOrder.vue View File

@@ -2,7 +2,7 @@
2 2
     <div class="popup-content" style="min-height:320px;">
3 3
         <h2 class="title">
4 4
             <span class="line"></span>
5
-            <p>{{title}}</p> 
5
+            <p>{{title}}</p>
6 6
             <span class="line"></span>
7 7
         </h2>
8 8
         <div class="content" v-show="index==0" >
@@ -37,7 +37,7 @@
37 37
                       <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
38 38
                       <span >{{advice.delivery_way}}</span>
39 39
                       <span >{{advice.execution_frequency}}</span>
40
-                      
40
+
41 41
                     </td>
42 42
                     <td><span v-if="advice.execution_time!=0" >{{ uParseTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}")}}</span>
43 43
                     </td>
@@ -91,7 +91,7 @@
91 91
                               </el-option>
92 92
                           </el-select>
93 93
                 </div>
94
-                
94
+
95 95
                 <div class="cell">
96 96
                             <label>给药途径</label>
97 97
                             <el-select v-model="adviceForm.delivery_way" :disabled="adviceForm.parent_id==0?false:true" filterable placeholder="请选择(输入可搜索)" >
@@ -114,7 +114,7 @@
114 114
                                 </el-option>
115 115
                             </el-select>
116 116
                 </div>
117
-                
117
+
118 118
                 <div class="cell">
119 119
                             <label>医嘱描述</label>
120 120
                             <input type="text" class="inputBox" v-model="adviceForm.advice_desc">
@@ -132,8 +132,8 @@
132 132
 
133 133
 
134 134
                 <div class="cell width center">
135
-                  <button class="smt-danger" @click="index=0">返回</button>                      
136
-                  <button @click="submitNewAdvice">提交</button>                      
135
+                  <button class="smt-danger" @click="index=0">返回</button>
136
+                  <button @click="submitNewAdvice">提交</button>
137 137
                 </div>
138 138
             </div>
139 139
        </div>
@@ -142,7 +142,7 @@
142 142
         type="datetime"
143 143
         @confirm="handleConfirm">
144 144
       </mt-datetime-picker>
145
-      
145
+
146 146
        <mt-datetime-picker
147 147
         ref="exec_time"
148 148
         type="datetime"
@@ -160,7 +160,7 @@ import {uParseTime} from "@/utils/tools";
160 160
 
161 161
 export default {
162 162
   name: "MedicalOrder",
163
- 
163
+
164 164
   data() {
165 165
     return {
166 166
       rowClass:'row-class-active',
@@ -202,7 +202,7 @@ export default {
202 202
     selectRow(index, row) {
203 203
       this.currentIndex = index;
204 204
       this.currentRow = row;
205
-    }, 
205
+    },
206 206
     uParseTime(time, format){
207 207
       return uParseTime(time, format);
208 208
     },
@@ -241,7 +241,7 @@ export default {
241 241
                           break;
242 242
                       }else if (this.adviceList[index].id === this.adviceForm.parent_id) {
243 243
                           spliceIndex = index;
244
-                          break; 
244
+                          break;
245 245
                       }
246 246
                   }
247 247
                   if (spliceIndex > -1) {
@@ -253,7 +253,7 @@ export default {
253 253
                           this.adviceList.push(response.data.data.advice);
254 254
                           this.adviceList = this.adviceList.concat(swapData);
255 255
                       }
256
-                  } 
256
+                  }
257 257
               }else {
258 258
                   this.adviceList.unshift(response.data.data.advice);
259 259
               }
@@ -304,7 +304,7 @@ export default {
304 304
 
305 305
       ExecDoctorAdvice(exceParams).then(response=>{
306 306
         if (response.data.state == 0) {
307
-          Toast('执行失败!');
307
+          Toast(response.data.msg);
308 308
           return false
309 309
         }else {
310 310
           Toast('执行成功!');
@@ -324,8 +324,8 @@ export default {
324 324
               break;
325 325
             }
326 326
           }
327
-          
328
-          
327
+
328
+
329 329
           return false
330 330
         }
331 331
       });
@@ -369,7 +369,7 @@ export default {
369 369
                 this.$emit('delete', this.adviceList[this.currentIndex]);
370 370
                 this.currentIndex = -1;
371 371
                 this.currentRow = null;
372
-                
372
+
373 373
             }
374 374
         });
375 375
       }).catch(() => {
@@ -405,7 +405,7 @@ export default {
405 405
       }
406 406
 
407 407
       this.index = 1;
408
-      
408
+
409 409
       this.adviceForm={
410 410
         id:0,
411 411
         advice_type:2,
@@ -445,9 +445,9 @@ export default {
445 445
         remark:"",
446 446
         parent_id:0,
447 447
       }
448
-     
448
+
449 449
     }
450
-  }, 
450
+  },
451 451
   props: {
452 452
     patient_prop: {
453 453
       type: Object,
@@ -458,7 +458,7 @@ export default {
458 458
     admin_users_prop:{
459 459
       type:Array,
460 460
     }
461
-   
461
+
462 462
   },
463 463
   created(){
464 464
     var date = this.$route.query && this.$route.query.date;
@@ -476,8 +476,8 @@ export default {
476 476
     }
477 477
     this.record_date = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
478 478
 
479
- 
480
-    
479
+
480
+
481 481
     this.patient = this.patient_prop;
482 482
     this.adviceList = this.advice_list_prop;
483 483
     this.admin_users = this.admin_users_prop;
@@ -485,7 +485,7 @@ export default {
485 485
     this.adviceForm.advice_date = this.record_date;
486 486
     this.getAdviceConfig();
487 487
 
488
-    
488
+
489 489
   }
490 490
 };
491 491
 </script>
@@ -505,7 +505,7 @@ export default {
505 505
   border: $border-color;
506 506
   background: $text-color;
507 507
   padding: 0 0 0.28rem 0;
508
-  
508
+
509 509
   tr {
510 510
     padding: 0;
511 511
     margin: 0;
@@ -520,7 +520,7 @@ export default {
520 520
       line-height: 0.88rem;
521 521
       font-weight: normal;
522 522
     }
523
-   
523
+
524 524
   }
525 525
   .row-class-active>td{
526 526
     background: #badcff;