Procházet zdrojové kódy

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx před 6 roky
rodič
revize
2865d40cf7

+ 35 - 24
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Zobrazit soubor

@@ -527,7 +527,7 @@
527 527
                     </div>
528 528
 
529 529
 
530
-                    <div class="inline_block" style="float: left;">
530
+                    <div class="inline_block" >
531 531
                       &emsp;核对人:
532 532
                       <div class="under_line" style="width: 100px;">
533 533
                         <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
@@ -539,13 +539,13 @@
539 539
 
540 540
                     <div class="inline_block">
541 541
                       &emsp;核对时间:
542
-                      <div class="under_line" style="width: 200px;">
542
+                      <div class="under_line" style="width: 150px;">
543 543
                         {{record.check?getTime(record.check.updated_time,'{y}年{m}月{d}日 {h}时'):''}}
544 544
                       </div>
545 545
                     </div>
546 546
 
547 547
 
548
-                    <div class="inline_block" style="float: left;">
548
+                    <div class="inline_block" >
549 549
                       &emsp;收针者:
550 550
                       <div class="under_line" style="width: 100px;">
551 551
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
@@ -555,11 +555,7 @@
555 555
                     </div>
556 556
 
557 557
 
558
-                  </div>
559
-
560
-                  <div class="row" style="padding: 2px 0;">
561
-
562
-                    <div class="inline_block">
558
+                    <div class="inline_block" >
563 559
                       血透室护士签名:
564 560
                       <div class="under_line" style="width: 100px;">
565 561
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
@@ -569,19 +565,21 @@
569 565
                     </div>
570 566
 
571 567
 
572
-                    <div class="inline_block">
573
-                      病区护士签名:
574
-                      <div class="under_line" style="width: 100px;">
575
-                      </div>
576
-                    </div>
577 568
 
578 569
                     <div class="inline_block">
579 570
                       &emsp;时间:
580 571
                       <div class="under_line" style="width: 200px;">
581
-                        {{record.dialysis_order?getTime(record.dialysis_order.end_time,'{y}年{m}月{d}日 {h}时'):''}}
572
+                        {{record.check?getTime(record.dialysis_order.end_time,'{y}年{m}月{d}日 {h}时'):''}}
573
+                      </div>
574
+                    </div>
575
+
576
+                    <div class="inline_block" >
577
+                      &emsp;病区护士签名:
578
+                      <div class="under_line" style="width: 100px;">
582 579
                       </div>
583 580
                     </div>
584 581
                   </div>
582
+
585 583
                 </td>
586 584
               </tr>
587 585
               </tbody>
@@ -870,12 +868,12 @@
870 868
               <template v-for="(group, group_index) in record.advices">
871 869
 
872 870
                   <tr v-for="(advice, advice_index) in group.advices"
873
-                      :key="advice.id">
871
+                      >
874 872
 
875 873
                       <td height="60px" v-if="advice_index == 0"
876 874
                           :rowspan="group.advices.length">
877 875
                                     <span v-if="advice.start_time">
878
-                                      {{getTime(advice.start_time,'{y}-{m}-{d} {h}:{i}')}}
876
+                                      {{getTime(advice.start_time,'{h}:{i}')}}
879 877
                                     </span>
880 878
                         <span v-else>&nbsp;<br/>&nbsp;</span>
881 879
                       </td>
@@ -888,11 +886,15 @@
888 886
                         <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
889 887
                         <span
890 888
                           v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
889
+                        <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
890
+
891 891
                       </td>
892 892
 
893 893
                       <td  height="60px" style="text-align: center"v-else >
894 894
                         <span>{{advice.delivery_way}}</span>
895 895
                         <span>{{advice.execution_frequency}}</span>
896
+                        <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
897
+
896 898
                       </td>
897 899
 
898 900
 
@@ -903,21 +905,23 @@
903 905
                            style="height: 20px;">
904 906
                     </td>
905 907
 
906
-
907 908
                     <td height="60px">
908
-                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
909
-                      <img class="es-img" :src="setAdminUserES(advice[1], 'execution_staff')" alt="" srcset="" v-else
909
+                        <span
910
+                          v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
911
+                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else
910 912
                            style="height: 20px;">
911 913
                     </td>
912 914
 
915
+
913 916
                     <td height="60px">
914
-                        <span
915
-                          v-if="setAdminUserES(advice, 'checker') == ''">{{getAdminUser(advice, 'checker')}}</span>
916
-                      <img class="es-img" :src="setAdminUserES(advice, 'checker')" alt="" srcset="" v-else
917
+                      <span v-if="setAdminUserES(advice, 'execution_staff') == ''">{{getAdminUser(advice, 'execution_staff')}}</span>
918
+                      <img class="es-img" :src="setAdminUserES(advice, 'execution_staff')" alt="" srcset="" v-else
917 919
                            style="height: 20px;">
918 920
                     </td>
919 921
 
920 922
 
923
+
924
+
921 925
                     <td height="60px"><span v-if="advice.execution_time">
922 926
                     {{getTime(advice.execution_time,'{h}:{i}')}}
923 927
                   </span>
@@ -1086,7 +1090,9 @@
1086 1090
                     groupno: this.doctor_advices[index].groupno,
1087 1091
                     id: this.doctor_advices[index].id,
1088 1092
                     parent_id: this.doctor_advices[index].parent_id,
1089
-                    children: this.doctor_advices[index].children
1093
+                    children: this.doctor_advices[index].children,
1094
+                    remark:this.doctor_advices[index].remark,
1095
+
1090 1096
                   }
1091 1097
                   doctor_advice['isShow'] = 1
1092 1098
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
@@ -1166,7 +1172,12 @@
1166 1172
     },
1167 1173
     methods: {
1168 1174
       printAction: function() {
1169
-        const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 46px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}'
1175
+        const style = '@media print { .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 0 0; page-break-after: always; } .print_page_main_content .order-yy-name { margin: auto; text-align: center; font-size: 20px; letter-spacing: 5px;} .print_page_main_content .order_title { text-align: center; font-size: 23px; line-height: 46px; font-weight: 500; } .row { font-size: 14px; line-height: 20px; padding: 5px 0; } .inline_block { display: inline-block; } .under_line { display: inline-block; border-bottom: 1px solid #999; text-align: center; white-space: nowrap; } .under_line::before { content: "\\00A0"; } .under_line::after { content: "\\00A0"; } .flex { display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; align-items: center; -webkit-align-items: center; box-align: center; -moz-box-align: center; -webkit-box-align: center; text-align: center; -webkit-justify-content: space-between; justify-content: space-between; -moz-box-pack: space-between; -webkit--moz-box-pack: space-between; box-pack: space-between; } .print_page_main_content .proj_table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } .print_page_main_content .proj_table tbody tr td { border: 1px solid; font-size: 16px; padding: 10px 8px; line-height: 30px; } .print_page_main_content .proj_table .inside_table { width: 100%; border: hidden; border-collapse: collapse; } .print_page_main_content .proj_table .inside_table tr td { border: 1px solid; text-align: center; font-size: 14px; padding: 8px 5px; line-height: 20px; } }.es-img{height: 20px; }.advice-name{text-align: left !important;line-height: 16px !important;}.advice-children{display:flex;}.print-table-no {\n' +
1176
+          '    width: 100%;\n' +
1177
+          '    text-align: center;\n' +
1178
+          '    border-collapse: collapse;\n' +
1179
+          '    font-size: 14px;\n' +
1180
+          '  }'
1170 1181
 
1171 1182
         printJS({
1172 1183
           printable: 'print_content',

+ 5 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

@@ -2274,11 +2274,15 @@
2274 2274
                 <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
2275 2275
                 <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
2276 2276
                 <span v-if="advice.children && advice.children.length > 0 || advice.parent_id > 0" style="float:right;width: 1px;height:30px; background: darkgray;"></span>
2277
+                <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
2278
+
2277 2279
               </td>
2278 2280
 
2279 2281
               <td class="advice-name" v-else style="text-align: center">
2280 2282
                 <span>{{advice.delivery_way}}</span>
2281 2283
                 <span>{{advice.execution_frequency}}</span>
2284
+                <span v-if="advice.remark.length > 0">({{advice.remark}})</span>
2285
+
2282 2286
               </td>
2283 2287
 
2284 2288
 
@@ -2682,10 +2686,8 @@
2682 2686
               var initGroupBlock = function(group, advice) {
2683 2687
                 group.group_no = advice.groupno;
2684 2688
               };
2685
-                console.log(this.doctor_advices)
2686 2689
                 for (let index = this.doctor_advices.length-1; index >= 0; index--) {
2687 2690
                 var new_advice_index = 0;
2688
-                  console.log(this.doctor_advices[index])
2689 2691
 
2690 2692
                   if('children' in this.doctor_advices[index]  && this.doctor_advices[index].children.length > 0){
2691 2693
                   new_advice_index = index+this.doctor_advices[index].children.length+1
@@ -2697,6 +2699,7 @@
2697 2699
                     id:this.doctor_advices[index].id,
2698 2700
                     parent_id:this.doctor_advices[index].parent_id,
2699 2701
                     children:this.doctor_advices[index].children,
2702
+                    remark:this.doctor_advices[index].remark,
2700 2703
 
2701 2704
                   }
2702 2705
                   doctor_advice['isShow'] =1