Bläddra i källkod

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 1 år sedan
förälder
incheckning
a5f539b86a

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue Visa fil

@@ -24,11 +24,11 @@
24 24
           :paramsObj="invoiceParams"
25 25
         ></printOne>
26 26
         <printTwo
27
-          v-if="org_id == 10215||org_id == 0"
27
+          v-if="org_id == 10215"
28 28
           :paramsObj="invoiceParams"
29 29
         ></printTwo>
30 30
         <printThree
31
-          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 "
31
+          v-if="org_id == 10265 || org_id == 4 || org_id == 9675 || org_id == 0"
32 32
           :paramsObj="invoiceParams"
33 33
         ></printThree>
34 34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->

+ 15 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue Visa fil

@@ -230,6 +230,8 @@
230 230
 
231 231
 <script>
232 232
 import { getInvoice } from '@/api/project/project'
233
+import {jsGetAge, uParseTime} from "@/utils/tools";
234
+
233 235
 export default {
234 236
     props:{
235 237
         paramsObj:Object
@@ -266,6 +268,12 @@ export default {
266 268
         this.org_name = this.$store.getters.xt_user.org.org_name
267 269
     },
268 270
     methods:{
271
+      getTime(value, temp) {
272
+        if (value != undefined) {
273
+          return uParseTime(value, temp);
274
+        }
275
+        return "";
276
+      },
269 277
       getDay(dateString1,dateString2){
270 278
         var  startDate = Date.parse(dateString1);
271 279
         var  endDate = Date.parse(dateString2);
@@ -296,20 +304,20 @@ export default {
296 304
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
297 305
 
298 306
               if(this.list.his.id > 0){
299
-                this.in_hosptial_time = this.getTime()
300
-                this.out_hosptial_time = this.list.order.setl_time.split(' ')[0]
307
+                this.in_hosptial_time = this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
308
+                this.out_hosptial_time =  this.getTime(this.list.his.record_date,'{y}-{m}-{d}')
301 309
               }else{
302 310
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303 311
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
304 312
               }
305 313
               this.insutype = this.list.order.insutype
306
-              this.id_card_no = this.list.his_hospital_record.id_card_no
307
-              this.number = this.list.his_hospital_record.number
308
-              this.psn_no = this.list.his_hospital_record.psn_no
314
+              this.id_card_no = this.list.his.id_card_no
315
+              this.number = this.list.his.number
316
+              this.psn_no = this.list.his.psn_no
309 317
               this.pre_pay_money = this.list.pre_pay_money
310 318
 
311
-              this.balance_accounts_type = this.list.his_hospital_record.balance_accounts_type
312
-              this.gend= this.list.his_hospital_record.gend
319
+              this.balance_accounts_type = this.list.his.balance_accounts_type
320
+              this.gend= this.list.his.gend
313 321
             })
314 322
         },
315 323
         smalltoBIG(n) {

+ 12 - 10
src/xt_pages/outpatientCharges/invoiceTemplate/printTen.vue Visa fil

@@ -1,11 +1,11 @@
1 1
 <template>
2 2
   <div id='invoice-print' style="position: relative;">
3
-    
3
+      <div style="text-align: center;width: 573px;font-size: 20px; font-weight: bolder;">灵山盛康收费收据</div>
4 4
       <div style="display: flex;width: 575px;margin-bottom: 5px; position: relative;left: 506px;">
5 5
         {{printDate}}
6 6
       </div>
7
-      
8
-        <div style="display: flex; justify-content: space-between;width: 573px;border: 1px solid black; position: relative;padding: 5px;">
7
+      <div style="border: 1px solid black;width: 573px;">
8
+        <div style="display: flex; justify-content: space-between;width: 573px;border-bottom: 1px solid black; position: relative;padding: 5px;">
9 9
           <div >
10 10
             <span>姓名:{{paramsObj.name}}</span>
11 11
             <span style="margin-left: 60px;">性别:</span>
@@ -16,7 +16,7 @@
16 16
             <span style="margin-right: 60px;">NO:</span>
17 17
           </div>
18 18
         </div>
19
-        <div style="display: flex;justify-content: space-around;width: 573px;  padding: 5px;border-left: 1px solid black;border-right: 1px solid black;border-bottom: 1px solid black;">
19
+        <div style="display: flex;justify-content: space-around;width: 573px;  padding: 5px;border-bottom: 1px solid black;">
20 20
           <div>项目</div>
21 21
           <div>金额</div>
22 22
           <div>项目</div>
@@ -24,14 +24,14 @@
24 24
           <div>项目</div>
25 25
           <div>金额</div>
26 26
         </div>
27
-        <div style="border: 1px solid black; border-top: none; width: 573px;min-height: 220px;">
27
+        <div style=" width: 573px;min-height: 220px;">
28 28
           <div style="display:flex;justify-content: space-around;">
29 29
             
30 30
             <div style="">西药费</div>
31 31
             <div style="">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
32 32
             <div style="">检查费</div>
33 33
             <div style="">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
34
-            <div style="">治疗费</div>
34
+            <div style="position: relative;left: 16px">治疗费</div>
35 35
             <div style="position:  relative;left: 16px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
36 36
           </div>
37 37
 
@@ -61,9 +61,9 @@
61 61
             <div style="position:  relative;left: -169px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
62 62
           </div>
63 63
         </div>
64
-        <div style="border: 1px solid black;border-top:none;padding: 5px;width: 573px;">
64
+        <div style="border-top:1px solid black;width: 573px;">
65 65
           
66
-          <div style="border-right: 1px solid black;display: inline-block;width: 360px;">
66
+          <div style="border-right: 1px solid black;display: inline-block;width: 360px;padding: 5px;">
67 67
             <span>合计(大写):</span>
68 68
             <span  style="">
69 69
               <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
@@ -121,7 +121,9 @@
121 121
           </div>
122 122
           <span style="position: relative;top:0px;left:0px">¥:{{totalPrice.toFixed(2)}}</span>
123 123
         </div>
124
-      
124
+      </div>
125
+      <div style="width: 20px;font-size: 13px;position: absolute;top: 120px;left: -15px;">报销联加盖医院收费章有效</div>
126
+      <div style="width: 20px;font-size: 13px;position: absolute;top: 100px;left: 575px;">白 &nbsp; 存根 &nbsp; 红 &nbsp; 收据 &nbsp; 黄 &nbsp; 记账</div>
125 127
       <div style="border-bottom: 1px solid black;width:573px;font-Size:12px">
126 128
         <div  style="display:flex;margin: 3px 0px;">
127 129
           <div style="width:140px">医保:门慢统筹:{{list.order.hifp_pay}}</div>
@@ -146,7 +148,7 @@
146 148
           <div style="width:140px">收款人:{{list.admin_user_name}}</div>
147 149
         </div>
148 150
       </div>
149
-   
151
+      
150 152
   </div>
151 153
 </template>
152 154
 <script>

+ 0 - 2
src/xt_pages/outpatientDoctorStation/print.vue Visa fil

@@ -8,7 +8,6 @@
8 8
         :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9 9
         :prescription_id="prescription_id"></printOne>
10 10
 
11
-
12 11
         <print-ten-one
13 12
           v-if="org_id == 10188" v-bind:childResponse="childResponse"
14 13
           :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
@@ -16,7 +15,6 @@
16 15
           :prescription_id="prescription_id"
17 16
         ></print-ten-one>
18 17
 
19
-
20 18
         <prinSeven v-if="org_id == 10375"
21 19
           v-bind:childResponse="childResponse"
22 20
           :advicePrint="advicePrint"

+ 0 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue Visa fil

@@ -326,13 +326,6 @@
326 326
 <!--        </div>-->
327 327
 
328 328
 
329
-
330
-
331
-
332
-
333
-
334
-
335
-
336 329
         <div class="doctorBox">
337 330
           <p v-if="org_id == 10217">
338 331
             医师:
@@ -517,8 +510,6 @@ export default{
517 510
               );
518 511
             }
519 512
           }
520
-
521
-          console.log("处方222222", this.prescriptions);
522 513
           var hisPatient = response.data.data.hisPatient;
523 514
           console.log("hisPatient", hisPatient);
524 515
           this.hisPatient = hisPatient;

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue Visa fil

@@ -16,8 +16,8 @@
16 16
         <!-- 此下条为本地开发下页面 -->
17 17
         <!-- <printTwo v-if="org_id == 4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printTwo> -->
18 18
         <!-- org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0 -->
19
-        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
-        <printThree v-if=" org_id == 10375" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
19
+        <printOne v-if="org_id != 10138 && org_id != 10278 && org_id !=4 && org_id != 10375 && org_id != 0 " v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printOne>
20
+        <printThree v-if=" org_id == 10375 || org_id==0" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id"></printThree>
21 21
         <printTwo v-if="org_id == 10138 || org_id == 10278 || org_id ==4" v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
22 22
       </div>
23 23
   </div>