Procházet zdrojové kódy

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

28169 před 1 rokem
rodič
revize
a5f539b86a

+ 2 - 2
src/xt_pages/hospitalStation/invoicePrint.vue Zobrazit soubor

24
           :paramsObj="invoiceParams"
24
           :paramsObj="invoiceParams"
25
         ></printOne>
25
         ></printOne>
26
         <printTwo
26
         <printTwo
27
-          v-if="org_id == 10215||org_id == 0"
27
+          v-if="org_id == 10215"
28
           :paramsObj="invoiceParams"
28
           :paramsObj="invoiceParams"
29
         ></printTwo>
29
         ></printTwo>
30
         <printThree
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
           :paramsObj="invoiceParams"
32
           :paramsObj="invoiceParams"
33
         ></printThree>
33
         ></printThree>
34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->
34
 <!--        <print-night v-if="org_id == 10210 || org_id == 0"-->

+ 15 - 7
src/xt_pages/hospitalStation/invoiceTemplate/printThree.vue Zobrazit soubor

230
 
230
 
231
 <script>
231
 <script>
232
 import { getInvoice } from '@/api/project/project'
232
 import { getInvoice } from '@/api/project/project'
233
+import {jsGetAge, uParseTime} from "@/utils/tools";
234
+
233
 export default {
235
 export default {
234
     props:{
236
     props:{
235
         paramsObj:Object
237
         paramsObj:Object
266
         this.org_name = this.$store.getters.xt_user.org.org_name
268
         this.org_name = this.$store.getters.xt_user.org.org_name
267
     },
269
     },
268
     methods:{
270
     methods:{
271
+      getTime(value, temp) {
272
+        if (value != undefined) {
273
+          return uParseTime(value, temp);
274
+        }
275
+        return "";
276
+      },
269
       getDay(dateString1,dateString2){
277
       getDay(dateString1,dateString2){
270
         var  startDate = Date.parse(dateString1);
278
         var  startDate = Date.parse(dateString1);
271
         var  endDate = Date.parse(dateString2);
279
         var  endDate = Date.parse(dateString2);
296
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
304
                 this.printDate = data.getFullYear() + "-" + month + "-" + date;
297
 
305
 
298
               if(this.list.his.id > 0){
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
               }else{
309
               }else{
302
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
310
                 this.in_hosptial_time = this.list.his_hospital_record.in_hosptial_time.split(' ')[0]
303
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
311
                 this.out_hosptial_time = this.list.his_hospital_record.out_hosptial_time.split(' ')[0]
304
               }
312
               }
305
               this.insutype = this.list.order.insutype
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
               this.pre_pay_money = this.list.pre_pay_money
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
         smalltoBIG(n) {
323
         smalltoBIG(n) {

+ 12 - 10
src/xt_pages/outpatientCharges/invoiceTemplate/printTen.vue Zobrazit soubor

1
 <template>
1
 <template>
2
   <div id='invoice-print' style="position: relative;">
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
       <div style="display: flex;width: 575px;margin-bottom: 5px; position: relative;left: 506px;">
4
       <div style="display: flex;width: 575px;margin-bottom: 5px; position: relative;left: 506px;">
5
         {{printDate}}
5
         {{printDate}}
6
       </div>
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
           <div >
9
           <div >
10
             <span>姓名:{{paramsObj.name}}</span>
10
             <span>姓名:{{paramsObj.name}}</span>
11
             <span style="margin-left: 60px;">性别:</span>
11
             <span style="margin-left: 60px;">性别:</span>
16
             <span style="margin-right: 60px;">NO:</span>
16
             <span style="margin-right: 60px;">NO:</span>
17
           </div>
17
           </div>
18
         </div>
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
           <div>项目</div>
20
           <div>项目</div>
21
           <div>金额</div>
21
           <div>金额</div>
22
           <div>项目</div>
22
           <div>项目</div>
24
           <div>项目</div>
24
           <div>项目</div>
25
           <div>金额</div>
25
           <div>金额</div>
26
         </div>
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
           <div style="display:flex;justify-content: space-around;">
28
           <div style="display:flex;justify-content: space-around;">
29
             
29
             
30
             <div style="">西药费</div>
30
             <div style="">西药费</div>
31
             <div style="">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
31
             <div style="">{{ list.westernMedicineCostTotal ? list.westernMedicineCostTotal.toFixed(2) : '' }}</div>
32
             <div style="">检查费</div>
32
             <div style="">检查费</div>
33
             <div style="">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
33
             <div style="">{{ list.checkCostTotal ? list.checkCostTotal.toFixed(2) : '' }}</div>
34
-            <div style="">治疗费</div>
34
+            <div style="position: relative;left: 16px">治疗费</div>
35
             <div style="position:  relative;left: 16px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
35
             <div style="position:  relative;left: 16px;">{{ list.treatCostTotal ? list.treatCostTotal.toFixed(2) : '' }}</div>
36
           </div>
36
           </div>
37
 
37
 
61
             <div style="position:  relative;left: -169px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
61
             <div style="position:  relative;left: -169px;">{{ list.materialCostTotal ? list.materialCostTotal.toFixed(2) : '' }}</div>
62
           </div>
62
           </div>
63
         </div>
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
             <span>合计(大写):</span>
67
             <span>合计(大写):</span>
68
             <span  style="">
68
             <span  style="">
69
               <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
69
               <span v-if="zhongwen.indexOf('万') > -1 && zhongwen.indexOf('拾') > -1 && zhongwen.indexOf('拾') == 1">
121
           </div>
121
           </div>
122
           <span style="position: relative;top:0px;left:0px">¥:{{totalPrice.toFixed(2)}}</span>
122
           <span style="position: relative;top:0px;left:0px">¥:{{totalPrice.toFixed(2)}}</span>
123
         </div>
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
       <div style="border-bottom: 1px solid black;width:573px;font-Size:12px">
127
       <div style="border-bottom: 1px solid black;width:573px;font-Size:12px">
126
         <div  style="display:flex;margin: 3px 0px;">
128
         <div  style="display:flex;margin: 3px 0px;">
127
           <div style="width:140px">医保:门慢统筹:{{list.order.hifp_pay}}</div>
129
           <div style="width:140px">医保:门慢统筹:{{list.order.hifp_pay}}</div>
146
           <div style="width:140px">收款人:{{list.admin_user_name}}</div>
148
           <div style="width:140px">收款人:{{list.admin_user_name}}</div>
147
         </div>
149
         </div>
148
       </div>
150
       </div>
149
-   
151
+      
150
   </div>
152
   </div>
151
 </template>
153
 </template>
152
 <script>
154
 <script>

+ 0 - 2
src/xt_pages/outpatientDoctorStation/print.vue Zobrazit soubor

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>
10
 
10
 
11
-
12
         <print-ten-one
11
         <print-ten-one
13
           v-if="org_id == 10188" v-bind:childResponse="childResponse"
12
           v-if="org_id == 10188" v-bind:childResponse="childResponse"
14
           :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
13
           :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
16
           :prescription_id="prescription_id"
15
           :prescription_id="prescription_id"
17
         ></print-ten-one>
16
         ></print-ten-one>
18
 
17
 
19
-
20
         <prinSeven v-if="org_id == 10375"
18
         <prinSeven v-if="org_id == 10375"
21
           v-bind:childResponse="childResponse"
19
           v-bind:childResponse="childResponse"
22
           :advicePrint="advicePrint"
20
           :advicePrint="advicePrint"

+ 0 - 9
src/xt_pages/outpatientDoctorStation/template/printOne.vue Zobrazit soubor

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

+ 2 - 2
src/xt_pages/outpatientDoctorStation/treatPrint.vue Zobrazit soubor

16
         <!-- 此下条为本地开发下页面 -->
16
         <!-- 此下条为本地开发下页面 -->
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> -->
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
         <!-- org_id != 10138 && org_id != 10278 && org_id !=4&& org_id !=0 -->
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
         <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>
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
       </div>
22
       </div>
23
   </div>
23
   </div>