2 Commits f6ee477c39 ... 28ae66d949

Author SHA1 Message Date
  陈少旭 28ae66d949 Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch 1 week ago
  陈少旭 66750a15c2 1111 1 week ago

+ 3 - 4
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -70,13 +70,13 @@
70 70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
71 71
       <!-- 杏康 -->
72 72
       <printSeventheen  :info="info" v-if=" org_id == 10721"></printSeventheen>
73
-      <printeighteen :info="info" v-if=" org_id == 10726 || org_id == 0"></printeighteen>
73
+      <printeighteen :info="info" v-if=" org_id == 10726"></printeighteen>
74 74
       <printOne :info="info" v-if=" org_id != 9990 &&
75 75
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
76 76
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
77 77
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
78 78
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
79
-            org_id != 10510 &&org_id != 10088 && org_id != 10721 &&org_id != 10633 &&org_id != 10731 &&org_id != 0 && org_id != 10726 && this.paramsObj.balance_accounts_type == 1">
79
+            org_id != 10510 &&org_id != 10088 && org_id != 10721 &&org_id != 10633 &&org_id != 10731 && org_id != 10726 && this.paramsObj.balance_accounts_type == 1">
80 80
       </printOne>
81 81
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
82 82
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
@@ -739,7 +739,6 @@ export default {
739 739
     searchAction() {
740 740
     },
741 741
     getInfo(order_id, obj) {
742
-      console.log('obj.balance_accounts_type',obj.balance_accounts_type);
743 742
       if (obj.balance_accounts_type == 2) {
744 743
         let params = {
745 744
           his_patient_id: obj.his_patient_id,
@@ -1860,7 +1859,7 @@ export default {
1860 1859
 
1861 1860
 
1862 1861
 
1863
-          } else if(this.org_id == 10726 || this.org_id == 0){
1862
+          } else if(this.org_id == 10726){
1864 1863
             let params = {
1865 1864
               order_id: obj.order_id,
1866 1865
               admin_user_id: this.$store.getters.xt_user.user.id

+ 39 - 2
src/xt_pages/outpatientTool/components/pdetail.vue View File

@@ -74,6 +74,15 @@
74 74
       <el-table-column align="center" prop="name" label="患者名字" fixed>
75 75
         <template slot-scope="scope">{{ scope.row.name }}</template>
76 76
       </el-table-column>
77
+
78
+      <el-table-column align="center" prop="name" label="就诊ID" fixed>
79
+        <template slot-scope="scope">{{ scope.row.mdtrt_id }}</template>
80
+      </el-table-column>
81
+
82
+      <el-table-column align="center" prop="name" label="开嘱医生" fixed>
83
+        <template slot-scope="scope">{{getName(scope.row.advice_doctor )}}</template>
84
+      </el-table-column>
85
+
77 86
       <el-table-column align="center" prop="name" label="处方日期">
78 87
         <template slot-scope="scope">{{ scope.row.record_date }}</template>
79 88
       </el-table-column>
@@ -141,7 +150,7 @@
141 150
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
142 151
 import { GetPSummaryDetail } from '@/api/his/his'
143 152
 import { getPrescriptionInitdata } from '@/api/his/his_tools'
144
-
153
+import { getAllDoctorList } from "@/api/project/project"
145 154
 import { PostSearch } from '@/api/patient'
146 155
 
147 156
 import { uParseTime } from '@/utils/tools'
@@ -185,11 +194,22 @@ export default {
185 194
       items: [
186 195
         { id: 1, name: '未结算' },
187 196
         { id: 2, name: '已结算' },
188
-      ]
197
+      ],
198
+      doctorList:[]
189 199
 
190 200
     }
191 201
   },
192 202
   methods: {
203
+    getName(user_id){
204
+      var user_name = ''
205
+      for (let i = 0; i < this.doctorList.length; i++) {
206
+        if (user_id == this.doctorList[i].admin_user_id) {
207
+          user_name = this.doctorList[i].user_name
208
+        }
209
+      }
210
+      return user_name
211
+
212
+    },
193 213
     export_detail() {
194 214
 
195 215
       let list = []
@@ -197,6 +217,9 @@ export default {
197 217
         let order = this.tableData[i]
198 218
         let name = order.name
199 219
         let item_name = order.item_name
220
+
221
+
222
+
200 223
         let count = order.count
201 224
         let price = order.price.toFixed(2)
202 225
         let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
@@ -386,6 +409,14 @@ export default {
386 409
           }
387 410
         }
388 411
       }
412
+    },   getAllDoctorList(){
413
+      getAllDoctorList().then(response=>{
414
+        if(response.data.state == 1){
415
+          var doctor =  response.data.data.doctor
416
+
417
+          this.doctorList = doctor
418
+        }
419
+      })
389 420
     },
390 421
     unique(arr) {
391 422
       const res = new Map()
@@ -533,6 +564,9 @@ export default {
533 564
 
534 565
               newObj['order_status'] = orders[c].order_status
535 566
               newObj['setl_time'] = orders[c].setl_time
567
+              newObj['mdtrt_id'] = orders[c].mdtrt_id
568
+              newObj['advice_doctor'] = orders[c].advice_doctor
569
+
536 570
 
537 571
               newObj['med_type'] = orders[c].med_type
538 572
               newObj['record_date'] = orders[c].record_date
@@ -575,6 +609,8 @@ export default {
575 609
               type: tempPatientsTwo[i].order_info[b].type,
576 610
               item_name: tempPatientsTwo[i].order_info[b].item_name,
577 611
               item_id: tempPatientsTwo[i].order_info[b].item_id,
612
+              mdtrt_id: tempPatientsTwo[i].order_info[b].mdtrt_id,
613
+              advice_doctor: tempPatientsTwo[i].order_info[b].advice_doctor,
578 614
               count: tempPatientsTwo[i].order_info[b].count,
579 615
               item_spec: tempPatientsTwo[i].order_info[b].item_spec,
580 616
               order_status: tempPatientsTwo[i].order_info[b].order_status,
@@ -775,6 +811,7 @@ export default {
775 811
   },
776 812
 
777 813
   created() {
814
+    this.getAllDoctorList()
778 815
     this.getInit()
779 816
     this.getSummaryDetailList()
780 817
 

+ 72 - 15
src/xt_pages/outpatientTool/components/settle.vue View File

@@ -89,23 +89,28 @@
89 89
           </template>
90 90
         </el-table-column>
91 91
 
92
-        <el-table-column align="center" prop="item_name" label="参保地">
92
+        <el-table-column align="center" prop="item_name" label="病种名称">
93 93
           <template slot-scope="scope">
94
-            {{scope.row.clr_optins}}
94
+            {{getSickName(scope.row.his.sick_type)}}
95 95
           </template>
96 96
         </el-table-column>
97 97
 
98
-
99
-        <el-table-column align="center" prop="item_name" label="病种名称">
98
+        <el-table-column align="center" prop="item_name" label="参保地">
100 99
           <template slot-scope="scope">
101
-            {{scope.row.sick_name}}
100
+<!--            {{scope.row.clr_optins}}-->
101
+            {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
102
+
102 103
           </template>
103 104
         </el-table-column>
104 105
 
106
+
107
+
108
+
105 109
           <el-table-column align="center" prop="item_name" label="结算类型">
106 110
               <template slot-scope="scope">
107
-                  <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
108
-                  <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
111
+                <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
112
+                <div v-if="scope.row.is_medicine_insurance == 1 ">{{getTypeName(scope.row)}}</div>
113
+
109 114
               </template>
110 115
           </el-table-column>
111 116
           <el-table-column align="center" prop="item_name" label="处方类型">
@@ -272,20 +277,21 @@
272 277
       </el-table-column>
273 278
       <el-table-column align="center" prop="item_name" label="病种名称">
274 279
         <template slot-scope="scope">
275
-          {{scope.row.sick_name}}
280
+          {{getSickName(scope.row.his.sick_type)}}
276 281
         </template>
277 282
       </el-table-column>
278 283
 
279 284
       <el-table-column align="center" prop="item_name" label="参保地">
280 285
         <template slot-scope="scope">
281
-          {{scope.row.clr_optins}}
286
+          {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
282 287
         </template>
283 288
       </el-table-column>
284 289
 
285 290
       <el-table-column align="center" prop="item_name" label="结算类型">
286 291
         <template slot-scope="scope">
287 292
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
288
-          <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
293
+          <div v-if="scope.row.is_medicine_insurance == 1 ">{{getTypeName(scope.row)}}</div>
294
+
289 295
         </template>
290 296
       </el-table-column>
291 297
       <el-table-column align="center" prop="item_name" label="处方类型">
@@ -430,6 +436,8 @@ import { uParseTime } from '@/utils/tools'
430 436
         tempArr: [],
431 437
         sameRowArr: [],
432 438
         tableData: [],
439
+        config:{},
440
+        sick:{},
433 441
         chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
434 442
         item_type: '0',
435 443
         items: [
@@ -481,9 +489,58 @@ import { uParseTime } from '@/utils/tools'
481 489
       unique(arr) {
482 490
         const res = new Map()
483 491
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
492
+      },getSickName(sick_id){
493
+        let name = ""
494
+        for(let i = 0;i < this.sick.length;i++){
495
+          if(sick_id == this.sick[i].id){
496
+            name = this.sick[i].class_name + "(" + this.sick[i].content_code +")"
497
+          }
498
+        }
499
+        return name
500
+      },getTypeName(row){
501
+        let name = ""
502
+        if(row.insutype == '390'){
503
+          // let a =  config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
504
+          let a =  this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
505
+
506
+
507
+          // let aa=  row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
508
+          let b=  row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
509
+          if(a == b){
510
+             name = "本地城乡"
511
+          }else{
512
+            name = "异地城乡"
513
+          }
514
+
515
+        }else if(row.insutype == '310'){
516
+          // let a =  config.mdtrtarea_admvs.slice(0, 4); //就医地前4位编码
517
+          let a = this.config.mdtrtarea_admvs.slice(0, 3); //就医地前3位编码
518
+
519
+
520
+          // let aa=  row.his.insuplc_admdvs.slice(0, 4); //参保地前4位编码
521
+          let b=  row.his.insuplc_admdvs.slice(0, 3); //参保地前3位编码
522
+          if(a == b){
523
+            name = "本地职工"
524
+          }else{
525
+            name = "异地职工"
526
+          }
527
+
528
+        }else{
529
+          name = "其他"
530
+
531
+        }
532
+      return name
533
+      },getName(id){
534
+        var name = ""
535
+        var options =  this.$store.getters.insuplc_admdvs
536
+        for(let i = 0; i < options.length; i++){
537
+          if(id == options[i].value){
538
+            name = options[i].label
539
+          }
540
+        }
541
+        return name
484 542
       },
485 543
       changeDate() {
486
-        // console.log(this.chargeDate)
487 544
         this.getSummarySettleList()
488 545
       },
489 546
       changeItem() {
@@ -514,6 +571,9 @@ import { uParseTime } from '@/utils/tools'
514 571
           } else {
515 572
             this.settle_loading = false
516 573
             this.tableData = []
574
+            this.config = response.data.data.config
575
+            this.sick = response.data.data.sick
576
+
517 577
             let data = response.data.data.patients
518 578
 
519 579
             for (let i = 0; i < data.length; i++) {
@@ -530,7 +590,6 @@ import { uParseTime } from '@/utils/tools'
530 590
 
531 591
               data[i]['total'] = total
532 592
             }
533
-            console.log(data)
534 593
 
535 594
             for (let i = 0; i < data.length; i++) {
536 595
               for (let b = 0; b < data[i].orders.length; b++) {
@@ -548,7 +607,6 @@ import { uParseTime } from '@/utils/tools'
548 607
 
549 608
               }
550 609
             }
551
-            console.log(this.tableData)
552 610
 
553 611
             this.handleSpanTempArr()
554 612
           }
@@ -632,7 +690,6 @@ import { uParseTime } from '@/utils/tools'
632 690
             sums[index] = '合计'
633 691
             return
634 692
           }
635
-          console.log(data)
636 693
           const values = data.map(item => Number(item[column.property]))
637 694
           if (column.property === 'total' || column.property === 'medfee_sumamt'  || column.property === 'fund_pay_sumamt'  || column.property === 'acct_pay'  || column.property === 'maf_pay'  || column.property === 'psn_cash_pay'  || column.property === 'hifp_pay'  || column.property === 'hifob_pay' ||  column.property === 'hifes_pay' || column.property === 'hifmi_pay' || column.property === 'oth_pay' || column.property === 'cvlserv_pay' || column.property === 'wechat_pay' || column.property === 'ali_pay' || column.property === 'band_card_pay' || column.property === 'jifen_pay' || column.property === 'cash_pay') {
638 695
             sums[index] = values.reduce((prev, curr) => {
@@ -652,7 +709,6 @@ import { uParseTime } from '@/utils/tools'
652 709
         return sums
653 710
       },
654 711
       export_detail() {
655
-        console.log("~~~~~~~")
656 712
 
657 713
         let list = []
658 714
         // for (let i = 0; i < this.tableData.length; i++) {
@@ -757,6 +813,7 @@ import { uParseTime } from '@/utils/tools'
757 813
     created() {
758 814
       this.getSummarySettleList()
759 815
 
816
+
760 817
     }
761 818
   }
762 819
 </script>