see999 3 år sedan
förälder
incheckning
d92fd29742

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Visa fil

@@ -543,6 +543,16 @@
543 543
           >打印</el-button
544 544
         >
545 545
       </template>
546
+      <template v-if="org_template_info.template_id == 39">
547
+        <el-button
548
+          :loading="loading"
549
+          size="small"
550
+          icon="el-icon-printer"
551
+          @click="printThisPage"
552
+          type="primary"
553
+          >打印</el-button
554
+        >
555
+      </template>
546 556
     </div>
547 557
     <div class="app-container" style="min-height:0;">
548 558
       <!--<div class="order-print-btn"-->
@@ -813,6 +823,11 @@
813 823
             v-if="org_template_info.template_id == 38"
814 824
           >
815 825
           </DialysisPrintOrderThirtyEight>
826
+          <DialysisPrintOrderThirtyNine
827
+            v-bind:childResponse="childResponse"
828
+            v-if="org_template_info.template_id == 39"
829
+          >
830
+          </DialysisPrintOrderThirtyNine>
816 831
         </div>
817 832
       </el-container>
818 833
     </div>
@@ -870,9 +885,11 @@ import DialysisPrintOrderThirtyFive from "./template/DialysisPrintOrderThirtyFiv
870 885
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
871 886
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
872 887
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888
+import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
873 889
 export default {
874 890
   name: "dialysisPrintOrder",
875 891
   components: {
892
+    DialysisPrintOrderThirtyNine,
876 893
     DialysisPrintOrderThirtyEight,
877 894
     DialysisPrintOrderThirtySeven,
878 895
     DialysisPrintOrderThirtySix,
@@ -1342,6 +1359,13 @@ export default {
1342 1359
           style: style8,
1343 1360
           scanStyles: false
1344 1361
         });
1362
+      } else if (this.org_template_info.template_id == 39) {
1363
+        printJS({
1364
+          printable: "dialysis-print-box",
1365
+          type: "html",
1366
+          style: style3,
1367
+          scanStyles: false
1368
+        });
1345 1369
       }
1346 1370
     },
1347 1371
     printThisOnePage() {

Filskillnaden har hållits tillbaka eftersom den är för stor
+ 1438 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue


+ 8 - 8
src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue Visa fil

@@ -8,22 +8,22 @@
8 8
             <!-- <div>{{ list.department_name }}</div> -->
9 9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
10 10
             <div></div>
11
-            <div  style="position: absolute;left:610px;top:40px;">
12
-                <span>{{ printDate.slice(0,4) }}</span>
13
-                <span>{{ printDate.slice(5,7) }}</span>
14
-                <span>{{ printDate.slice(8,11) }}</span>
11
+            <div>
12
+                <span style="position: absolute;left:590px;top:40px;">{{ printDate.slice(0,4) }}</span>
13
+                <span style="position: absolute;left:630px;top:40px;">{{ printDate.slice(5,7) }}</span>
14
+                <span style="position: absolute;left:660px;top:40px;">{{ printDate.slice(8,11) }}</span>
15 15
             </div>
16 16
         </div>
17 17
         <div style="display:flex;justify-content: space-between;">
18 18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19 19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20 20
             <!-- <div>{{ list.pay_way }}</div> -->
21
-            <!-- <div style="position: absolute;top:70px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
22
-            <div style="position: absolute;top:70px;left:560px;">{{ paramsObj.setl_time.split(' ')[0] }}</div> -->
21
+            <div style="position: absolute;top:60px;left:460px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
22
+            <div style="position: absolute;top:60px;left:640px;">{{ paramsObj.setl_time.split(' ')[0] }}</div>
23 23
         </div>
24 24
         <div style="display:flex;justify-content: space-between;">
25 25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
26
-            <div style="position: absolute;top:90px;left:290px;">{{ totalPrice - list.psn_cash_money }}</div>
26
+            <div style="position: absolute;top:90px;left:290px;">{{ (totalPrice - list.psn_cash_money).toFixed(2) }}</div>
27 27
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
28 28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
29 29
         </div>
@@ -102,7 +102,7 @@
102 102
                 <span v-else>零</span>
103 103
             </span>
104 104
             </span>
105
-            <span style="position: absolute;top:250px;left:610px">{{ totalPrice }}</span>
105
+            <span style="position: absolute;top:250px;left:610px">{{ totalPrice.toFixed(2) }}</span>
106 106
         </div>
107 107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
108 108
         <div>