Browse Source

7月26日杨青

杨青 1 year ago
parent
commit
18352c2d0e

+ 12 - 0
src/router/modules/dialysis.js View File

497
         noCache: true
497
         noCache: true
498
       }
498
       }
499
     },
499
     },
500
+    // {
501
+    //   path: '/dialysis/print/batch/sixtyseven',
502
+    //   component: () =>
503
+    //     import('@/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven'),
504
+    //   hidden: true,
505
+    //   is_menu: false,
506
+    //   name: 'dialysis_batch_sixtyseven',
507
+    //   meta: {
508
+    //     title: '批量打印',
509
+    //     noCache: true
510
+    //   }
511
+    // },
500
     {
512
     {
501
       path: '/dialysis/print/batch/seven',
513
       path: '/dialysis/print/batch/seven',
502
       component: () =>
514
       component: () =>

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyOne.vue View File

10
         type="primary"
10
         type="primary"
11
         >批量打印
11
         >批量打印
12
       </el-button>
12
       </el-button>
13
-    </div>
13
+    </div> 
14
     <div class="app-container">
14
     <div class="app-container">
15
       <div id="print_content">
15
       <div id="print_content">
16
         <div
16
         <div

File diff suppressed because it is too large
+ 1085 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyseven.vue


+ 12 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue View File

410
           type="primary"
410
           type="primary"
411
           >批量打印</el-button>
411
           >批量打印</el-button>
412
       </template>
412
       </template>
413
+      <!-- <template v-if="this.template_id == 67">
414
+        <el-button
415
+          size="small"
416
+          icon="el-icon-printer"
417
+          :disabled="selecting_schs.length == 0"
418
+          @click="batchPrintAction"
419
+          type="primary"
420
+          >批量打印</el-button>
421
+      </template> -->
413
     </div>
422
     </div>
414
     <div class="app-container">
423
     <div class="app-container">
415
       <!-- <div class="filter-container">
424
       <!-- <div class="filter-container">
2149
       }else if (this.template_id == 66) {
2158
       }else if (this.template_id == 66) {
2150
         this.$router.push({ path: "/dialysis/print/batch/sixtysix" });
2159
         this.$router.push({ path: "/dialysis/print/batch/sixtysix" });
2151
       }
2160
       }
2152
-
2161
+      // else if (this.template_id == 67) {
2162
+      //   this.$router.push({ path: "/dialysis/print/batch/sixtyseven" });
2163
+      // }
2153
     },
2164
     },
2154
     batchPrintActionOne: function() {
2165
     batchPrintActionOne: function() {
2155
       if (this.selecting_schs.length === 0) {
2166
       if (this.selecting_schs.length === 0) {

+ 15 - 15
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

821
         >
821
         >
822
         </div>
822
         </div>
823
       </template>
823
       </template>
824
-      <template v-if="org_template_info.template_id == 67 ">
824
+      <!-- <template v-if="org_template_info.template_id == 67 ">
825
         <div>
825
         <div>
826
           <el-button
826
           <el-button
827
           :loading="loading"
827
           :loading="loading"
829
           icon="el-icon-printer"
829
           icon="el-icon-printer"
830
           @click="printThisPage"
830
           @click="printThisPage"
831
           type="primary"
831
           type="primary"
832
-          >打印67</el-button
832
+          >打印</el-button
833
         >
833
         >
834
         </div>
834
         </div>
835
-      </template>
835
+      </template> -->
836
     </div>
836
     </div>
837
     <div class="app-container" style="min-height: 0">
837
     <div class="app-container" style="min-height: 0">
838
       <!--<div class="order-print-btn"-->
838
       <!--<div class="order-print-btn"-->
1288
             v-if="org_template_info.template_id == 66">
1288
             v-if="org_template_info.template_id == 66">
1289
 
1289
 
1290
           </DialysisPrintOrderSixtysix>
1290
           </DialysisPrintOrderSixtysix>
1291
-          <DialysisPrintOrdersixtySeven
1291
+          <!-- <DialysisPrintOrdersixtySeven
1292
           v-bind:childResponse="childResponse"
1292
           v-bind:childResponse="childResponse"
1293
             v-if="org_template_info.template_id == 67">
1293
             v-if="org_template_info.template_id == 67">
1294
 
1294
 
1295
-          </DialysisPrintOrdersixtySeven>
1295
+          </DialysisPrintOrdersixtySeven> -->
1296
         </div>
1296
         </div>
1297
       </el-container>
1297
       </el-container>
1298
     </div>
1298
     </div>
1377
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1377
 import DialysisPrintOrderSixtyfour from './template/DialysisPrintOrderSixtyfour'
1378
 import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1378
 import DialysisPrintOrderSixtyFive from "./template/DialysisPrintOrderSixtyFive.vue"
1379
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1379
 import DialysisPrintOrderSixtysix from './template/DialysisPrintOrderSixtysix.vue'
1380
-import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1380
+// import DialysisPrintOrdersixtySeven from './template/DialysisPrintOrdersixtySeven.vue'
1381
 export default {
1381
 export default {
1382
   name: "dialysisPrintOrder",
1382
   name: "dialysisPrintOrder",
1383
   components: {
1383
   components: {
1385
     DialysisPrintOrderSixtyTwo,
1385
     DialysisPrintOrderSixtyTwo,
1386
     DialysisPrintOrderSixtyOne,
1386
     DialysisPrintOrderSixtyOne,
1387
     DialysisPrintOrderSixty,
1387
     DialysisPrintOrderSixty,
1388
-    DialysisPrintOrdersixtySeven,
1388
+    // DialysisPrintOrdersixtySeven,
1389
     DialysisPrintOrderFiftyNine,
1389
     DialysisPrintOrderFiftyNine,
1390
     DialysisPrintOrderFiftyEight,
1390
     DialysisPrintOrderFiftyEight,
1391
     DialysisPrintOrderFiftySeven,
1391
     DialysisPrintOrderFiftySeven,
2017
           scanStyles: false,
2017
           scanStyles: false,
2018
         });
2018
         });
2019
       }
2019
       }
2020
-      else if (this.org_template_info.template_id == 67 ) {
2021
-        printJS({
2022
-          printable: "dialysis-print-box-1",
2023
-          type: "html",
2024
-          style: style2,
2025
-          scanStyles: false,
2026
-        });
2027
-      }
2020
+      // else if (this.org_template_info.template_id == 67 ) {
2021
+      //   printJS({
2022
+      //     printable: "dialysis-print-box-1",
2023
+      //     type: "html",
2024
+      //     style: style2,
2025
+      //     scanStyles: false,
2026
+      //   });
2027
+      // }
2028
       else if (
2028
       else if (
2029
         this.org_template_info.template_id == 53
2029
         this.org_template_info.template_id == 53
2030
       ) {
2030
       ) {

+ 50 - 17
src/xt_pages/outpatientCharges/invoicePrint.vue View File

8
         icon="el-icon-printer"
8
         icon="el-icon-printer"
9
         @click="printThisPage"
9
         @click="printThisPage"
10
         type="primary"
10
         type="primary"
11
-      >打印</el-button
12
-      >
11
+      >打印</el-button>
13
     </template>
12
     </template>
14
-    <div class="app-container" style="padding-top:40px;">
13
+    <div class="app-container" style="padding-top:40px;" v-if="org_id != 10217 && org_id != 0 && org_id != 10485">
15
         <div class='dialysisPage'>
14
         <div class='dialysisPage'>
16
-          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387&& org_id != 10210" >
15
+          <div v-if="org_id != 10106 && org_id != 10215 && org_id != 4 && org_id != 10188 && org_id != 10217 && org_id != 0 && org_id != 10387&& org_id != 10210 && org_id != 10387" >
17
             <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
16
             <printOne v-if="org_id != 10088 " :paramsObj="invoiceParams"></printOne>
18
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
17
             <printThree v-if="org_id == 10088" :paramsObj="invoiceParams"></printThree>
19
           </div>
18
           </div>
20
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
19
           <printTwo v-if="org_id == 10106" :paramsObj="invoiceParams"></printTwo>
21
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
20
           <printFour v-if="org_id == 10215 || org_id == 4 " :paramsObj="invoiceParams"></printFour>
22
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
21
           <printFive v-if="org_id == 10188 " :paramsObj="invoiceParams"></printFive>
23
-          <printSix v-if="org_id == 10217 " :paramsObj="invoiceParams"></printSix>
22
+          <printSix v-if="org_id == 10217  || org_id == 0" :paramsObj="invoiceParams"></printSix>
24
 <!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
23
 <!--          <printEight v-if="org_id == 10387 || org_id == 0" :paramsObj="invoiceParams"></printEight>-->
25
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
24
           <print-eight v-if="org_id == 10387" :paramsObj="invoiceParams"></print-eight>
26
-          <PrintNight v-if="org_id == 10210 " :paramsObj="invoiceParams"></PrintNight>
27
-          <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 "></PrintTen> -->
25
+          <PrintNight v-if="org_id == 10210" :paramsObj="invoiceParams"></PrintNight>
26
+          <!-- <PrintTen v-if="org_id == 10375 ||org_id == 0 " :paramsObj="invoiceParams"></PrintTen> -->
28
         </div>
27
         </div>
29
     </div>
28
     </div>
29
+
30
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10485 ">
31
+      <div class='dialysisPage'>
32
+        <print-eleven :paramsObj="invoiceParams"></print-eleven>
33
+      </div>
34
+    </div>
35
+
36
+    <div class="app-container" style="" v-if="org_id == 10217">
37
+      <div class='dialysisPage'>
38
+        <printSix v-if="org_id == 10217  " :paramsObj="invoiceParams"></printSix>
39
+      </div>
40
+    </div>
41
+    <div class="app-container" style="padding-top:40px;" v-if="org_id == 10375 ||org_id == 0">
42
+      <div class='dialysisPage'>
43
+        <print-ten :paramsObj="invoiceParams"></print-ten>
44
+      </div>
45
+    </div>
30
   </div>
46
   </div>
31
 </template>
47
 </template>
32
 
48
 
41
   import printEight from './invoiceTemplate/printEight'
57
   import printEight from './invoiceTemplate/printEight'
42
   import PrintEight from "./invoiceTemplate/printEight";
58
   import PrintEight from "./invoiceTemplate/printEight";
43
   import PrintNight from "./invoiceTemplate/PrintNight";
59
   import PrintNight from "./invoiceTemplate/PrintNight";
44
-  // import PrintTen from './invoiceTemplate/printTen.vue'
60
+  import PrintTen from './invoiceTemplate/printTen.vue'
61
+  import PrintEleven from './invoiceTemplate/printEleven.vue'
45
   export default {
62
   export default {
46
     name: "invoicePrint",
63
     name: "invoicePrint",
47
     components: {
64
     components: {
65
+      PrintEleven,
48
       PrintNight,
66
       PrintNight,
49
       PrintEight,
67
       PrintEight,
50
       printOne,
68
       printOne,
54
       printFive,
72
       printFive,
55
       printSix,
73
       printSix,
56
       printSeven,
74
       printSeven,
57
-      // PrintTen
75
+      PrintTen,
58
     },
76
     },
59
     props:{
77
     props:{
60
       invoiceParams:Object
78
       invoiceParams:Object
92
         return "";
110
         return "";
93
       },
111
       },
94
       printThisPage() {
112
       printThisPage() {
95
-        const style =
96
-          '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
97
-        printJS({
98
-          printable: "invoice-print",
99
-          type: "html",
100
-          style: style,
101
-          scanStyles: false
102
-        });
113
+        if (this.org_id == 10217){
114
+          const style =
115
+            // '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
116
+            '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;}.actionBar div{width:150px;}}';
117
+          printJS({
118
+            printable: "invoice-print",
119
+            type: "html",
120
+            style: style,
121
+            scanStyles: false
122
+          });
123
+        }else{
124
+          const style =
125
+            '@media print {#invoice-print{font-size:12px;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar div{width:150px;}}';
126
+          printJS({
127
+            printable: "invoice-print",
128
+            type: "html",
129
+            style: style,
130
+            scanStyles: false
131
+          });
132
+
133
+
134
+        }
135
+
103
 
136
 
104
 
137
 
105
         // if (this.org_template_info.template_id == 1) {
138
         // if (this.org_template_info.template_id == 1) {

+ 249 - 0
src/xt_pages/outpatientCharges/invoiceTemplate/printEleven.vue View File

1
+<template>
2
+  <div id='invoice-print' style="position: relative;">
3
+    <div>
4
+      <div style="display: inline-block; position: absolute;top: 30px;left: 30px;">{{list.order.mdtrt_id}}</div>
5
+      <div style="display: inline-block; position: absolute;top: 30px;left: 230px;">{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</div>
6
+      <div style="display: inline-block; position: absolute;top: 30px;left: 280px;">{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</div>
7
+      <div style="display: inline-block; position: absolute;top: 30px;left: 330px;">{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</div>
8
+    </div>
9
+    <div>
10
+      <div style="position: absolute;top: 50px;left: 60px;">{{ paramsObj.name }}</div>
11
+      <div style="display:flex;justify-content: space-between;">
12
+          <div  style="position: absolute;top:50px;left:260px;">√</div>
13
+          <div  style="position: absolute;top:50px;left:220px;"></div>
14
+          <div  style="position: absolute;top:50px;left:250px;"></div>
15
+      </div>
16
+      <div style="display:flex;justify-content: space-between;">
17
+          <div  style="position: absolute;top:50px;left:480px;" v-if="list.gender == 1">√</div>
18
+          <div  style="position: absolute;top:50px;left:540px;" v-else-if="list.gender == 2">√</div>
19
+      </div>
20
+    </div>
21
+    <div style="display:flex;justify-content: space-between;">
22
+      <div  style="position: absolute;top:68px;left:120px;">医保</div>
23
+      <div  style="position: absolute;top:68px;left:300px;">{{ list.number.length <= 13 ? list.psn_cash_money.toFixed(2) : (list.psn_cash_money).toFixed(2) }}</div>
24
+      <div  style="position: absolute;top:68px;left:480px;">现金</div>
25
+    </div>
26
+    <div style="display:flex;justify-content: space-between;">
27
+      <div  style="position: absolute;top:124px;left:0px;">西药</div>
28
+      <div  style="position: absolute;top:124px;left:60px;">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
29
+      <div  style="position: absolute;top:124px;left:120px;">检查费</div>
30
+      <div  style="position: absolute;top:124px;left:180px;">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
31
+      <div  style="position: absolute;top:124px;left:240px;">治疗费</div>
32
+      <div  style="position: absolute;top:124px;left:320px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
33
+      <div  style="position: absolute;top:124px;left:410px;">床位费</div>
34
+      <div  style="position: absolute;top:124px;left:480px;">{{ list.bedCostTotal ? list.bedCostTotal.toFixed(2) : '' }}</div>
35
+    </div>
36
+    <div style="display:flex;justify-content: space-between;">
37
+      <div  style="position: absolute;top:150px;left:0px;">中成药</div>
38
+      <div  style="position: absolute;top:150px;left:60px;">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
39
+      <div  style="position: absolute;top:150px;left:120px;">化验费</div>
40
+      <div  style="position: absolute;top:150px;left:180px;">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
41
+      <div  style="position: absolute;top:150px;left:240px;">手术费</div>
42
+      <div  style="position: absolute;top:150px;left:320px;">{{ list.operationCostTotal ? list.operationCostTotal.toFixed(2) : '' }}</div>
43
+      <div  style="position: absolute;top:150px;left:410px;">其他费</div>
44
+      <div  style="position: absolute;top:150px;left:480px;">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
45
+    </div>
46
+    <div style="display:flex;justify-content: space-between;">
47
+      <div  style="position: absolute;top:176px;left:0px;">诊察费</div>
48
+      <div  style="position: absolute;top:176px;left:60px;">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
49
+      <div  style="position: absolute;top:176px;left:120px;">材料费</div>
50
+      <div  style="position: absolute;top:176px;left:180px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
51
+      <div  style="position: absolute;top:176px;left:240px;"></div>
52
+      <div  style="position: absolute;top:176px;left:320px;"></div>
53
+      <div  style="position: absolute;top:176px;left:410px;"></div>
54
+      <div  style="position: absolute;top:176px;left:480px;"></div>
55
+    </div>
56
+    <div style="display:flex;justify-content: space-between;">
57
+      <div  style="position: absolute;top:202px;left:60px;"></div>
58
+      <div  style="position: absolute;top:202px;left:180px;"></div>
59
+      <div  style="position: absolute;top:202px;left:320px;"></div>
60
+      <div  style="position: absolute;top:202px;left:480px;"></div>
61
+    </div>
62
+    <div>
63
+      <span>
64
+        <span  style="position: absolute;top:230px;left:120px">
65
+          <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
66
+                    {{ zhongwen.substring(0,1) }}
67
+                </span>
68
+                <span v-else>零</span>
69
+        </span>
70
+        <span  style="position: absolute;top:230px;left:160px">
71
+            <span v-if="zhongwen.indexOf('万') > -1">
72
+                    {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
73
+                </span>
74
+                <span v-else>零</span>
75
+        </span>
76
+        <span  style="position: absolute;top:230px;left:210px">
77
+            <span v-if="zhongwen.indexOf('仟') > -1">
78
+                    {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
79
+                </span>
80
+                <span v-else>零</span>
81
+        </span>
82
+        <span  style="position: absolute;top:230px;left:260px">
83
+            <span v-if="zhongwen.indexOf('佰') > -1">
84
+                    {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
85
+                </span>
86
+                <span v-else>零</span>
87
+        </span>
88
+        <span style="position: absolute;top:230px;left:310px">
89
+            <span v-if="zhongwen.indexOf('拾') > -1">
90
+                    {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
91
+                </span>
92
+                <span v-else>零</span>
93
+        </span>
94
+        <span  style="position: absolute;top:230px;left:360px">
95
+           <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
96
+                    {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
97
+                </span>
98
+                <span v-else>零</span>
99
+        </span>
100
+        <span  style="position: absolute;top:230px;left:420px">
101
+             <span v-if="zhongwen.indexOf('角') > -1">
102
+                    {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
103
+                </span>
104
+                <span v-else>零</span>
105
+        </span>
106
+
107
+        <span  style="position: absolute;top:230px;left:480px">
108
+             <span v-if="zhongwen.indexOf('分') > -1">
109
+                    {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
110
+                </span>
111
+                <span v-else>零</span>
112
+        </span>
113
+      </span>
114
+      <span style="position: absolute;top:230px;left:530px">{{ totalPrice.toFixed(2) }}</span>
115
+    </div>
116
+
117
+
118
+    <div style="display:flex;justify-content: space-between;">
119
+      <div style="position: absolute;top:283px;left:100px;">阳春{{ org_name}}</div>
120
+      <div style="position: absolute;top:283px;left:240px;"></div>
121
+      <div style="position: absolute;top:283px;left:410px;">{{list.admin_user_name}}</div>
122
+    </div>
123
+  </div>
124
+</template>
125
+<script>
126
+import { getInvoice } from '@/api/project/project'
127
+import { uParseTime } from '@/utils/tools'
128
+export default {
129
+  props:{
130
+    paramsObj:Object
131
+  },
132
+  data(){
133
+    return{
134
+      gender:'',
135
+      list:{},
136
+      printDate:'',
137
+      zhongwen:'',
138
+      totalPrice:0.0,
139
+      org_id:'',
140
+      org_name:''
141
+    }
142
+  },
143
+  created(){
144
+    console.log('paramsObj',this.paramsObj)
145
+    let params = {
146
+      order_id: this.paramsObj.order_id,
147
+      patient_id: this.paramsObj.patient_id,
148
+      number: this.paramsObj.number,
149
+    }
150
+    this.getInvoice(params)
151
+    // var data = new Date();
152
+    // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
153
+    // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
154
+    // this.printDate = data.getFullYear() + "-" + month + "-" + date;
155
+    // this.smalltoBIG(982732.21)
156
+    this.org_id = this.$store.getters.xt_user.org_id
157
+    this.org_name = this.$store.getters.xt_user.org.org_name
158
+  },
159
+  methods:{
160
+    getInvoice(params){
161
+      getInvoice(params).then((res) => {
162
+        console.log('res',res)
163
+        this.list = res.data.data
164
+        this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
165
+          this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
166
+        if(this.totalPrice == 0){
167
+
168
+          this.totalPrice = this.list.medfee_sumamt
169
+        }
170
+        console.log( "this.totalPrice")
171
+
172
+        this.smalltoBIG(this.totalPrice.toFixed(2))
173
+        var data = new Date(res.data.data.date * 1000);
174
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
175
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
176
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
177
+        this.gender = this.list.gender
178
+      })
179
+    },
180
+    smalltoBIG(n) {
181
+      // let fraction = ['角', '分'];
182
+      // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
183
+      // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
184
+      // let head = price < 0 ? '欠' : '';
185
+      // price = Math.abs(price);
186
+      // let upper = '';
187
+      // for (let i = 0; i < fraction.length; i++) {
188
+      // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
189
+      // }
190
+      // upper = upper || '整';
191
+      // price = Math.floor(price);
192
+      // for (let i = 0; i < unit[0].length && price > 0; i++) {
193
+      // let p = '';
194
+      // for (let j = 0; j < unit[1].length && price > 0; j++) {
195
+      //     p = digit[price % 10] + unit[1][j] + p;
196
+      //     price = Math.floor(price / 10);
197
+      // }
198
+      // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
199
+      // }
200
+      // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
201
+      // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
202
+      if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
203
+        return "数据非法";  //判断数据是否大于0
204
+      }
205
+
206
+      var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
207
+      n += "00";
208
+
209
+      var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
210
+
211
+      if (indexpoint >= 0){
212
+
213
+        n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
214
+      }
215
+
216
+      unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
217
+      for (var i=0; i < n.length; i++){
218
+        str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
219
+      }
220
+
221
+      this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
222
+      console.log(this.zhongwen)
223
+    },
224
+    getTime(value, temp) {
225
+      if (value == 0) {
226
+        return ''
227
+      }
228
+      if (value != undefined) {
229
+        return uParseTime(value, temp)
230
+      }
231
+      return ''
232
+    },
233
+  },
234
+  watch:{
235
+    paramsObj:{//深度监听,可监听到对象、数组的变化
236
+      handler(val, oldVal){
237
+        let params = {
238
+          order_id: val.order_id,
239
+          patient_id: val.patient_id,
240
+          number: val.number,
241
+        }
242
+        this.getInvoice(params)
243
+
244
+      },
245
+      deep:true
246
+    }
247
+  }
248
+}
249
+</script>

+ 16 - 16
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue View File

1
 <template>
1
 <template>
2
-    <div id='invoice-print' style="position: relative;">
3
-        <div v-for='(i,index) in pageArr.length' :key="index" >
4
-            <div :style="{position: 'absolute',top:(20 + (index * 660))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
-            <div :style="{position: 'absolute',top:(70 + (index * 660))  + 'px',left:90+ 'px',}">{{ list.order_number }}</div>
6
-            <div style="display:flex;justify-content: space-between;">
7
-                <div :style="{position: 'absolute',top:(110 + (index * 660))  + 'px',left:20+ 'px',}">{{ paramsObj.name }}</div>
2
+    <div id='invoice-print' >
3
+        <div v-for='(i,index) in pageArr.length' :key="index" style="position: relative;">
4
+            <div :style="{position: 'absolute',top:(20 + (index * 550))  + 'px',left:200+ 'px',}">盐城大丰悦达金骆驼血液透析中心</div>
5
+            <div :style="{position: 'absolute',top:(65 + (index * 550))  + 'px',left:95+ 'px',}">{{ list.order_number }}</div>
6
+            <div >
7
+                <div :style="{position: 'absolute',top:(125 + (index * 550))  + 'px',left:20+ 'px',}">{{ paramsObj.name }}</div>
8
             </div>
8
             </div>
9
-            <div :style="{position: 'absolute',top:(160 + (index * 660))  + 'px',left:20+ 'px',}">
9
+            <div :style="{position: 'absolute',top:(175 + (index * 550))  + 'px',left:20+ 'px',}">
10
                 <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
10
                 <div v-if="list.westernMedicineCostTotal">西药 {{ list.westernMedicineCostTotal }}</div>
11
                 <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
11
                 <div v-if="list.treatCostTotal">治疗费 {{ list.treatCostTotal }}</div>
12
                 <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
12
                 <div v-if="list.bedCostTotal">床位费 {{ list.bedCostTotal }}</div>
16
                 <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
16
                 <div v-if="list.otherCostTotal">其他费 {{ list.otherCostTotal }}</div>
17
                 <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
17
                 <div v-if="list.materialCostTotal">材料费 {{ list.materialCostTotal }}</div>
18
             </div>
18
             </div>
19
-            <div :style="{position: 'absolute',top:(160 + (index * 660))  + 'px',left:220+ 'px'}">
19
+            <div :style="{position: 'absolute',top:(175 + (index * 550))  + 'px',left:220+ 'px'}">
20
                 <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
20
                 <div v-for="item in list.order_info.slice(index * 10,(index * 10) + pageArr[index])">
21
                     <span style="display:inline-block;width:200px;">
21
                     <span style="display:inline-block;width:200px;">
22
                         <span v-if="item.advice.id == 0">
22
                         <span v-if="item.advice.id == 0">
41
                     </span>
41
                     </span>
42
                 </div>
42
                 </div>
43
             </div>
43
             </div>
44
-            <div :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:50+ 'px'}">{{ zhongwen }}</div>
45
-            <div :style="{position: 'absolute',top:(370 + (index * 660))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
-            <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(400 + (index * 660))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
44
+            <div :style="{position: 'absolute',top:(380 + (index * 550))  + 'px',left:50+ 'px'}">{{ zhongwen }}</div>
45
+            <div :style="{position: 'absolute',top:(380 + (index * 550))  + 'px',left:480+ 'px'}">{{ list.medfee_sumamt }}</div>
46
+            <div v-if="index == pageArr.length - 1" :style="{position: 'absolute',top:(400 + (index * 550))  + 'px',left:110+ 'px',width:100 + '%',fontSize:12+'px'}">
47
                 <div style="display:flex;">
47
                 <div style="display:flex;">
48
                   <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
48
                   <div style="width:140px">医疗总费用:{{ list.order.medfee_sumamt }}</div>
49
                   <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
49
                   <div style="width:140px">基金支付总额:{{ list.order.fund_pay_sumamt }}</div>
70
 
70
 
71
             </div>
71
             </div>
72
             <div>
72
             <div>
73
-                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:120+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
-                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:390+ 'px'}">{{ paramsObj.chargeName }}</div>
75
-                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:550+ 'px'}">
73
+                <div :style="{position: 'absolute',top:(445 + (index * 550))  + 'px',left:120+ 'px'}">盐城大丰悦达金骆驼血液透析中心</div>
74
+                <div :style="{position: 'absolute',top:(445 + (index * 550))  + 'px',left:390+ 'px'}">{{ paramsObj.chargeName }}</div>
75
+                <div :style="{position: 'absolute',top:(445 + (index * 550))  + 'px',left:550+ 'px'}">
76
                     <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
76
                     <span>{{  paramsObj.setl_time ? paramsObj.setl_time.split(' ')[0].slice(0,4) : getTime(list.date, '{y}-{m}-{d}').slice(0,4) }}</span>
77
                 </div>
77
                 </div>
78
-                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:610+ 'px'}">
78
+                <div :style="{position: 'absolute',top:(445 + (index * 550))  + 'px',left:610+ 'px'}">
79
                     <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
79
                     <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(5,7)) : getTime(list.date, '{y}-{m}-{d}').slice(5,7) }}</span>
80
                 </div>
80
                 </div>
81
-                <div :style="{position: 'absolute',top:(430 + (index * 660))  + 'px',left:650+ 'px'}">
81
+                <div :style="{position: 'absolute',top:(445 + (index * 550))  + 'px',left:650+ 'px'}">
82
                     <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
82
                     <span>{{ paramsObj.setl_time ? parseInt(paramsObj.setl_time.split(' ')[0].slice(8,11)) : getTime(list.date, '{y}-{m}-{d}').slice(8,11) }}</span>
83
                 </div>
83
                 </div>
84
             </div>
84
             </div>

+ 253 - 93
src/xt_pages/outpatientCharges/invoiceTemplate/printTen.vue View File

1
 <template>
1
 <template>
2
   <div id='invoice-print' style="position: relative;">
2
   <div id='invoice-print' style="position: relative;">
3
-    <div style="display: flex;width: 575px;margin-bottom: 5px; position: absolute; top: 70px;right: 1px;">
4
-      2023-07-18
5
-    </div> 
6
-    <div style="display: flex; justify-content: space-between;width: 573px;">
7
-      <div style="position: absolute;top: 85px;">
8
-        <span>姓名:何月兰</span>
9
-        <span></span>
10
-        <span style="margin-left: 60px;">性别:女</span>
11
-        <span></span>
3
+    <div style="border: 1px solid black;padding: 5px;width:600px;">
4
+      <div style="display: flex;width: 575px;margin-bottom: 5px; position: absolute; top: 70px;left: 522px;">
5
+        {{printDate}}
12
       </div>
6
       </div>
13
-      <div style="position: absolute;top: 85px;left: 351px;">
14
-        <span style="margin-right: 60px;">No: 2307062517</span>
7
+      <div style="display: flex; justify-content: space-between;width: 573px;">
8
+        <div style="position: absolute;top: 85px;">
9
+          <span>{{paramsObj.name}}</span>
10
+          <span></span>
11
+          <span style="margin-left: 60px;" v-if="list.gender == 1">女</span>
12
+          <span style="margin-left: 60px;" v-else-if="list.gender == 2">男</span>
13
+
14
+          <span></span>
15
+        </div>
16
+        <div style="position: absolute;top: 85px;left: 351px;">
17
+          <span style="margin-right: 60px;"></span>
18
+        </div>
19
+      </div>
20
+      <div style="display:flex;justify-content: space-between;">
21
+        <div style="position: absolute;top:120px;left:80px">西药费</div>
22
+        <div style="position: absolute;top:120px;left:171px">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
23
+        <div style="position: absolute;top:120px;left:262px">检查费</div>
24
+        <div style="position: absolute;top:120px;left:353px">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
25
+        <div style="position: absolute;top:120px;left:444px">治疗费</div>
26
+        <div style="position: absolute;top:120px;left:535px">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
15
       </div>
27
       </div>
16
-    </div>
17
-    <div style="display:flex;justify-content: space-between;">
18
-      <div style="position: absolute;top:150px;left:80px">西药费</div>
19
-      <div style="position: absolute;top:150px;left:171px">555</div>
20
-      <div style="position: absolute;top:150px;left:262px">检查费</div>
21
-      <div style="position: absolute;top:150px;left:353px">666</div>
22
-      <div style="position: absolute;top:150px;left:444px">治疗费</div>
23
-      <div style="position: absolute;top:150px;left:535px">777</div>
24
-    </div> 
25
-    
26
-    <div>
27
-      <span>
28
-      <span  style="position: absolute;top:230px;left:120px">
29
-          <span >
30
-              拾
31
-          </span>
32
-          
33
-      </span>
34
-      <span  style="position: absolute;top:230px;left:140px">
35
-          <span>
36
-              万
37
-          </span>
38
-         
39
-      </span>
40
-      <span  style="position: absolute;top:230px;left:160px">
41
-          <span >
42
-            千
43
-          </span>
44
-          
45
-      </span>
46
-      <span  style="position: absolute;top:230px;left:180px">
47
-          <span >
48
-            百
49
-          </span>
50
-          
51
-      </span>
52
-      <span style="position: absolute;top:230px;left:200px">
53
-          <span >
54
-             拾
55
-          </span>
56
-          
57
-      </span>
58
-      <span  style="position: absolute;top:230px;left:220px">
59
-          <span >
60
-              元
61
-          </span>
62
-
63
-      </span>
64
-      <span  style="position: absolute;top:230px;left:240px">
65
-          <span >
66
-              角
67
-          </span>
68
-      </span>
69
-      <span  style="position: absolute;top:230px;left:260px">
70
-          <span >
71
-              分
72
-          </span>
73
-      </span>
74
-      </span>
75
-      <span style="position: absolute;top:230px;left:450px">¥:555.57</span>
76
-    </div>
77
 
28
 
78
-    <div style="border-bottom: 1px solid black;position: absolute;top:250px;left:110;width:573px;font-Size:12px">
79
-      <div  style="display:flex;margin: 3px 0px;">
80
-        <div style="width:140px">医保:门慢统筹:</div>
81
-        <div style="width:140px">大病保险:</div>
82
-        <div style="width:140px">民政救助:</div>
83
-        <div style="width:140px">兜底支付:</div>
29
+      <div style="display:flex;justify-content: space-between;">
30
+        <div style="position: absolute;top:140px;left:80px">床位费</div>
31
+        <div style="position: absolute;top:140px;left:171px">{{ list.bedCostTotal ? list.bedCostTotal.toFixed(2) : '' }}</div>
32
+        <div style="position: absolute;top:140px;left:262px">中成药</div>
33
+        <div style="position: absolute;top:140px;left:353px">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
34
+        <div style="position: absolute;top:140px;left:444px">化验费</div>
35
+        <div style="position: absolute;top:140px;left:535px">{{ list.laboratoryCostTotal ? list.laboratoryCostTotal.toFixed(2) : '' }}</div>
84
       </div>
36
       </div>
85
-      <div style="display:flex;margin-bottom: 3px;">
86
-        <div style="width:140px">个人自付:</div>
87
-        <div style="width:140px">个账支付:</div>
88
-        <div style="width:140px">个账余额:</div>
37
+
38
+      <div style="display:flex;justify-content: space-between;">
39
+        <div style="position: absolute;top:160px;left:80px">手术费</div>
40
+        <div style="position: absolute;top:160px;left:171px">{{ list.operationCostTotal ? list.operationCostTotal.toFixed(2) : '' }}</div>
41
+        <div style="position: absolute;top:160px;left:262px">中成药</div>
42
+        <div style="position: absolute;top:160px;left:353px">{{ list.chineseTraditionalMedicineCostTotal ? list.chineseTraditionalMedicineCostTotal.toFixed(2) : '' }}</div>
43
+        <div style="position: absolute;top:160px;left:444px">其他费</div>
44
+        <div style="position: absolute;top:160px;left:535px">{{ list.otherCostTotal ? list.otherCostTotal.toFixed(2) : '' }}</div>
89
       </div>
45
       </div>
90
-    </div>
91
-    <div style="position: absolute;top:290px;left:110;width:573px;font-Size:12px">
92
-      <div style="display:flex;margin: 3px 0px;">
93
-        <div style="width:140px">现金支付:55.57</div>
94
-        <div style="width:140px">预存扣减:55.57</div>
95
-        <div style="width:140px">预存余额:55.57</div>
46
+
47
+      <div style="display:flex;justify-content: space-between;">
48
+        <div style="position: absolute;top:180px;left:80px">诊察费</div>
49
+        <div style="position: absolute;top:180px;left:171px">{{ list.zhenChaCostTotal ? list.zhenChaCostTotal.toFixed(2) : '' }}</div>
50
+        <div style="position: absolute;top:180px;left:262px">材料费</div>
51
+        <div style="position: absolute;top:180px;left:353px">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
52
+      </div>
53
+
54
+      <div>
55
+        <span>
56
+        <span  style="position: absolute;top:230px;left:120px">
57
+          <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
58
+                      {{ zhongwen.substring(0,1) }}
59
+                  </span>
60
+                  <span v-else>零</span>
61
+
62
+        </span>
63
+        <span  style="position: absolute;top:230px;left:140px">
64
+            <span v-if="zhongwen.indexOf('万') > -1">
65
+                      {{ zhongwen.substring(zhongwen.indexOf('万') - 1,zhongwen.indexOf('万')) }}
66
+                  </span>
67
+                  <span v-else>零</span>
68
+
69
+        </span>
70
+        <span  style="position: absolute;top:230px;left:160px">
71
+          <span v-if="zhongwen.indexOf('仟') > -1">
72
+                      {{ zhongwen.substring(zhongwen.indexOf('仟') - 1,zhongwen.indexOf('仟')) }}
73
+                  </span>
74
+                  <span v-else>零</span>
75
+
76
+        </span>
77
+        <span  style="position: absolute;top:230px;left:180px">
78
+            <span v-if="zhongwen.indexOf('佰') > -1">
79
+                      {{ zhongwen.substring(zhongwen.indexOf('佰') - 1,zhongwen.indexOf('佰')) }}
80
+                  </span>
81
+                  <span v-else>零</span>
82
+
83
+        </span>
84
+        <span style="position: absolute;top:230px;left:200px">
85
+            <span v-if="zhongwen.indexOf('拾') > -1">
86
+                      {{zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) == '佰' ||  !zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾'))? '壹' : zhongwen.substring(zhongwen.indexOf('拾') - 1,zhongwen.indexOf('拾')) }}
87
+                  </span>
88
+                  <span v-else>零</span>
89
+
90
+        </span>
91
+        <span  style="position: absolute;top:230px;left:220px">
92
+            <span v-if="zhongwen.indexOf('元') > -1 && zhongwen.substring(this.zhongwen.indexOf('元') - 1).substring(0,1)!= '拾'">
93
+                      {{ zhongwen.substring(zhongwen.indexOf('元') - 1,zhongwen.indexOf('元')) }}
94
+                  </span>
95
+                  <span v-else>零</span>
96
+        </span>
97
+        <span  style="position: absolute;top:230px;left:240px">
98
+            <span v-if="zhongwen.indexOf('角') > -1">
99
+                      {{ zhongwen.substring(zhongwen.indexOf('角') - 1,zhongwen.indexOf('角')) }}
100
+                  </span>
101
+                  <span v-else>零</span>
102
+        </span>
103
+        <span  style="position: absolute;top:230px;left:260px">
104
+          <span v-if="zhongwen.indexOf('分') > -1">
105
+                      {{ zhongwen.substring(zhongwen.indexOf('分') - 1,zhongwen.indexOf('分')) }}
106
+                  </span>
107
+                  <span v-else>零</span>
108
+        </span>
109
+        </span>
110
+        <span style="position: absolute;top:230px;left:450px">¥:{{totalPrice.toFixed(2)}}</span>
111
+      </div>
112
+
113
+      <div style="border-bottom: 1px solid black;position: absolute;top:250px;left:110;width:573px;font-Size:12px">
114
+        <div  style="display:flex;margin: 3px 0px;">
115
+          <div style="width:140px">医保:门慢统筹:{{list.order.hifp_pay}}</div>
116
+          <div style="width:140px">大病保险:{{list.order.hifmi_pay}}</div>
117
+          <div style="width:140px">民政救助: </div>
118
+          <div style="width:140px">兜底支付:</div>
119
+        </div>
120
+        <div style="display:flex;margin-bottom: 3px;">
121
+          <div style="width:140px">个人自付:{{list.order.psn_part_amt}}</div>
122
+          <div style="width:140px">个账支付:{{list.order.acct_pay}}</div>
123
+          <div style="width:140px">个账余额:{{list.order.balc}}</div>
124
+        </div>
96
       </div>
125
       </div>
97
-      <div style="display:flex;justify-content: space-between; margin: 3px 0px;">
98
-        <div style="width:140px">收款单位(盖章)</div>
99
-        <div style="width:140px">收款人:莫莉</div>
126
+      <div style="position: absolute;top:290px;left:110;width:573px;font-Size:12px">
127
+        <div style="display:flex;margin: 3px 0px;">
128
+          <div style="width:140px">现金支付:{{list.order.psn_cash_pay}}</div>
129
+          <div style="width:140px">预存扣减:</div>
130
+          <div style="width:140px">预存余额:</div>
131
+        </div>
132
+        <div style="display:flex;justify-content: space-between; margin: 3px 0px;">
133
+          <div style="width:140px">收款单位(盖章)</div>
134
+          <div style="width:140px">收款人:{{list.admin_user_name}}</div>
135
+        </div>
100
       </div>
136
       </div>
101
     </div>
137
     </div>
102
-
103
   </div>
138
   </div>
104
-</template>
139
+</template>
140
+<script>
141
+import { getInvoice } from '@/api/project/project'
142
+import { uParseTime } from '@/utils/tools'
143
+export default {
144
+  props:{
145
+    paramsObj:Object
146
+  },
147
+  data(){
148
+    return{
149
+      gender:'',
150
+      list:{},
151
+      printDate:'',
152
+      zhongwen:'',
153
+      totalPrice:0.0,
154
+      org_id:'',
155
+      org_name:''
156
+    }
157
+  },
158
+  created(){
159
+    console.log('paramsObj',this.paramsObj)
160
+    let params = {
161
+      order_id: this.paramsObj.order_id,
162
+      patient_id: this.paramsObj.patient_id,
163
+      number: this.paramsObj.number,
164
+    }
165
+    this.getInvoice(params)
166
+    // var data = new Date();
167
+    // var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
168
+    // var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
169
+    // this.printDate = data.getFullYear() + "-" + month + "-" + date;
170
+    // this.smalltoBIG(982732.21)
171
+    this.org_id = this.$store.getters.xt_user.org_id
172
+    this.org_name = this.$store.getters.xt_user.org.org_name
173
+  },
174
+  methods:{
175
+    getInvoice(params){
176
+      getInvoice(params).then((res) => {
177
+        console.log('res',res)
178
+        this.list = res.data.data
179
+        this.totalPrice = this.list.westernMedicineCostTotal + this.list.checkCostTotal + this.list.treatCostTotal + this.list.bedCostTotal + this.list.chineseTraditionalMedicineCostTotal +
180
+          this.list.laboratoryCostTotal + this.list.operationCostTotal + this.list.otherCostTotal + this.list.materialCostTotal + this.list.zhenChaCostTotal
181
+        if(this.totalPrice == 0){
182
+
183
+          this.totalPrice = this.list.medfee_sumamt
184
+        }
185
+        console.log( "this.totalPrice")
186
+
187
+        this.smalltoBIG(this.totalPrice.toFixed(2))
188
+        var data = new Date(res.data.data.date * 1000);
189
+        var month =data.getMonth() < 9 ? "0" + (data.getMonth() + 1) : data.getMonth() + 1;
190
+        var date = data.getDate() <= 9 ? "0" + data.getDate() : data.getDate();
191
+        this.printDate = data.getFullYear() + "-" + month + "-" + date;
192
+        this.gender = this.list.gender
193
+      })
194
+    },
195
+    smalltoBIG(n) {
196
+      // let fraction = ['角', '分'];
197
+      // let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
198
+      // let unit = [['元.', '万,', '亿,'], ["元",'拾', '佰', '仟']];
199
+      // let head = price < 0 ? '欠' : '';
200
+      // price = Math.abs(price);
201
+      // let upper = '';
202
+      // for (let i = 0; i < fraction.length; i++) {
203
+      // upper += (digit[Math.floor(price * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
204
+      // }
205
+      // upper = upper || '整';
206
+      // price = Math.floor(price);
207
+      // for (let i = 0; i < unit[0].length && price > 0; i++) {
208
+      // let p = '';
209
+      // for (let j = 0; j < unit[1].length && price > 0; j++) {
210
+      //     p = digit[price % 10] + unit[1][j] + p;
211
+      //     price = Math.floor(price / 10);
212
+      // }
213
+      // upper = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + upper;
214
+      // }
215
+      // this.zhongwen = head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整')
216
+      // console.log('6666',head + upper.replace(/(零.)*零圆/, '圆').replace(/(零.)+/g, '零').replace(/^整$/, '零圆整'))
217
+      if (!/^(0|[1-9]\d*)(\.\d+)?$/.test(n)){
218
+        return "数据非法";  //判断数据是否大于0
219
+      }
220
+
221
+      var unit = "仟佰拾亿仟佰拾万仟佰拾元角分", str = "";
222
+      n += "00";
223
+
224
+      var indexpoint = n.indexOf('.');  // 如果是小数,截取小数点前面的位数
225
+
226
+      if (indexpoint >= 0){
227
+
228
+        n = n.substring(0, indexpoint) + n.substr(indexpoint+1, 2);   // 若为小数,截取需要使用的unit单位
229
+      }
230
+
231
+      unit = unit.substr(unit.length - n.length);  // 若为整数,截取需要使用的unit单位
232
+      for (var i=0; i < n.length; i++){
233
+        str += "零壹贰叁肆伍陆柒捌玖".charAt(n.charAt(i)) + unit.charAt(i);  //遍历转化为大写的数字
234
+      }
235
+
236
+      this.zhongwen =  str.replace(/零(仟|佰|拾|角)/g, "零").replace(/(零)+/g, "零").replace(/零(万|亿|元)/g, "$1").replace(/(亿)万|壹(拾)/g, "$1$2").replace(/^元零?|零分/g, "").replace(/元$/g, "元整");
237
+      console.log(this.zhongwen)
238
+    },
239
+    getTime(value, temp) {
240
+      if (value == 0) {
241
+        return ''
242
+      }
243
+      if (value != undefined) {
244
+        return uParseTime(value, temp)
245
+      }
246
+      return ''
247
+    },
248
+  },
249
+  watch:{
250
+    paramsObj:{//深度监听,可监听到对象、数组的变化
251
+      handler(val, oldVal){
252
+        let params = {
253
+          order_id: val.order_id,
254
+          patient_id: val.patient_id,
255
+          number: val.number,
256
+        }
257
+        this.getInvoice(params)
258
+
259
+      },
260
+      deep:true
261
+    }
262
+  }
263
+}
264
+</script>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue View File

3
     <div class="dialysisPage" style="padding-top: 40px">
3
     <div class="dialysisPage" style="padding-top: 40px">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
5
 
5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 0" v-bind:childResponse="childResponse" 
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id !=0" v-bind:childResponse="childResponse" 
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
9
         :prescription_id="prescription_id"></printOne>
9
         :prescription_id="prescription_id"></printOne>

+ 63 - 61
src/xt_pages/outpatientDoctorStation/template/prinSeven.vue View File

39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
39
               科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
             </div>
40
             </div>
41
             <div style="margin-bottom: 10px">
41
             <div style="margin-bottom: 10px">
42
-              医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
42
+              <!-- 医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }} -->
43
+              费别:居民医保/职工医保/自费
43
             </div>
44
             </div>
44
             <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
             <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
-              电话:{{ item.patient.phone }}
46
+              <!-- 电话:{{ item.patient.phone }} -->
47
+              开方日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
46
             </div>
48
             </div>
47
             <div style="margin-bottom: 10px" v-else>
49
             <div style="margin-bottom: 10px" v-else>
48
               日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
50
               日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
81
                       科室:{{ item.info ? getDepart(item.info.departments) : "" }}
83
                       科室:{{ item.info ? getDepart(item.info.departments) : "" }}
82
                     </div>
84
                     </div>
83
                     <div style="margin-bottom: 10px">
85
                     <div style="margin-bottom: 10px">
84
-                      医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
86
+                      <!-- 医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }} -->
87
+                      费别:居民医保/职工医保/自费
85
                     </div>
88
                     </div>
86
                     <div style="margin-bottom: 10px" v-if="org_id != 10188">
89
                     <div style="margin-bottom: 10px" v-if="org_id != 10188">
87
-                      电话:{{ item.patient.phone }}
90
+                      <!-- 电话:{{ item.patient.phone }} -->
91
+                      开方日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
88
                     </div>
92
                     </div>
89
                     <div style="margin-bottom: 10px" v-else>
93
                     <div style="margin-bottom: 10px" v-else>
90
                       日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
94
                       日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
117
                         </span>&nbsp;
121
                         </span>&nbsp;
118
                       </div>
122
                       </div>
119
                       <div style="display: inline-block;position: absolute;left:87%;top:20px;margin-left: 10px;">
123
                       <div style="display: inline-block;position: absolute;left:87%;top:20px;margin-left: 10px;">
120
-                        &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
124
+                        &nbsp;共{{ arr[0][0].single_dose }}{{ arr[0][0].single_dose_unit }}
121
                       </div>
125
                       </div>
122
                     </template>
126
                     </template>
123
                   </div>
127
                   </div>
124
                   
128
                   
125
                   <div style="margin-left: 70px">
129
                   <div style="margin-left: 70px">
126
-                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
130
+                    用法:
131
+                    <span v-if="(arr.length>0 && arr[0][0].groupno!=it.groupno)||arr.length<0">{{ it.single_dose }}{{ it.single_dose_unit }}</span
127
                     >&nbsp;&nbsp;<span
132
                     >&nbsp;&nbsp;<span
128
                       >{{ it.execution_frequency }}&nbsp;{{
133
                       >{{ it.execution_frequency }}&nbsp;{{
129
                         it.delivery_way
134
                         it.delivery_way
131
                   </div>
136
                   </div>
132
                   
137
                   
133
                 </div>
138
                 </div>
134
-                <div style="display: inline-block;position: absolute;left:80%;top:10px;margin-left: 10px;">
139
+                <div style="display: inline-block;position: absolute;left:80%;bottom:0px;margin-left: 10px;" v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
135
                   ×&nbsp;{{ it.prescribing_number}}
140
                   ×&nbsp;{{ it.prescribing_number}}
136
                 </div>
141
                 </div>
137
-                <div style="display: inline-block;position: absolute;left:87%;top:0px;margin-left: 10px;">
138
-                  &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }}
142
+                <div style="display: inline-block;position: absolute;left:87%;top:0px;margin-left: 10px;" v-if="arr.length>0 && arr[0][0].groupno==it.groupno">
143
+                  <!-- &nbsp;共{{ it.prescribing_number}}{{ it.prescribing_number_unit }} -->
144
+                  &nbsp;共{{ it.single_dose }}{{ it.single_dose_unit }}
139
                 </div>
145
                 </div>
140
               </div>
146
               </div>
141
               <template v-if="index==yi&&item.advices.length>5">
147
               <template v-if="index==yi&&item.advices.length>5">
142
                 <div style="margin: 20px 0px;">
148
                 <div style="margin: 20px 0px;">
143
-                  <div class="doctorBox" >
144
-                    <p >
145
-                      医师:
146
-                      <span
147
-                        style="width: 100px; display: inline-block"
148
-                        v-if="item.creator == ''"
149
-                      >
150
-                        {{ item.doctor }}
151
-                      </span>
152
-                      <span
153
-                        style="width: 100px; display: inline-block"
154
-                        v-else-if="doc_name != ''"
155
-                      >
156
-                        {{ doc_name }}
157
-                      </span>
158
-                      <img
159
-                        style="height: 50px;"
160
-                        :src="setAdminUserES(item.creator,item.doctor)"
161
-                        alt=""
162
-                        srcset=""
163
-
164
-                      />
165
-                    </p>
166
-                    <p >
167
-                      医师: {{ item.doctor ? item.doctor : "" }}
168
-                    </p>
169
-                    <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
149
+                  <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
150
+                    <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
170
                   </div>
151
                   </div>
171
 
152
 
172
                   <div class="actionBar" >
153
                   <div class="actionBar" >
173
-                    <p >审核、调配:</p>
174
-                    <p >核对、发药:</p>
175
-                    <p >
176
-                      药费:{{
154
+                    <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
155
+                          <p>配对:</p>
156
+                          <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
157
+                          <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
158
+                          <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
159
+
160
+                    <p>审核:</p>
161
+                    <p>配对:</p>
162
+                    <p>核对:</p>
163
+                    <p>发药:</p>
164
+                    <p>
165
+                      金额:{{
177
                         getTotalOne(item.id).toFixed(2)
166
                         getTotalOne(item.id).toFixed(2)
178
                           ? getTotalOne(item.id).toFixed(2)
167
                           ? getTotalOne(item.id).toFixed(2)
179
                           : 0
168
                           : 0
180
                       }}元
169
                       }}元
181
                     </p>
170
                     </p>
182
-                    <!--            <p>药费:551.2元</p>-->
183
-                    <!--            <p>药费:466.2元</p>-->
171
+                    
172
+                  </div>
173
+                  <div class="actionBar" style="margin-bottom: 10px;">
174
+                    <p style="width:300px;">大额处方患者意见: 
175
+                      <el-radio v-model="radio" label="1">同意</el-radio>
176
+                      <el-radio v-model="radio" label="2">不同意</el-radio>
177
+                    </p>
178
+                    <p>收费员:</p>
179
+                  </div>
180
+                  <div style="padding: 0px 10px;">
181
+                    <p >患者签名:</p>
184
                   </div>
182
                   </div>
185
                 </div>
183
                 </div>
186
               </template>
184
               </template>
235
             <div style="text-align: center">(以下空白)</div>
233
             <div style="text-align: center">(以下空白)</div>
236
           </div>
234
           </div>
237
         
235
         
238
-          <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
236
+          <!-- <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
239
             <p v-if="org_id == 10217 || org_id == 0">
237
             <p v-if="org_id == 10217 || org_id == 0">
240
               医师:
238
               医师:
241
               <span
239
               <span
262
               医师: {{ item.doctor ? item.doctor : "" }}
260
               医师: {{ item.doctor ? item.doctor : "" }}
263
             </p>
261
             </p>
264
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
262
             <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
265
-          </div>
266
-
267
-          <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
268
-            <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
269
-          </div>
270
-          <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
271
-            <p >审核、调配:</p>
272
-            <p >核对、发药:</p>
273
-            <p style="margin-right: 43px">药师:</p>
274
           </div> -->
263
           </div> -->
264
+          <div  style="border-bottom: 2px solid #000; width: 100%;margin-right: 30px;padding: 0 10px;line-height: 24px;" >
265
+            <p style="text-align: right;">医师:{{ item.doctor ? item.doctor : "" }}</p>
266
+          </div>
275
 
267
 
276
-          <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
268
+          <div class="actionBar" >
277
             <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
269
             <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
278
                   <p>配对:</p>
270
                   <p>配对:</p>
279
                   <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
271
                   <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
285
             <p>核对:</p>
277
             <p>核对:</p>
286
             <p>发药:</p>
278
             <p>发药:</p>
287
             <p>
279
             <p>
288
-              药费:{{
280
+              金额:{{
289
                 getTotalOne(item.id).toFixed(2)
281
                 getTotalOne(item.id).toFixed(2)
290
                   ? getTotalOne(item.id).toFixed(2)
282
                   ? getTotalOne(item.id).toFixed(2)
291
                   : 0
283
                   : 0
292
               }}元
284
               }}元
293
             </p>
285
             </p>
294
-            <!--            <p>药费:466.2元</p>-->
286
+            
287
+          </div>
288
+          <div class="actionBar" style="margin-bottom: 10px;">
289
+            <p style="width:300px;">大额处方患者意见: 
290
+              <el-radio v-model="radio" label="1">同意</el-radio>
291
+              <el-radio v-model="radio" label="2">不同意</el-radio>
292
+            </p>
293
+            <p>收费员:</p>
295
           </div>
294
           </div>
296
-          <div class="actionBar" v-else>
295
+          <div style="padding: 0px 10px;">
296
+            <p >患者签名:</p>
297
+          </div>
298
+
299
+          <!-- <div class="actionBar" v-else>
297
             <p >审核、调配:</p>
300
             <p >审核、调配:</p>
298
             <p >核对、发药:</p>
301
             <p >核对、发药:</p>
299
             <p >
302
             <p >
303
                   : 0
306
                   : 0
304
               }}元
307
               }}元
305
             </p>
308
             </p>
306
-            <!--            <p>药费:551.2元</p>-->
307
-            <!--            <p>药费:466.2元</p>-->
308
-          </div>
309
+           
310
+          </div> -->
309
         <!-- </div> -->
311
         <!-- </div> -->
310
       </div>
312
       </div>
311
     </div>
313
     </div>
332
       doctorList: [],
334
       doctorList: [],
333
       advicePrint: {},
335
       advicePrint: {},
334
       yi:4,
336
       yi:4,
337
+      radio:'',
335
       arr:[],
338
       arr:[],
336
-      arrs:{},
337
       advicess:[],
339
       advicess:[],
338
       page:sessionStorage.getItem('dayin'),
340
       page:sessionStorage.getItem('dayin'),
339
       patient: {},
341
       patient: {},
654
 }
656
 }
655
 .infoTitle {
657
 .infoTitle {
656
   display: flex;
658
   display: flex;
657
-  border-bottom: 2px solid #000;
659
+  border-top: 2px solid #000;
658
   margin-top: 10px;
660
   margin-top: 10px;
659
   line-height: 24px;
661
   line-height: 24px;
660
   padding: 0 10px;
662
   padding: 0 10px;

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

37
                 <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
37
                 <div style="width:100%;">诊断:{{getDiagnosis(item.info.diagnosis)}}</div>
38
             </div>
38
             </div>
39
 
39
 
40
-            <div class="prescriptionBox">
40
+            <div class="prescriptionBox" style="min-height: 425px;">
41
                 <table style="width:100%;text-align:center;line-height:25px;">
41
                 <table style="width:100%;text-align:center;line-height:25px;">
42
                     <tr>
42
                     <tr>
43
                         <td>序号</td>
43
                         <td>序号</td>
495
 
495
 
496
     .prescriptionBox {
496
     .prescriptionBox {
497
         padding: 0 10px;
497
         padding: 0 10px;
498
-        min-height: 600px;
498
+        
499
     }
499
     }
500
 
500
 
501
     .Rp {
501
     .Rp {

+ 17 - 20
src/xt_pages/workforce/scheduleTablePrint.vue View File

175
         </table>
175
         </table>
176
 
176
 
177
          <!-- 选择天数打印 -->
177
          <!-- 选择天数打印 -->
178
-        <table 
179
-            v-if="$route.query.week_date !=''" 
180
-            id="scheduleTable" class="scheduleTable" 
178
+        <table
179
+            v-if="$route.query.week_date !=''"
180
+            id="scheduleTable" class="scheduleTable"
181
             border="1" cellspacing="0"
181
             border="1" cellspacing="0"
182
             style="margin: auto; font-size: 18px;"
182
             style="margin: auto; font-size: 18px;"
183
         >
183
         >
219
                         <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
219
                         <span v-if="item.Mon_N.mode_name != 'HD'">{{ item.Mon_N.mode_name }}</span>
220
                     </span>
220
                     </span>
221
                 </td>
221
                 </td>
222
-                <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
223
-                    <p v-if="item.Tue_M.patient_id">
222
+                <td style="min-width:180px;padding: auto;" v-if="$route.query.week_date =='周二'">
223
+                    <p v-if="item.Tue_M.patient_id" style="padding: auto;margin: auto;">
224
                         <span>{{ item.Tue_M.patient }}</span>
224
                         <span>{{ item.Tue_M.patient }}</span>
225
                         <span v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
225
                         <span v-if="item.Tue_M.mode_name != 'HD'">{{ item.Tue_M.mode_name }}</span>
226
                     </p>
226
                     </p>
227
                 </td>
227
                 </td>
228
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
228
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
229
                     <span v-if="item.Tue_A.patient_id ">
229
                     <span v-if="item.Tue_A.patient_id ">
230
-                        
231
                         <span>{{ item.Tue_A.patient }}</span>
230
                         <span>{{ item.Tue_A.patient }}</span>
232
                         <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
231
                         <span v-if="item.Tue_A.mode_name != 'HD'">{{ item.Tue_A.mode_name }}</span>
233
                     </span>
232
                     </span>
234
                 </td>
233
                 </td>
235
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
234
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周二'">
236
                     <span v-if="item.Tue_N.patient_id ">
235
                     <span v-if="item.Tue_N.patient_id ">
237
-                        
238
                         <span>{{ item.Tue_N.patient }}</span>
236
                         <span>{{ item.Tue_N.patient }}</span>
239
                         <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
237
                         <span v-if="item.Tue_N.mode_name != 'HD'">{{ item.Tue_N.mode_name }}</span>
240
                     </span>
238
                     </span>
241
                 </td>
239
                 </td>
242
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
240
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周三'">
243
                     <span v-if="item.Wed_M.patient_id ">
241
                     <span v-if="item.Wed_M.patient_id ">
244
-                        
245
                         <span>{{ item.Wed_M.patient }}</span>
242
                         <span>{{ item.Wed_M.patient }}</span>
246
                         <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
243
                         <span v-if="item.Wed_M.mode_name != 'HD'">{{ item.Wed_M.mode_name }}</span>
247
                     </span>
244
                     </span>
259
                     </span>
256
                     </span>
260
                 </td>
257
                 </td>
261
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
258
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
262
-                    <span v-if="item.Thurs_M.patient_id ">     
259
+                    <span v-if="item.Thurs_M.patient_id ">
263
                         <span>{{ item.Thurs_M.patient }}</span>
260
                         <span>{{ item.Thurs_M.patient }}</span>
264
                         <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
261
                         <span v-if="item.Thurs_M.mode_name != 'HD'">{{ item.Thurs_M.mode_name }}</span>
265
                     </span>
262
                     </span>
266
                 </td>
263
                 </td>
267
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
264
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
268
-                    <span v-if="item.Thurs_A.patient_id ">                   
265
+                    <span v-if="item.Thurs_A.patient_id ">
269
                         <span>{{ item.Thurs_A.patient }}</span>
266
                         <span>{{ item.Thurs_A.patient }}</span>
270
                         <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
267
                         <span v-if="item.Thurs_A.mode_name != 'HD'">{{ item.Thurs_A.mode_name }}</span>
271
                     </span>
268
                     </span>
272
                 </td>
269
                 </td>
273
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
270
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周四'">
274
-                    <span v-if="item.Thurs_N.patient_id ">           
271
+                    <span v-if="item.Thurs_N.patient_id ">
275
                         <span>{{ item.Thurs_N.patient }}</span>
272
                         <span>{{ item.Thurs_N.patient }}</span>
276
                         <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
273
                         <span v-if="item.Thurs_N.mode_name != 'HD'">{{ item.Thurs_N.mode_name }}</span>
277
                     </span>
274
                     </span>
278
                 </td>
275
                 </td>
279
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
276
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
280
-                    <span v-if="item.Fri_M.patient_id">                  
277
+                    <span v-if="item.Fri_M.patient_id">
281
                         <span>{{ item.Fri_M.patient }}</span>
278
                         <span>{{ item.Fri_M.patient }}</span>
282
                         <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
279
                         <span v-if="item.Fri_M.mode_name != 'HD'">{{ item.Fri_M.mode_name }}</span>
283
                     </span>
280
                     </span>
284
                 </td>
281
                 </td>
285
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
282
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
286
-                    <span v-if="item.Fri_A.patient_id ">                     
283
+                    <span v-if="item.Fri_A.patient_id ">
287
                         <span>{{ item.Fri_A.patient }}</span>
284
                         <span>{{ item.Fri_A.patient }}</span>
288
                         <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
285
                         <span v-if="item.Fri_A.mode_name != 'HD'">{{ item.Fri_A.mode_name }}</span>
289
                     </span>
286
                     </span>
290
                 </td>
287
                 </td>
291
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
288
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周五'">
292
-                    <span v-if="item.Fri_N.patient_id ">                      
289
+                    <span v-if="item.Fri_N.patient_id ">
293
                         <span>{{ item.Fri_N.patient }}</span>
290
                         <span>{{ item.Fri_N.patient }}</span>
294
                         <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
291
                         <span v-if="item.Fri_N.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
295
                     </span>
292
                     </span>
296
                 </td>
293
                 </td>
297
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
294
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
298
-                    <span v-if="item.Sat_M.patient_id ">                      
295
+                    <span v-if="item.Sat_M.patient_id ">
299
                         <span>{{ item.Sat_M.patient }}</span>
296
                         <span>{{ item.Sat_M.patient }}</span>
300
                         <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
297
                         <span v-if="item.Sat_M.mode_name != 'HD'">{{ item.Sat_M.mode_name }}</span>
301
                     </span>
298
                     </span>
302
                 </td>
299
                 </td>
303
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
300
                 <td style="min-width:180px;" v-if="$route.query.week_date =='周六'">
304
-                    <span v-if="item.Sat_A.patient_id ">                       
301
+                    <span v-if="item.Sat_A.patient_id ">
305
                         <span>{{ item.Sat_A.patient }}</span>
302
                         <span>{{ item.Sat_A.patient }}</span>
306
                         <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
303
                         <span v-if="item.Sat_A.mode_name != 'HD'">{{ item.Sat_A.mode_name }}</span>
307
                     </span>
304
                     </span>
1011
             return [weekArr[week], typeArr[schedule_type]];
1008
             return [weekArr[week], typeArr[schedule_type]];
1012
         },
1009
         },
1013
         printAction: function() {
1010
         printAction: function() {
1014
-            const style = '@media print {#scheduleTable{font-size:18px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
1015
-
1011
+            // const style = '@media print {#scheduleTable{font-size:18px;} .scheduleTable tr td{text-align: center;padding: 5px;}}'
1012
+            const style = '@media print {#scheduleTable{font-size:18px;} .scheduleTable tr td{text-align: center;}}'
1016
             printJS({
1013
             printJS({
1017
             printable: 'scheduleTable',
1014
             printable: 'scheduleTable',
1018
             type: 'html',
1015
             type: 'html',
1074
 </script>
1071
 </script>
1075
 
1072
 
1076
 
1073
 
1077
-<style lang="scss">
1074
+<style lang="scss" scoped>
1078
 td{
1075
 td{
1079
     text-align: center;
1076
     text-align: center;
1080
-    padding: 5px;
1077
+    // padding: 5px;
1081
 }
1078
 }
1082
 </style>
1079
 </style>