see999 3 年前
父节点
当前提交
d92fd29742

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

543
           >打印</el-button
543
           >打印</el-button
544
         >
544
         >
545
       </template>
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
     </div>
556
     </div>
547
     <div class="app-container" style="min-height:0;">
557
     <div class="app-container" style="min-height:0;">
548
       <!--<div class="order-print-btn"-->
558
       <!--<div class="order-print-btn"-->
813
             v-if="org_template_info.template_id == 38"
823
             v-if="org_template_info.template_id == 38"
814
           >
824
           >
815
           </DialysisPrintOrderThirtyEight>
825
           </DialysisPrintOrderThirtyEight>
826
+          <DialysisPrintOrderThirtyNine
827
+            v-bind:childResponse="childResponse"
828
+            v-if="org_template_info.template_id == 39"
829
+          >
830
+          </DialysisPrintOrderThirtyNine>
816
         </div>
831
         </div>
817
       </el-container>
832
       </el-container>
818
     </div>
833
     </div>
870
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
885
 import DialysisPrintOrderThirtySix from "./template/DialysisPrintOrderThirtySix";
871
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
886
 import DialysisPrintOrderThirtySeven from "./template/DialysisPrintOrderThirtySeven";
872
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
887
 import DialysisPrintOrderThirtyEight from "./template/DialysisPrintOrderThirtyEight";
888
+import DialysisPrintOrderThirtyNine from "./template/DialysisPrintOrderThirtyNine";
873
 export default {
889
 export default {
874
   name: "dialysisPrintOrder",
890
   name: "dialysisPrintOrder",
875
   components: {
891
   components: {
892
+    DialysisPrintOrderThirtyNine,
876
     DialysisPrintOrderThirtyEight,
893
     DialysisPrintOrderThirtyEight,
877
     DialysisPrintOrderThirtySeven,
894
     DialysisPrintOrderThirtySeven,
878
     DialysisPrintOrderThirtySix,
895
     DialysisPrintOrderThirtySix,
1342
           style: style8,
1359
           style: style8,
1343
           scanStyles: false
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
     printThisOnePage() {
1371
     printThisOnePage() {

文件差异内容过多而无法显示
+ 1438 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyNine.vue


+ 8 - 8
src/xt_pages/outpatientCharges/invoiceTemplate/printTwo.vue 查看文件

8
             <!-- <div>{{ list.department_name }}</div> -->
8
             <!-- <div>{{ list.department_name }}</div> -->
9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
9
             <div  style="position: absolute;top:40px;left:300px">{{ list.number }}</div>
10
             <div></div>
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
             </div>
15
             </div>
16
         </div>
16
         </div>
17
         <div style="display:flex;justify-content: space-between;">
17
         <div style="display:flex;justify-content: space-between;">
18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
18
             <div style="position: absolute;top:60px;left:120px;"> {{ paramsObj.name }}</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
19
             <div style="position: absolute;top:60px;left:210px;">√</div>
20
             <!-- <div>{{ list.pay_way }}</div> -->
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
         </div>
23
         </div>
24
         <div style="display:flex;justify-content: space-between;">
24
         <div style="display:flex;justify-content: space-between;">
25
             <!-- <div>{{ paramsObj.gend == 1 ? '男' : '女' }}</div> -->
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
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
27
             <div style="position: absolute;top:90px;left:460px;">{{ list.psn_cash_money }}</div>
28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
28
             <div style="position: absolute;top:90px;left:640px;">门慢结算</div>
29
         </div>
29
         </div>
102
                 <span v-else>零</span>
102
                 <span v-else>零</span>
103
             </span>
103
             </span>
104
             </span>
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
         </div>
106
         </div>
107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
107
         <div style="position: absolute;top:280px;left:460px">现金:{{ list.psn_cash_money }}</div>
108
         <div>
108
         <div>