Browse Source

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

XMLWAN 2 years ago
parent
commit
32e4902d20

+ 28 - 18
src/xt_pages/dialysis/details/index.vue View File

17
           @click="next"
17
           @click="next"
18
           >下一位</el-button
18
           >下一位</el-button
19
         >
19
         >
20
-        <!-- <el-button
20
+        <el-button
21
           size="small"
21
           size="small"
22
           type="primary"
22
           type="primary"
23
           @click="printOrderOne"
23
           @click="printOrderOne"
24
           icon="el-icon-printer"
24
           icon="el-icon-printer"
25
-          >打印上机单</el-button> -->
25
+          >打印上机单</el-button>
26
 
26
 
27
         <el-button
27
         <el-button
28
           size="small"
28
           size="small"
235
         <div class="print_main_content">
235
         <div class="print_main_content">
236
           <div class="table_panel">
236
           <div class="table_panel">
237
              <div v-for="(main_collection,index) in printList" :key="index">
237
              <div v-for="(main_collection,index) in printList" :key="index">
238
-              <div class="signPrint" style="font-size:16px;">
238
+              <div class="signPrint" style="width: 360px;font-size:16px;">
239
                 <div style="margin-left:50px;">姓名:
239
                 <div style="margin-left:50px;">姓名:
240
                   <span>{{main_collection.patient.name}} </span>
240
                   <span>{{main_collection.patient.name}} </span>
241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
241
                   ({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
242
                 </div>
242
                 </div>
243
-                <div class="printCell">
244
-                  <span>
243
+                <div class="printCell" style="display:flex;justify-content: space-around;">
244
+                  <span style="display: block;width: 50%;">
245
                     床号:{{ main_collection.number.number }}
245
                     床号:{{ main_collection.number.number }}
246
                     <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
246
                     <span style="width:auto;" v-if="main_collection.schedule_type == 1">上午</span>
247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
247
                     <span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
248
                     <span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
249
                   </span>
249
                   </span>
250
-                  <span>{{ printDate }}</span>
250
+                  <span style="display: block;width: 50%;">{{ printDate }}</span>
251
                 </div>
251
                 </div>
252
-                <div class="printCell">
253
-                   <span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
254
-                    <span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
252
+                <div class="printCell" style="display:flex;justify-content: space-around;">
253
+                   <span style="display: block;width: 50%;">干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
254
+                    <span style="display: block;width: 50%;">抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
255
 
255
 
256
                 </div>
256
                 </div>
257
-                <div class="printCell">
258
-                  <span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
259
-                  首剂:<span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
257
+                <div class="printCell" style="display:flex;justify-content: space-around;">
258
+                  <span style="display: block;width: 50%;">净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
259
+                  
260
+                  <span style="display: block;width: 50%;">
261
+                    首剂: <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_shouji}} mg</span>
260
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
262
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">
261
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
263
                     {{main_collection.dialysissolution.anticoagulant_shouji}}mg
262
                   </span>
264
                   </span>
287
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
289
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
288
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
290
                     {{main_collection.dialysissolution.anticoagulant_shouji}}iu
289
                    </span>
291
                    </span>
292
+                    </span> 
293
+                 
290
                 </div>
294
                 </div>
291
-                <div class="printCell">
292
-                  <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
293
-                 维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
295
+                <div class="printCell" style="display:flex;justify-content: space-around;">
296
+                  <span style="display: block;width: 50%;">体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
297
+                 <span style="display: block;width: 50%;">
298
+                     维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
294
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
299
                    <span v-if="main_collection.dialysissolution.anticoagulant == 1">
295
                     mg/h
300
                     mg/h
296
                   </span>
301
                   </span>
324
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
329
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
325
                     iu/h
330
                     iu/h
326
                    </span>
331
                    </span>
332
+                  </span>
333
+                
327
                 </div>
334
                 </div>
328
-                <div class="printCell">
329
-                  <span>处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
330
-                 总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
335
+                <div class="printCell" style="display:flex;justify-content: space-around;">
336
+                  <span style="display: block;width: 50%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}L</span>
337
+                  <span style="display: block;width: 50%;">
338
+                    总量:{{main_collection.dialysissolution.anticoagulant_zongliang}}
331
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
339
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">
332
                     mg
340
                     mg
333
                   </span>
341
                   </span>
361
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
369
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">
362
                    iu
370
                    iu
363
                    </span>
371
                    </span>
372
+                  </span>
364
                 </div>
373
                 </div>
365
               </div>
374
               </div>
366
             </div>
375
             </div>
2155
         })
2164
         })
2156
       },
2165
       },
2157
     getInitPrintData(){
2166
     getInitPrintData(){
2167
+      this.startVisibility = true
2158
        var params = {
2168
        var params = {
2159
          patient_id:this.$route.query.patient_id,
2169
          patient_id:this.$route.query.patient_id,
2160
          record_date:this.$route.query.date,
2170
          record_date:this.$route.query.date,

+ 136 - 135
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyThree.vue View File

1
 <template>
1
 <template>
2
   <div id="dialysis-print-box" style="position: relative">
2
   <div id="dialysis-print-box" style="position: relative">
3
     <div class="dialysis-print-order">
3
     <div class="dialysis-print-order">
4
-      <table class="dialysis-print-order">
5
-        <thead style="transform: translateY(3px);">
4
+      <table class="print-table">
5
+        <thead style="transform: translateY(2px)">
6
           <tr>
6
           <tr>
7
             <td>
7
             <td>
8
               <div class="order-yy-name">{{ orgname }}</div>
8
               <div class="order-yy-name">{{ orgname }}</div>
34
           </tr>
34
           </tr>
35
         </thead>
35
         </thead>
36
         <tbody>
36
         <tbody>
37
-          <tr>
37
+          <tr style="transform: translateY(2px);">
38
             <td>
38
             <td>
39
               <table class="print-table" border="1">
39
               <table class="print-table" border="1">
40
                 <tbody>
40
                 <tbody>
41
-                  <!-- <tr>
42
-                    <td width="80" colspan="11" style="text-align: center">
43
-                      治 疗 日 期:&nbsp;<span>{{ queryParams.xtdate }}</span>
44
-                    </td>
45
-                  </tr>
46
-                  <tr>
47
-                    <td colspan="11" style="padding-left: 10px">
48
-                      <div class="list_table">
49
-                        <div>姓 名:&nbsp;{{ patientInfo.name }}</div>
50
-                        <div>
51
-                          性别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
52
-                        </div>
53
-                        <div>年龄:{{ getoldAge() }}</div>
54
-                        <div>透析机号:&nbsp;{{ getNumber() }}</div>
55
-                      </div>
56
-                    </td>
57
-                  </tr> -->
58
                   <tr class="list_table_1">
41
                   <tr class="list_table_1">
59
                     <td colspan="11" style="padding-left: 10px">
42
                     <td colspan="11" style="padding-left: 10px">
60
                       <div style="display: flex">
43
                       <div style="display: flex">
609
                   </tr>
592
                   </tr>
610
                 </tbody>
593
                 </tbody>
611
               </table>
594
               </table>
612
-
595
+            </td>
596
+          </tr>
597
+          <tr style="transform: translateY(1px)">
598
+            <td>
613
               <table class="print-table" border="1">
599
               <table class="print-table" border="1">
614
                 <tr style="text-align: center">
600
                 <tr style="text-align: center">
615
                   <td colspan="15" style="margin-left: 15px; font-size: 20px">
601
                   <td colspan="15" style="margin-left: 15px; font-size: 20px">
767
                   </td>
753
                   </td>
768
                 </tr>
754
                 </tr>
769
               </table>
755
               </table>
770
-
756
+            </td>
757
+          </tr> 
758
+          <tr style="transform: translateY(3px);">
759
+            <td>
771
               <table class="print-table" border="1" style="text-align: center">
760
               <table class="print-table" border="1" style="text-align: center">
772
-                <tbody>
773
-                  <tr class="yizhu">
774
-                    <td style="width: 20px; height: 20px">
761
+                  <tr>
762
+                    <td style="height: 20px" width="50">
775
                       <p style="height: 20px; line-height: 20px">时间</p>
763
                       <p style="height: 20px; line-height: 20px">时间</p>
776
                     </td>
764
                     </td>
777
-                    <td style="width: 200px; height: 20px">
765
+                    <td style="height: 20px" width="490">
778
                       <p style="height: 20px; line-height: 20px">
766
                       <p style="height: 20px; line-height: 20px">
779
                         医嘱执行记录
767
                         医嘱执行记录
780
                       </p>
768
                       </p>
781
                     </td>
769
                     </td>
782
-                    <td style="width: 35px; height: 20px">
770
+                    <td style="height: 20px" width="85">
783
                       <p style="height: 20px; line-height: 20px">执行</p>
771
                       <p style="height: 20px; line-height: 20px">执行</p>
784
                     </td>
772
                     </td>
785
-                    <td style="width: 35px; height: 20px">
773
+                    <td style=" height: 20px" width="85"> 
786
                       <p style="height: 20px; line-height: 20px">核对</p>
774
                       <p style="height: 20px; line-height: 20px">核对</p>
787
                     </td>
775
                     </td>
788
-                    <td style="width: 60px; height: 20px">
776
+                    <td style="height: 20px" width="145">
789
                       <p style="height: 20px; line-height: 20px">
777
                       <p style="height: 20px; line-height: 20px">
790
                         上次透后体重
778
                         上次透后体重
791
                       </p>
779
                       </p>
792
                     </td>
780
                     </td>
793
-                    <td style="width: 45px; height: 20px">
781
+                    <td style="height: 20px">
794
                       {{
782
                       {{
795
                         patientInfo.total_dialysis +
783
                         patientInfo.total_dialysis +
796
                           patientInfo.user_sys_before_count >
784
                           patientInfo.user_sys_before_count >
800
                       }}kg
788
                       }}kg
801
                     </td>
789
                     </td>
802
                   </tr>
790
                   </tr>
803
-
804
-                  <tr v-for="(advice, advice_index) in advices">
805
-                    <td>{{ getTime(advice.start_time, "{h}:{i}") }}</td>
806
-                    <td style="text-align: left; padding-left: 5px">
791
+              </table>
792
+            </td>
793
+          </tr> 
794
+          <tr v-for="(advice, advice_index) in advices" :key="advice_index">
795
+            <td>
796
+              <table class="print-table" border="1">
797
+                <tr>
798
+                  <td width="50">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
799
+                  <td style="text-align: left; padding-left: 5px" width="485">
807
                       <span v-if="advice.parent_id > 0">---></span>
800
                       <span v-if="advice.parent_id > 0">---></span>
808
                       <span>{{ advice.advice_name }}</span>
801
                       <span>{{ advice.advice_name }}</span>
809
                       <span v-if="advice && advice.advice_desc"
802
                       <span v-if="advice && advice.advice_desc"
818
                         >{{ advice.single_dose
811
                         >{{ advice.single_dose
819
                         }}{{ advice.single_dose_unit }}</span
812
                         }}{{ advice.single_dose_unit }}</span
820
                       >
813
                       >
814
+
821
                       <span v-if="advice.parent_id == 0">{{
815
                       <span v-if="advice.parent_id == 0">{{
822
                         advice.delivery_way
816
                         advice.delivery_way
823
                       }}</span>
817
                       }}</span>
825
                         advice.execution_frequency
819
                         advice.execution_frequency
826
                       }}</span>
820
                       }}</span>
827
                       <span>{{ advice.remark }}</span>
821
                       <span>{{ advice.remark }}</span>
828
-                    </td>
829
-
830
-                    <td style="line-height: 30px">
822
+                    </td> 
823
+                    <td style="line-height: 30px" width="85">
831
                       <span
824
                       <span
832
                         v-if="setAdminUserES(advice.execution_staff) == ''"
825
                         v-if="setAdminUserES(advice.execution_staff) == ''"
833
                         >{{ getAdminUser(advice.execution_staff) }}</span
826
                         >{{ getAdminUser(advice.execution_staff) }}</span
840
                         v-else
833
                         v-else
841
                       />
834
                       />
842
                     </td>
835
                     </td>
843
-                    <td style="line-height: 30px">
836
+                    <td style="line-height: 30px" width="85">
844
                       <span v-if="setAdminUserES(advice.checker) == ''">{{
837
                       <span v-if="setAdminUserES(advice.checker) == ''">{{
845
                         getAdminUser(advice.checker)
838
                         getAdminUser(advice.checker)
846
                       }}</span>
839
                       }}</span>
853
                       />
846
                       />
854
                     </td>
847
                     </td>
855
 
848
 
856
-                    <td v-if="advice_index === 0">透前体重:</td>
849
+                    <td v-if="advice_index === 0" width="145">透前体重:</td>
857
                     <td v-if="advice_index === 0">
850
                     <td v-if="advice_index === 0">
858
                       {{
851
                       {{
859
                         patientInfo.total_dialysis +
852
                         patientInfo.total_dialysis +
863
                           : "/"
856
                           : "/"
864
                       }}kg
857
                       }}kg
865
                     </td>
858
                     </td>
866
-                    <td v-if="advice_index === 1">体重增加量:</td>
859
+                    <td v-if="advice_index === 1" width="145">体重增加量:</td>
867
                     <td v-if="advice_index === 1">
860
                     <td v-if="advice_index === 1">
868
                       {{
861
                       {{
869
                         patientInfo.total_dialysis +
862
                         patientInfo.total_dialysis +
876
                           : "/"
869
                           : "/"
877
                       }}kg
870
                       }}kg
878
                     </td>
871
                     </td>
879
-                    <td v-if="advice_index === 2">干体重(DW):</td>
872
+                    <td v-if="advice_index === 2" width="145">干体重(DW):</td>
880
                     <td v-if="advice_index === 2">
873
                     <td v-if="advice_index === 2">
881
                       {{
874
                       {{
882
                         patientInfo.total_dialysis +
875
                         patientInfo.total_dialysis +
886
                           : "/"
879
                           : "/"
887
                       }}kg
880
                       }}kg
888
                     </td>
881
                     </td>
889
-                    <td v-if="advice_index === 3">较干体重增加量:</td>
882
+                    <td v-if="advice_index === 3" width="145">较干体重增加量:</td>
890
                     <td v-if="advice_index === 3">
883
                     <td v-if="advice_index === 3">
891
                       {{
884
                       {{
892
                         patientInfo.total_dialysis +
885
                         patientInfo.total_dialysis +
899
                           : "/"
892
                           : "/"
900
                       }}kg
893
                       }}kg
901
                     </td>
894
                     </td>
902
-                    <td v-if="advice_index === 4">净脱水量:</td>
895
+                    <td v-if="advice_index === 4" width="145">净脱水量:</td>
903
                     <td v-if="advice_index === 4">
896
                     <td v-if="advice_index === 4">
904
                       {{
897
                       {{
905
                         patientInfo.total_dialysis +
898
                         patientInfo.total_dialysis +
909
                           : "/"
902
                           : "/"
910
                       }}ml
903
                       }}ml
911
                     </td>
904
                     </td>
912
-                    <td v-if="advice_index === 5">透后体重:</td>
905
+                    <td v-if="advice_index === 5" width="145">透后体重:</td>
913
                     <td v-if="advice_index === 5">
906
                     <td v-if="advice_index === 5">
914
                       {{
907
                       {{
915
                         patientInfo.total_dialysis +
908
                         patientInfo.total_dialysis +
919
                           : "/"
912
                           : "/"
920
                       }}kg
913
                       }}kg
921
                     </td>
914
                     </td>
922
-                    <td v-if="advice_index === 6">本次透析体重下降量:</td>
915
+                    <td v-if="advice_index === 6" width="145">本次透析体重下降量:</td>
923
                     <td v-if="advice_index === 6">
916
                     <td v-if="advice_index === 6">
924
                       {{
917
                       {{
925
                         patientInfo.total_dialysis +
918
                         patientInfo.total_dialysis +
932
                           : "/"
925
                           : "/"
933
                       }}kg
926
                       }}kg
934
                     </td>
927
                     </td>
928
+                    <td v-if="advice_index > 6" width="145"></td>
935
                     <td v-if="advice_index > 6"></td>
929
                     <td v-if="advice_index > 6"></td>
936
-                    <td v-if="advice_index > 6"></td>
937
-                  </tr>
938
-                </tbody>
930
+
931
+
932
+                </tr>
939
               </table>
933
               </table>
934
+            </td>
935
+            
936
+          </tr>
937
+        
938
+          <tr style="transform: translateY(-4px)">
939
+            <td>
940
               <table class="print-table" border="1">
940
               <table class="print-table" border="1">
941
                 <tr style="height: 50px; text-align: left">
941
                 <tr style="height: 50px; text-align: left">
942
                   <td style="padding-left: 5px; border-bottom: none">
942
                   <td style="padding-left: 5px; border-bottom: none">
1455
           this.monitors = response.data.data.monitors;
1455
           this.monitors = response.data.data.monitors;
1456
           this.summary = response.data.data.summary;
1456
           this.summary = response.data.data.summary;
1457
           this.org_template_info = response.data.data.org_template_info;
1457
           this.org_template_info = response.data.data.org_template_info;
1458
+          console.log(this.advices, "this.advices");
1458
           if (this.monitors.length <= 0) {
1459
           if (this.monitors.length <= 0) {
1459
             var nl = 8 - this.monitors.length;
1460
             var nl = 8 - this.monitors.length;
1460
             for (let index = 0; index < nl; index++) {
1461
             for (let index = 0; index < nl; index++) {
1497
           }
1498
           }
1498
 
1499
 
1499
           var tableAdvice = this.advices;
1500
           var tableAdvice = this.advices;
1500
-          console.log("医生", tableAdvice);
1501
+          // console.log("医生", tableAdvice);
1501
           if (tableAdvice.length === 0) {
1502
           if (tableAdvice.length === 0) {
1502
             var obj = { advice_name: "", start_time: "" };
1503
             var obj = { advice_name: "", start_time: "" };
1503
             var obj1 = { advice_name: "", start_time: "" };
1504
             var obj1 = { advice_name: "", start_time: "" };
1599
 
1600
 
1600
           this.loading = false;
1601
           this.loading = false;
1601
 
1602
 
1602
-          this.doctor_advices =
1603
-            response.data.data.advices == null
1604
-              ? []
1605
-              : response.data.data.advices;
1603
+          // this.doctor_advices =
1604
+          //   response.data.data.advices == null
1605
+          //     ? []
1606
+          //     : response.data.data.advices;
1606
 
1607
 
1607
-          for (let index = 0; index < this.doctor_advices.length; index++) {
1608
-            this.doctor_advices[index]["isShow"] = 2;
1609
-          }
1608
+          // for (let index = 0; index < this.doctor_advices.length; index++) {
1609
+          //   this.doctor_advices[index]["isShow"] = 2;
1610
+          // }
1610
 
1611
 
1611
-          if (this.doctor_advices.length > 0) {
1612
-            var group = this.newAdviceGroupObject();
1613
-            var initGroupBlock = function (group, advice) {
1614
-              group.group_no = advice.groupno;
1615
-            };
1616
-            for (
1617
-              let index = this.doctor_advices.length - 1;
1618
-              index >= 0;
1619
-              index--
1620
-            ) {
1621
-              var new_advice_index = 0;
1622
-
1623
-              if (
1624
-                "children" in this.doctor_advices[index] &&
1625
-                this.doctor_advices[index].children.length > 0
1626
-              ) {
1627
-                new_advice_index =
1628
-                  index + this.doctor_advices[index].children.length + 1;
1629
-
1630
-                var doctor_advice = {
1631
-                  delivery_way: this.doctor_advices[index].delivery_way,
1632
-                  execution_frequency:
1633
-                    this.doctor_advices[index].execution_frequency,
1634
-                  groupno: this.doctor_advices[index].groupno,
1635
-                  id: this.doctor_advices[index].id,
1636
-                  parent_id: this.doctor_advices[index].parent_id,
1637
-                  children: this.doctor_advices[index].children,
1638
-                  remark: this.doctor_advices[index].remark,
1639
-                };
1640
-                doctor_advice["isShow"] = 1;
1641
-                this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
1642
-                // this.doctor_advices.push(doctor_advice)
1643
-              }
1644
-            }
1612
+          // if (this.doctor_advices.length > 0) {
1613
+          //   var group = this.newAdviceGroupObject();
1614
+          //   var initGroupBlock = function (group, advice) {
1615
+          //     group.group_no = advice.groupno;
1616
+          //   };
1617
+          //   for (
1618
+          //     let index = this.doctor_advices.length - 1;
1619
+          //     index >= 0;
1620
+          //     index--
1621
+          //   ) {
1622
+          //     var new_advice_index = 0;
1623
+
1624
+          //     if (
1625
+          //       "children" in this.doctor_advices[index] &&
1626
+          //       this.doctor_advices[index].children.length > 0
1627
+          //     ) {
1628
+          //       new_advice_index =
1629
+          //         index + this.doctor_advices[index].children.length + 1;
1630
+
1631
+          //       var doctor_advice = {
1632
+          //         delivery_way: this.doctor_advices[index].delivery_way,
1633
+          //         execution_frequency:
1634
+          //           this.doctor_advices[index].execution_frequency,
1635
+          //         groupno: this.doctor_advices[index].groupno,
1636
+          //         id: this.doctor_advices[index].id,
1637
+          //         parent_id: this.doctor_advices[index].parent_id,
1638
+          //         children: this.doctor_advices[index].children,
1639
+          //         remark: this.doctor_advices[index].remark,
1640
+          //       };
1641
+          //       doctor_advice["isShow"] = 1;
1642
+          //       this.doctor_advices.splice(new_advice_index, 0, doctor_advice);
1643
+          //       // this.doctor_advices.push(doctor_advice)
1644
+          //     }
1645
+          //   }
1645
 
1646
 
1646
-            for (let index = 0; index < this.doctor_advices.length; index++) {
1647
-              const advice = this.doctor_advices[index];
1648
-              if (advice.groupno == 0) {
1649
-                // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1650
-                if (advice.parent_id > 0) {
1651
-                  if (this.advice_groups.length > 0) {
1652
-                    var parent_group =
1653
-                      this.advice_groups[this.advice_groups.length - 1];
1654
-                    if (parent_group.advices.length > 0) {
1655
-                      if (parent_group.advices[0].id == advice.parent_id) {
1656
-                        parent_group.advices.push(advice);
1657
-                      }
1658
-                    }
1659
-                  }
1660
-                  continue;
1661
-                } else {
1662
-                  if (group.group_no > 0) {
1663
-                    this.advice_groups.push(group);
1664
-                    group = this.newAdviceGroupObject();
1665
-                  }
1666
-
1667
-                  initGroupBlock(group, advice);
1668
-                  group.advices.push(advice);
1669
-                  this.advice_groups.push(group);
1670
-                  group = this.newAdviceGroupObject();
1671
-                  continue;
1672
-                }
1673
-              }
1674
-
1675
-              if (group.group_no > 0 && group.group_no != advice.groupno) {
1676
-                this.advice_groups.push(group);
1677
-                group = this.newAdviceGroupObject();
1678
-              }
1679
-              if (group.group_no == 0) {
1680
-                initGroupBlock(group, advice);
1681
-              }
1682
-              if (group.group_no == advice.groupno) {
1683
-                group.advices.push(advice);
1684
-              }
1685
-            }
1686
-            if (group.group_no > 0) {
1687
-              // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
1688
-              this.advice_groups.push(group);
1689
-            }
1690
-          }
1647
+          //   for (let index = 0; index < this.doctor_advices.length; index++) {
1648
+          //     const advice = this.doctor_advices[index];
1649
+          //     if (advice.groupno == 0) {
1650
+          //       // 老版本的医嘱没有分组的概念,所以这一个 if 是解决这个问题的,将每个无分组的医嘱各自归为一组
1651
+          //       if (advice.parent_id > 0) {
1652
+          //         if (this.advice_groups.length > 0) {
1653
+          //           var parent_group =
1654
+          //             this.advice_groups[this.advice_groups.length - 1];
1655
+          //           if (parent_group.advices.length > 0) {
1656
+          //             if (parent_group.advices[0].id == advice.parent_id) {
1657
+          //               parent_group.advices.push(advice);
1658
+          //             }
1659
+          //           }
1660
+          //         }
1661
+          //         continue;
1662
+          //       } else {
1663
+          //         if (group.group_no > 0) {
1664
+          //           this.advice_groups.push(group);
1665
+          //           group = this.newAdviceGroupObject();
1666
+          //         }
1667
+
1668
+          //         initGroupBlock(group, advice);
1669
+          //         group.advices.push(advice);
1670
+          //         this.advice_groups.push(group);
1671
+          //         group = this.newAdviceGroupObject();
1672
+          //         continue;
1673
+          //       }
1674
+          //     }
1675
+
1676
+          //     if (group.group_no > 0 && group.group_no != advice.groupno) {
1677
+          //       this.advice_groups.push(group);
1678
+          //       group = this.newAdviceGroupObject();
1679
+          //     }
1680
+          //     if (group.group_no == 0) {
1681
+          //       initGroupBlock(group, advice);
1682
+          //     }
1683
+          //     if (group.group_no == advice.groupno) {
1684
+          //       group.advices.push(advice);
1685
+          //     }
1686
+          //   }
1687
+          //   if (group.group_no > 0) {
1688
+          //     // 上述的算法会导致最后一组没有加到advice_groups,这里要手动加上
1689
+          //     this.advice_groups.push(group);
1690
+          //   }
1691
+          // }
1691
           console.log(this.advice_groups);
1692
           console.log(this.advice_groups);
1692
         } else {
1693
         } else {
1693
           this.loading = false;
1694
           this.loading = false;

+ 4 - 1
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

234
                   .substring(0, 1) != '拾' &&
234
                   .substring(0, 1) != '拾' &&
235
                 zhongwen
235
                 zhongwen
236
                   .substring(this.zhongwen.indexOf('元') - 1)
236
                   .substring(this.zhongwen.indexOf('元') - 1)
237
-                  .substring(0, 1) != '佰'
237
+                  .substring(0, 1) != '佰' &&
238
+                  zhongwen
239
+                  .substring(this.zhongwen.indexOf('元') - 1)
240
+                  .substring(0, 1) != '仟'
238
               "
241
               "
239
             >
242
             >
240
               {{
243
               {{