Browse Source

9月10,批量打印处方笺

yq1 1 week ago
parent
commit
94bb772e6d

+ 18 - 4
src/xt_pages/hospitalStation/summary.vue View File

477
         { value: 2, label: "自费" },
477
         { value: 2, label: "自费" },
478
       ],
478
       ],
479
       shouJuVisible: false,
479
       shouJuVisible: false,
480
+      org_id:0,
480
     };
481
     };
481
   },
482
   },
482
 
483
 
1320
       return uParseTime(time, "{y}-{m}-{d}");
1321
       return uParseTime(time, "{y}-{m}-{d}");
1321
     },
1322
     },
1322
     toDetail(row) {
1323
     toDetail(row) {
1323
-      this.$router.push(
1324
-        // "/outpatientCharges/summaryDetail?patient_id=" +
1325
-          "/hospitalCharges/summaryDetail?patient_id=" +
1324
+      // if(this.org_id ==10265 || this.org_id ==0){
1325
+        this.$router.push(
1326
+          "/outpatientCharges/summaryDetail?patient_id=" +
1326
           row.patient.id +
1327
           row.patient.id +
1327
           "&number=" +
1328
           "&number=" +
1328
           row.number +
1329
           row.number +
1329
           "&id=" +
1330
           "&id=" +
1330
           row.id
1331
           row.id
1331
-      );
1332
+        );
1333
+      // }else{
1334
+      //   this.$router.push(
1335
+      //   // "/outpatientCharges/summaryDetail?patient_id=" +
1336
+      //     "/hospitalCharges/summaryDetail?patient_id=" +
1337
+      //     row.patient.id +
1338
+      //     "&number=" +
1339
+      //     row.number +
1340
+      //     "&id=" +
1341
+      //     row.id
1342
+      //   );
1343
+      // }
1344
+      
1332
     },
1345
     },
1333
     getTime(value, temp) {
1346
     getTime(value, temp) {
1334
       if (value != undefined) {
1347
       if (value != undefined) {
1412
     },
1425
     },
1413
   },
1426
   },
1414
   created() {
1427
   created() {
1428
+    this.org_id = this.$store.getters.xt_user.org.id,
1415
     this.fetchAllAdminUsers();
1429
     this.fetchAllAdminUsers();
1416
     this.getDoctorList();
1430
     this.getDoctorList();
1417
     this.getHisOrderList();
1431
     this.getHisOrderList();

+ 2 - 2
src/xt_pages/outpatientCharges/allListPrint.vue View File

16
       <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=10644 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
16
       <printOne  v-if="org_id != 10215  && org_id !=9671&&org_id !=9675&& org_id !=10515 && org_id !=10489 && org_id !=10644 && org_id !=0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printOne>
17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
17
       <summary-print v-if="org_id == 10215|| org_id ==9671 ||org_id ==9675" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></summary-print>
18
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
18
       <printTwo v-if="org_id==10515 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printTwo>
19
-      <printthree  v-if="org_id == 10489" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
20
-      <printFour v-if="org_id == 10644 || org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printFour>
19
+      <printthree  v-if="org_id == 10489 || org_id == 0" :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printthree>
20
+      <printFour v-if="org_id == 10644 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></printFour>
21
       <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
21
       <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
22
     </div>
22
     </div>
23
   </div>
23
   </div>

+ 14 - 12
src/xt_pages/outpatientCharges/listPrint.vue View File

15
 
15
 
16
     <div class='dialysisPage' style="padding-top:40px;">
16
     <div class='dialysisPage' style="padding-top:40px;">
17
       
17
       
18
-      <listPrintforu v-if=" org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id!=9675 && org_id!=10485 && org_id != 10191"
18
+      <listPrintforu v-if=" org_id != 10106&&org_id != 10215&&org_id != 10265 && org_id!=9675 && org_id!=10485 && org_id != 10191 "
19
         :list="list" :patient="patient" :order="order" :admin="admin">
19
         :list="list" :patient="patient" :order="order" :admin="admin">
20
       </listPrintforu>
20
       </listPrintforu>
21
       <printOne v-if="org_id == 10191" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
21
       <printOne v-if="org_id == 10191" :list="list" :patient="patient" :order="order" :admin="admin"></printOne>
23
       <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
23
       <print-three v-if="org_id == 10106 && this.paramsObj.balance_accounts_type == 2" :info="info" :order_infos="order_infos" :p_admin="p_admin" :charge_admin="charge_admin"></print-three>
24
 <!--      <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>-->
24
 <!--      <list-print-two v-if="org_id == 10215 || org_id==9675" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-two>-->
25
      <list-print-three v-if="org_id == 10215 || org_id==9675  || org_id ==10485" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-three>
25
      <list-print-three v-if="org_id == 10215 || org_id==9675  || org_id ==10485" :list="list" :patient="patient" :order="order" :admin="admin"></list-print-three>
26
-      <print-two10265  v-if="org_id == 10265" :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
26
+      <print-two10265  v-if="org_id == 10265 " :list="list" :patient="patient" :order="order" :admin="admin" :hospital_record="hospital_record"></print-two10265>
27
     </div>
27
     </div>
28
   </div>
28
   </div>
29
 </template>
29
 </template>
379
       set10265NewData(details) {
379
       set10265NewData(details) {
380
         let drug_ids = []
380
         let drug_ids = []
381
         let project_ids = []
381
         let project_ids = []
382
-
382
+        console.log('details12121212',details);
383
+        
383
         for (let i = 0; i < details.length; i++) {
384
         for (let i = 0; i < details.length; i++) {
384
           if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
385
           if (details[i].advice && details[i].advice.id > 0 && details[i].advice.prescription && details[i].advice.prescription.type == 1) { //药品
385
             let obj = {
386
             let obj = {
386
               id: details[i].advice.drug_id,
387
               id: details[i].advice.drug_id,
387
               price: details[i].advice.price,
388
               price: details[i].advice.price,
388
               lv: details[i].chrgitm_lv,
389
               lv: details[i].chrgitm_lv,
390
+              selfpay_prop:details[i].selfpay_prop
389
             }
391
             }
390
             drug_ids.push(obj)
392
             drug_ids.push(obj)
391
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
393
           } else if (details[i].project && details[i].project.id > 0 && details[i].project.prescription && details[i].project.prescription.type == 2) { //项目
393
               id: details[i].project.project_id,
395
               id: details[i].project.project_id,
394
               price: details[i].project.price,
396
               price: details[i].project.price,
395
               lv: details[i].chrgitm_lv,
397
               lv: details[i].chrgitm_lv,
396
-
398
+              selfpay_prop:details[i].selfpay_prop
397
             }
399
             }
398
             project_ids.push(obj)
400
             project_ids.push(obj)
399
 
401
 
402
         }
404
         }
403
         //
405
         //
404
         // console.log('old ids')
406
         // console.log('old ids')
405
-        // console.log(drug_ids)
406
-        // console.log(project_ids)
407
+        console.log('drug_ids',drug_ids)
408
+        console.log('project_ids',project_ids)
407
         // console.log('old ids')
409
         // console.log('old ids')
408
-
409
         let new_drug_ids = this.unique10265(drug_ids)
410
         let new_drug_ids = this.unique10265(drug_ids)
410
         let new_project_ids = this.unique10265(project_ids)
411
         let new_project_ids = this.unique10265(project_ids)
411
         let list = []
412
         let list = []
412
 
413
 
413
-        console.log('ids')
414
-        console.log(new_drug_ids)
415
-        console.log(new_project_ids)
416
-        console.log('ids')
414
+        // console.log('ids')
415
+        console.log('new_drug_ids',new_drug_ids)
416
+        console.log('new_project_ids',new_project_ids)
417
+        // console.log('ids')
417
 
418
 
418
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
419
         if (new_drug_ids.length > 0 && new_project_ids.length == 0) {
419
           for (let i = 0; i < new_drug_ids.length; i++) {
420
           for (let i = 0; i < new_drug_ids.length; i++) {
429
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
430
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
430
                 obj['price'] = parseFloat(details[a].pric)
431
                 obj['price'] = parseFloat(details[a].pric)
431
                 obj['is_total'] = 2
432
                 obj['is_total'] = 2
433
+                obj['selfpay_prop'] = details[a].selfpay_prop
432
                 count = count + details[a].cnt
434
                 count = count + details[a].cnt
433
               }
435
               }
434
             }
436
             }
459
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
461
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
460
                 obj['price'] = parseFloat(details[a].pric)
462
                 obj['price'] = parseFloat(details[a].pric)
461
                 obj['is_total'] = 2
463
                 obj['is_total'] = 2
462
-
464
+                obj['selfpay_prop'] = details[a].selfpay_prop
463
                 count = count + details[a].cnt
465
                 count = count + details[a].cnt
464
               }
466
               }
465
             }
467
             }

+ 9 - 10
src/xt_pages/outpatientCharges/listTemplate/listPrintforu.vue View File

7
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
7
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8
             <div>身份证号:{{patient.id_card_no}}</div>
8
             <div>身份证号:{{patient.id_card_no}}</div>
9
             <div>年龄:{{patient.age}}  岁</div>
9
             <div>年龄:{{patient.age}}  岁</div>
10
-            <div>开方日期:{{getTimes(order.settle_accounts_date) }}</div>
10
+            <div v-if="org_id!=10489">开方日期:{{getTimes(order.settle_accounts_date) }}</div>
11
         </div>
11
         </div>
12
         <div class="listInfo">
12
         <div class="listInfo">
13
             <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
13
             <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
24
         
24
         
25
         <table class="listTable" style="text-align: center;">
25
         <table class="listTable" style="text-align: center;">
26
             <tr style="border-bottom: 1px solid black;">
26
             <tr style="border-bottom: 1px solid black;">
27
-              <td style="width:25%">医保编码</td>
28
-              <td style="width:25%">项目名称</td>
29
-              <td style="width:15%">规格</td>
27
+              <td style="width:12%" v-if="org_id==10489">开方日期</td>
28
+              <td style="width:20%">医保编码</td>
29
+              <td style="width:20%">项目名称</td>
30
+              <td style="width:13%">规格</td>
30
               <td style="width:5%">数量</td>
31
               <td style="width:5%">数量</td>
31
               <td style="width:5%">单位</td>
32
               <td style="width:5%">单位</td>
32
               <td style="width:8%">单价(元)</td>
33
               <td style="width:8%">单价(元)</td>
34
               <td style="width:8%">自付比例</td>
35
               <td style="width:8%">自付比例</td>
35
             </tr>
36
             </tr>
36
             <tr v-for="(item,index) in list" style="line-height: 30px;">
37
             <tr v-for="(item,index) in list" style="line-height: 30px;">
37
-                <!-- <template v-if="index == (list.length)-1">
38
-                    <tr style="border-bottom: 1px solid black;"></tr>
39
-                </template> -->
40
-                <td style="width:25%">{{item.code}}</td>
41
-                <td style="width:25%">{{item.name}}</td>
42
-                <td style="width:15%">{{item.spec}}</td>
38
+                <td style="width:12%" v-if="org_id==10489">{{getTimes(order.settle_accounts_date) }}</td>
39
+                <td style="width:20%">{{item.code}}</td>
40
+                <td style="width:20%">{{item.name}}</td>
41
+                <td style="width:13%">{{item.spec}}</td>
43
                 <td style="width:5%" >
42
                 <td style="width:5%" >
44
                   <span v-if="item.code!=undefined">{{item.count}}</span>
43
                   <span v-if="item.code!=undefined">{{item.count}}</span>
45
                 </td>
44
                 </td>

+ 5 - 0
src/xt_pages/outpatientCharges/listTemplate/printTwo10265.vue View File

58
                   <TD width="80">单价(元)</TD>
58
                   <TD width="80">单价(元)</TD>
59
                   <TD width="80">数量</TD>
59
                   <TD width="80">数量</TD>
60
                   <TD width="80">金额(元)</TD>
60
                   <TD width="80">金额(元)</TD>
61
+                  <td width="80">自负比例</td>
61
                 </TR>
62
                 </TR>
62
                 <TR v-for="subItem in item.details" :key="subItem">
63
                 <TR v-for="subItem in item.details" :key="subItem">
63
                   <TD style="white-space: nowrap">{{
64
                   <TD style="white-space: nowrap">{{
75
                   <TD>{{
76
                   <TD>{{
76
                     (subItem.price * subItem.count).toFixed(2)
77
                     (subItem.price * subItem.count).toFixed(2)
77
                   }}</TD>
78
                   }}</TD>
79
+                  <td>
80
+                    {{(subItem.selfpay_prop)*100}}
81
+                    <span v-if="subItem.selfpay_prop !=''">%</span>
82
+                  </td>
78
                 </TR>
83
                 </TR>
79
                 <TR>
84
                 <TR>
80
                   <TD style="white-space: nowrap"
85
                   <TD style="white-space: nowrap"