Browse Source

修改华侨医院bug

csx 5 years ago
parent
commit
a1d171899e

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

6
   NODE_ENV: '"development"',
6
   NODE_ENV: '"development"',
7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
7
   // BASE_API: '"http://api.xt.test.sgjyun.com"'
8
    //http://api.xt.test.sgjyun.com http://localhost:9529
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
 
207
 
208
 export function PostSearch(keyword) {
208
 export function PostSearch(keyword) {
209
   return request({
209
   return request({
210
-    url: '/api/patients/search?keyword=' + keyword,
210
+    url: '/m/api/patients/search?keyword=' + keyword,
211
     method: 'post'
211
     method: 'post'
212
 
212
 
213
   })
213
   })

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

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

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

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

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

27
           <div class="item" @click="select_puncture_nurse">
27
           <div class="item" @click="select_puncture_nurse">
28
             <h2 class="name">穿刺者</h2>
28
             <h2 class="name">穿刺者</h2>
29
             <div class="content">
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
               <span class="iconfont">&#xe6f9;</span>
31
               <span class="iconfont">&#xe6f9;</span>
32
             </div>
32
             </div>
33
           </div>
33
           </div>

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

219
             <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
219
             <input  @focus="inputFocus" id="dt" v-model="dialysisPrescription.displace_liqui_value"/>
220
           </div>
220
           </div>
221
         </div>
221
         </div>
222
-        
222
+
223
 
223
 
224
 
224
 
225
 
225
 
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
         this.timeValue = '';
922
         this.timeValue = '';
922
         this.time = '03:00';
923
         this.time = '03:00';
923
       } else {
924
       } else {
924
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + "小时" + this.dialysisPrescription.dialysis_duration_minute + "分钟"
925
         this.timeValue = this.dialysisPrescription.dialysis_duration_hour + "小时" + this.dialysisPrescription.dialysis_duration_minute + "分钟"
925
         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
         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
       this.dialyserList = this.machines_prop;
931
       this.dialyserList = this.machines_prop;
931
       // this.doctor = this.$store.getters.user.user.user_type;
932
       // this.doctor = this.$store.getters.user.user.user_type;
932
 
933
 

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

10
           &nbsp;
10
           &nbsp;
11
           <check-box text="住院" :checked="patientInfo_source_2"></check-box>
11
           <check-box text="住院" :checked="patientInfo_source_2"></check-box>
12
         </div>
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
         <div class="inline_block" style="margin-left:25px;">
19
         <div class="inline_block" style="margin-left:25px;">
14
           姓名:
20
           姓名:
15
           <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
21
           <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
25
           <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
31
           <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
26
32
27
         </div>
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
       </div>
35
       </div>
35
 
36
 
36
       <div class="row flex">
37
       <div class="row flex">
293
             &nbsp;
294
             &nbsp;
294
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
295
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
295
           </div>
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
           <div class="inline_block" style="margin-left:25px;">
303
           <div class="inline_block" style="margin-left:25px;">
297
             姓名:
304
             姓名:
298
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
305
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
308
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
315
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
309
316
310
           </div>
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
         </div>
319
         </div>
318
         <div class="row flex">
320
         <div class="row flex">
319
           <div class="inline_block">
321
           <div class="inline_block">
470
               <div class="row" style="padding: 2px 0;line-height:19px;">
472
               <div class="row" style="padding: 2px 0;line-height:19px;">
471
                 <div class="inline_block" >
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
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
476
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
475
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
477
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse)" alt="" srcset="" v-else>
476
                   </div>
478
                   </div>
478
 
480
 
479
                 <div class="inline_block" >
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
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
484
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
483
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
485
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
484
                   </div>
486
                   </div>
485
                 </div>
487
                 </div>
486
                 <div class="inline_block" >
488
                 <div class="inline_block" >
487
                   &emsp;核对人:
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
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
495
                     <span v-if="setAdminUserES(check==null?0:check.creater) == ''">{{getAdminUser(check==null?0:check.creater)}}</span>
490
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
496
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.creater)" alt="" srcset="" v-else>
491
                   </div>
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
                     <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
499
                     <span v-if="setAdminUserES(check==null?0:check.modifier) == ''">{{getAdminUser(check==null?0:check.modifier)}}</span>
494
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
500
                     <img class="es-img" :src="setAdminUserES(check==null?0:check.modifier)" alt="" srcset="" v-else>
495
                   </div>
501
                   </div>
496
                 </div>
502
                 </div>
497
                 <div class="inline_block">
503
                 <div class="inline_block">
498
                   &emsp;核对时间:
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
                     {{getTime(check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
506
                     {{getTime(check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
501
                   </div>
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
                     {{getTime(check.first_check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
514
                     {{getTime(check.first_check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
505
                   </div>
515
                   </div>
506
                 </div>
516
                 </div>
507
                 <div class="inline_block" >
517
                 <div class="inline_block" >
508
                   &emsp;收针者:
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
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
520
                     <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
511
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
521
                     <img class="es-img" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
512
                   </div>
522
                   </div>
571
             <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
581
             <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
572
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
582
             <check-box text="住院" :checked="patientInfo_source_2"></check-box>
573
           </div>
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
           <div class="inline_block" style="margin-left:25px;">
590
           <div class="inline_block" style="margin-left:25px;">
575
             姓名:
591
             姓名:
576
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
592
             <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
585
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
601
             <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
586
602
587
           </div>
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
         </div>
605
         </div>
595
         <div class="row flex">
606
         <div class="row flex">
596
           <div class="inline_block">
607
           <div class="inline_block">
611
               <div class="row" style="padding: 2px 0;line-height:24px;">
622
               <div class="row" style="padding: 2px 0;line-height:24px;">
612
 
623
 
613
                 <div class="inline_block" style="margin-left: -10px" >
624
                 <div class="inline_block" style="margin-left: -10px" >
614
-                  &emsp;治疗方式:
625
+                  治疗方式:
615
                   <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
626
                   <check-box text="HD" :checked="prescription.mode_id==1?true:false"></check-box>
616
                   <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
627
                   <check-box text="HDF" :checked="prescription.mode_id==2?true:false"></check-box>
617
                   <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
628
                   <check-box text="HF" :checked="prescription.mode_id==5?true:false"></check-box>
644
                   </div>
655
                   </div>
645
                   min
656
                   min
646
                 </div>
657
                 </div>
647
-              </div>
648
-              <div class="row" style="padding: 2px 0;line-height:24px;">
649
                 <div class="inline_block">
658
                 <div class="inline_block">
650
                   病情:
659
                   病情:
651
                   <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
660
                   <check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>
652
                   <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
661
                   <check-box text="重" :checked="receiverTreatmentAccess.sick_condition == 2?true:false"></check-box>
653
                   <check-box text="危" :checked="receiverTreatmentAccess.sick_condition == 3?true:false"></check-box>
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
                   <div class="inline_block">
683
                   <div class="inline_block">
655
                     &emsp;透析器型号:
684
                     &emsp;透析器型号:
656
                     <div class="under_line" style="width: 200px;text-align: left">
685
                     <div class="under_line" style="width: 200px;text-align: left">
660
                 </div>
689
                 </div>
661
               </div>
690
               </div>
662
               <div class="row" style="padding: 2px 0; line-height:24px;">
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
                 <div class="inline_block" style="margin-left:20px;">
693
                 <div class="inline_block" style="margin-left:20px;">
677
                   透析前使用特殊药物:
694
                   透析前使用特殊药物:
678
                   <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
695
                   <check-box text="无" :checked="prescription.special_medicine==1?true:false"></check-box>
859
               <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
876
               <check-box text="门诊透析" :checked="patientInfo_source_1"></check-box>
860
               <check-box text="住院" :checked="patientInfo_source_2"></check-box>
877
               <check-box text="住院" :checked="patientInfo_source_2"></check-box>
861
             </div>
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
             <div class="inline_block" style="margin-left:25px;">
885
             <div class="inline_block" style="margin-left:25px;">
863
               姓名:
886
               姓名:
864
               <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
887
               <div class="under_line" style="width: 120px;text-align: left">{{patientInfo.name}}</div>
873
               <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
896
               <div class="under_line" style="width: 70px;text-align: left">{{getAge(patientInfo)}}</div>
874
897
875
             </div>
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
           </div>
900
           </div>
883
           <div class="row flex">
901
           <div class="row flex">
884
             <div class="inline_block">
902
             <div class="inline_block">

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

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