Bläddra i källkod

12月17 打印单

yq1 3 veckor sedan
förälder
incheckning
fb0263862b

+ 101 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue Visa fil

@@ -879,7 +879,106 @@
879 879
                               />
880 880
                             </td>
881 881
                           </tr>
882
-                          <template v-if="record.advices.length<3">
882
+                          <tr v-for="(advice, advice_index) in record.advices"
883
+                            :key="advice_index"
884
+                          >
885
+                            <td height="35px">
886
+                              <span v-if="advice[0].start_time">
887
+                                {{ getTime(advice[0].start_time, "{h}:{i}") }}
888
+                              </span>
889
+                            </td>
890
+
891
+                            <td
892
+                              height="35px"
893
+                              colspan="2"
894
+                              class="advice-name"
895
+                              style="padding-left: 7px"
896
+
897
+                            >
898
+                             
899
+                              <span>{{ advice[0].advice_name }}</span>
900
+
901
+                              <span v-if="advice[0].advice_desc">
902
+                                ({{ advice[0].advice_desc
903
+                                }}{{ advice[0].drug_spec_unit }} )
904
+                              </span>
905
+
906
+                              <span v-if="advice[0].prescribing_number"
907
+                                >&nbsp;{{ advice[0].prescribing_number
908
+                                }}{{ advice[0].prescribing_number_unit }}</span
909
+                              >
910
+                              <span v-if="advice[0].single_dose != 0">
911
+                                {{ advice[0].single_dose
912
+                                }}{{ advice[0].single_dose_unit }}</span
913
+                              >
914
+
915
+                              <span v-if="advice[0].parent_id == 0">{{
916
+                                advice[0].delivery_way
917
+                              }}</span>
918
+                              <span v-if="advice[0].parent_id == 0">{{
919
+                                advice[0].execution_frequency
920
+                              }}</span>
921
+                              <span
922
+                                v-if="
923
+                                  advice[0].parent_id == 0 &&
924
+                                  advice[0].remark.length > 0
925
+                                "
926
+                                >({{ advice[0].remark }})</span>
927
+                              <!-- <span v-if="advice.child.length >1"> + </span> -->
928
+                            
929
+                            </td>
930
+
931
+                            <td height="35px">
932
+                              <span
933
+                                v-if="
934
+                                  setAdminUserES(advice[0], 'advice_doctor') ==
935
+                                  ''
936
+                                "
937
+                                >{{
938
+                                  getAdminUser(advice[0], "advice_doctor")
939
+                                }}</span
940
+                              >
941
+                              <img
942
+                                class="es-img"
943
+                                :src="
944
+                                  setAdminUserES(advice[0], 'advice_doctor')
945
+                                "
946
+                                alt=""
947
+                                srcset=""
948
+                                v-else
949
+                                style="height: 30px"
950
+                              />
951
+                            </td>
952
+                            <td height="35px">
953
+                              <span v-if="advice[0].execution_time">{{
954
+                                getTime(advice[0].execution_time, " {h}:{i}")
955
+                              }}</span>
956
+                            </td>
957
+                            <td height="35px">
958
+                              <span
959
+                                v-if="
960
+                                  setAdminUserES(
961
+                                    advice[0],
962
+                                    'execution_staff'
963
+                                  ) == ''
964
+                                "
965
+                                >{{
966
+                                  getAdminUser(advice[0], "execution_staff")
967
+                                }}</span
968
+                              >
969
+                              <img
970
+                                class="es-img"
971
+                                :src="
972
+                                  setAdminUserES(advice[0], 'execution_staff')
973
+                                "
974
+                                alt=""
975
+                                srcset=""
976
+                                v-else
977
+                                style="height: 30px"
978
+                              />
979
+                            </td>
980
+                          </tr>
981
+                          <!-- <template v-if="record.advices.length<3">
883 982
                             <tr v-for="item in 3">
884 983
                               <td height="35px"></td>
885 984
                               <td colspan="2"></td>
@@ -887,7 +986,7 @@
887 986
                               <td></td>
888 987
                               <td></td>
889 988
                             </tr>
890
-                          </template>
989
+                          </template> -->
891 990
 
892 991
                         </template>
893 992
                       </tbody>

+ 24 - 21
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue Visa fil

@@ -753,8 +753,7 @@
753 753
                         <td style="font-size: 16px" width="10%">执行人员</td>
754 754
                       </tr>
755 755
 
756
-                      <tr
757
-                        v-for="(advice, advice_index) in doctor_advices"
756
+                      <tr v-for="(advice, advice_index) in doctor_advices"
758 757
                         :key="advice_index"
759 758
                       >
760 759
                         <td height="32px">
@@ -1368,7 +1367,7 @@
1368 1367
                       治疗医生:
1369 1368
                       <div class="under_line"
1370 1369
                         style="width: 80px; text-align: center"
1371
-                      > 
1370
+                      >
1372 1371
                       <!-- {{ getAdminUser(prescription.creater) }} -->
1373 1372
                         <span style="height: 30px; display: inline-block"
1374 1373
                           v-if=" setAdminUserES(prescription.creater) == ''"
@@ -1998,7 +1997,7 @@ export default {
1998 1997
         return "";
1999 1998
       }
2000 1999
       for (let i = 0; i < this.adminUser.length; i++) {
2001
-        if (this.adminUser[i].id == id) {        
2000
+        if (this.adminUser[i].id == id) {
2002 2001
           return this.adminUser[i].name;
2003 2002
         }
2004 2003
       }
@@ -2352,10 +2351,12 @@ export default {
2352 2351
         this.loading = false;
2353 2352
         this.doctor_advices =
2354 2353
           response.data.data.advices == null ? [] : response.data.data.advices;
2354
+          const advices = response.data.data.doctorAdevieInfo
2355 2355
         for (let index = 0; index < this.doctor_advices.length; index++) {
2356 2356
           this.doctor_advices[index]["isShow"] = 2;
2357 2357
         }
2358
-        console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices)
2358
+        this.doctor_advices = this.doctor_advices.concat(advices)
2359
+        console.log("haaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",this.doctor_advices,advices)
2359 2360
 
2360 2361
         if(this.org_id == 10489 ){
2361 2362
           let projectsOne = [];
@@ -2560,27 +2561,29 @@ export default {
2560 2561
           }
2561 2562
           this.doctor_advices = []
2562 2563
           this.doctor_advices = docArr
2564
+          console.log('222222222222',docArr);
2565
+          
2563 2566
         }
2564 2567
 
2565
-        if (this.doctor_advices.length + this.projectsOne.length <= 6) {
2566
-            var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
2567
-            this.print_length = 6;
2568
-
2569
-            for (let index = 0; index < nl; index++) {
2570
-              if (
2571
-                this.projectsOne[index] == undefined ||
2572
-                this.projectsOne[index].length <= 0
2573
-              ) {
2574
-                this.projectsOne.push([]);
2575
-              } else {
2576
-                continue;
2577
-              }
2578
-            }
2579
-          }
2568
+        // if (this.doctor_advices.length + this.projectsOne.length <= 6) {
2569
+        //     var nl = 6 - (this.doctor_advices.length + this.projectsOne.length);
2570
+        //     this.print_length = 6;
2571
+
2572
+        //     for (let index = 0; index < nl; index++) {
2573
+        //       if (
2574
+        //         this.projectsOne[index] == undefined ||
2575
+        //         this.projectsOne[index].length <= 0
2576
+        //       ) {
2577
+        //         this.projectsOne.push([]);
2578
+        //       } else {
2579
+        //         continue;
2580
+        //       }
2581
+        //     }
2582
+        //   }
2580 2583
 
2581 2584
 
2582 2585
         this.totollength = this.doctor_advices.length + this.monitors.length;
2583
-        console.log("this.totollength",this.totollength)
2586
+        console.log("this.totollength",this.totollength,this.doctor_advices)
2584 2587
 
2585 2588
 
2586 2589
         if (this.totollength > 18) {