Browse Source

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

csx 6 years ago
parent
commit
2865d40cf7

+ 35 - 24
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue View File

527
                     </div>
527
                     </div>
528
 
528
 
529
 
529
 
530
-                    <div class="inline_block" style="float: left;">
530
+                    <div class="inline_block" >
531
                       &emsp;核对人:
531
                       &emsp;核对人:
532
                       <div class="under_line" style="width: 100px;">
532
                       <div class="under_line" style="width: 100px;">
533
                         <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
533
                         <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
539
 
539
 
540
                     <div class="inline_block">
540
                     <div class="inline_block">
541
                       &emsp;核对时间:
541
                       &emsp;核对时间:
542
-                      <div class="under_line" style="width: 200px;">
542
+                      <div class="under_line" style="width: 150px;">
543
                         {{record.check?getTime(record.check.updated_time,'{y}年{m}月{d}日 {h}时'):''}}
543
                         {{record.check?getTime(record.check.updated_time,'{y}年{m}月{d}日 {h}时'):''}}
544
                       </div>
544
                       </div>
545
                     </div>
545
                     </div>
546
 
546
 
547
 
547
 
548
-                    <div class="inline_block" style="float: left;">
548
+                    <div class="inline_block" >
549
                       &emsp;收针者:
549
                       &emsp;收针者:
550
                       <div class="under_line" style="width: 100px;">
550
                       <div class="under_line" style="width: 100px;">
551
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
551
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
555
                     </div>
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
                       <div class="under_line" style="width: 100px;">
560
                       <div class="under_line" style="width: 100px;">
565
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
561
                         <span v-if="setAdminUserES(record.dialysis_order, 'start_nurse') == ''">{{getAdminUser(record.dialysis_order, 'start_nurse')}}</span>
569
                     </div>
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
                     <div class="inline_block">
569
                     <div class="inline_block">
579
                       &emsp;时间:
570
                       &emsp;时间:
580
                       <div class="under_line" style="width: 200px;">
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
                       </div>
579
                       </div>
583
                     </div>
580
                     </div>
584
                   </div>
581
                   </div>
582
+
585
                 </td>
583
                 </td>
586
               </tr>
584
               </tr>
587
               </tbody>
585
               </tbody>
870
               <template v-for="(group, group_index) in record.advices">
868
               <template v-for="(group, group_index) in record.advices">
871
 
869
 
872
                   <tr v-for="(advice, advice_index) in group.advices"
870
                   <tr v-for="(advice, advice_index) in group.advices"
873
-                      :key="advice.id">
871
+                      >
874
 
872
 
875
                       <td height="60px" v-if="advice_index == 0"
873
                       <td height="60px" v-if="advice_index == 0"
876
                           :rowspan="group.advices.length">
874
                           :rowspan="group.advices.length">
877
                                     <span v-if="advice.start_time">
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
                                     </span>
877
                                     </span>
880
                         <span v-else>&nbsp;<br/>&nbsp;</span>
878
                         <span v-else>&nbsp;<br/>&nbsp;</span>
881
                       </td>
879
                       </td>
888
                         <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
886
                         <span v-if="advice.parent_id == 0  &&advice.children && advice.children.length == 0">{{advice.delivery_way}}</span>
889
                         <span
887
                         <span
890
                           v-if="advice.parent_id == 0  &&advice.children&& advice.children.length == 0">{{advice.execution_frequency}}</span>
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
                       </td>
891
                       </td>
892
 
892
 
893
                       <td  height="60px" style="text-align: center"v-else >
893
                       <td  height="60px" style="text-align: center"v-else >
894
                         <span>{{advice.delivery_way}}</span>
894
                         <span>{{advice.delivery_way}}</span>
895
                         <span>{{advice.execution_frequency}}</span>
895
                         <span>{{advice.execution_frequency}}</span>
896
+                        <span v-if="advice.remark.length > 0" >({{advice.remark}})</span>
897
+
896
                       </td>
898
                       </td>
897
 
899
 
898
 
900
 
903
                            style="height: 20px;">
905
                            style="height: 20px;">
904
                     </td>
906
                     </td>
905
 
907
 
906
-
907
                     <td height="60px">
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
                            style="height: 20px;">
912
                            style="height: 20px;">
911
                     </td>
913
                     </td>
912
 
914
 
915
+
913
                     <td height="60px">
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
                            style="height: 20px;">
919
                            style="height: 20px;">
918
                     </td>
920
                     </td>
919
 
921
 
920
 
922
 
923
+
924
+
921
                     <td height="60px"><span v-if="advice.execution_time">
925
                     <td height="60px"><span v-if="advice.execution_time">
922
                     {{getTime(advice.execution_time,'{h}:{i}')}}
926
                     {{getTime(advice.execution_time,'{h}:{i}')}}
923
                   </span>
927
                   </span>
1086
                     groupno: this.doctor_advices[index].groupno,
1090
                     groupno: this.doctor_advices[index].groupno,
1087
                     id: this.doctor_advices[index].id,
1091
                     id: this.doctor_advices[index].id,
1088
                     parent_id: this.doctor_advices[index].parent_id,
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
                   doctor_advice['isShow'] = 1
1097
                   doctor_advice['isShow'] = 1
1092
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
1098
                   this.doctor_advices.splice(new_advice_index, 0, doctor_advice)
1166
     },
1172
     },
1167
     methods: {
1173
     methods: {
1168
       printAction: function() {
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
         printJS({
1182
         printJS({
1172
           printable: 'print_content',
1183
           printable: 'print_content',

+ 5 - 2
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

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