Преглед на файлове

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

28169 преди 2 месеца
родител
ревизия
4fb905881e

+ 18 - 4
src/xt_pages/hospitalStation/summary.vue Целия файл

@@ -477,6 +477,7 @@ export default {
477 477
         { value: 2, label: "自费" },
478 478
       ],
479 479
       shouJuVisible: false,
480
+      org_id:0,
480 481
     };
481 482
   },
482 483
 
@@ -1320,15 +1321,27 @@ export default {
1320 1321
       return uParseTime(time, "{y}-{m}-{d}");
1321 1322
     },
1322 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 1327
           row.patient.id +
1327 1328
           "&number=" +
1328 1329
           row.number +
1329 1330
           "&id=" +
1330 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 1346
     getTime(value, temp) {
1334 1347
       if (value != undefined) {
@@ -1412,6 +1425,7 @@ export default {
1412 1425
     },
1413 1426
   },
1414 1427
   created() {
1428
+    this.org_id = this.$store.getters.xt_user.org.id,
1415 1429
     this.fetchAllAdminUsers();
1416 1430
     this.getDoctorList();
1417 1431
     this.getHisOrderList();

+ 2 - 2
src/xt_pages/outpatientCharges/allListPrint.vue Целия файл

@@ -16,8 +16,8 @@
16 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 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 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 21
       <!--      <list-print-two :list="list" :patient="patient" :order="order" :admin="admin" :hospital="his_hospital"></list-print-two>-->
22 22
     </div>
23 23
   </div>

+ 14 - 12
src/xt_pages/outpatientCharges/listPrint.vue Целия файл

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

+ 9 - 10
src/xt_pages/outpatientCharges/listTemplate/listPrintforu.vue Целия файл

@@ -7,7 +7,7 @@
7 7
             <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8 8
             <div>身份证号:{{patient.id_card_no}}</div>
9 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 11
         </div>
12 12
         <div class="listInfo">
13 13
             <div>结算类型:{{order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
@@ -24,9 +24,10 @@
24 24
         
25 25
         <table class="listTable" style="text-align: center;">
26 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 31
               <td style="width:5%">数量</td>
31 32
               <td style="width:5%">单位</td>
32 33
               <td style="width:8%">单价(元)</td>
@@ -34,12 +35,10 @@
34 35
               <td style="width:8%">自付比例</td>
35 36
             </tr>
36 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 42
                 <td style="width:5%" >
44 43
                   <span v-if="item.code!=undefined">{{item.count}}</span>
45 44
                 </td>

+ 5 - 0
src/xt_pages/outpatientCharges/listTemplate/printTwo10265.vue Целия файл

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