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
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
70
       <printSixtheen :info="info" v-if="org_id == 10697"></printSixtheen>
71
       <!-- 杏康 -->
71
       <!-- 杏康 -->
72
       <printSeventheen  :info="info" v-if=" org_id == 10721"></printSeventheen>
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
       <printOne :info="info" v-if=" org_id != 9990 &&
74
       <printOne :info="info" v-if=" org_id != 9990 &&
75
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
75
             org_id != 10138 && org_id != 9504 && org_id != 10028 &&
76
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
76
             org_id != 10610 && org_id !=10537 && org_id !=10697 &&
77
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
77
             org_id != 10278 && org_id != 10387 && org_id != 10191 &&
78
             org_id != 10210 &&org_id != 10485 &&org_id != 10480 &&
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
       </printOne>
80
       </printOne>
81
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
81
       <privateChargePrint :info="info" v-if="org_id != 9990 &&
82
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
82
             org_id != 10138 && org_id != 9504 &&  org_id != 10028 && org_id !=10697 &&
739
     searchAction() {
739
     searchAction() {
740
     },
740
     },
741
     getInfo(order_id, obj) {
741
     getInfo(order_id, obj) {
742
-      console.log('obj.balance_accounts_type',obj.balance_accounts_type);
743
       if (obj.balance_accounts_type == 2) {
742
       if (obj.balance_accounts_type == 2) {
744
         let params = {
743
         let params = {
745
           his_patient_id: obj.his_patient_id,
744
           his_patient_id: obj.his_patient_id,
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
             let params = {
1863
             let params = {
1865
               order_id: obj.order_id,
1864
               order_id: obj.order_id,
1866
               admin_user_id: this.$store.getters.xt_user.user.id
1865
               admin_user_id: this.$store.getters.xt_user.user.id

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

74
       <el-table-column align="center" prop="name" label="患者名字" fixed>
74
       <el-table-column align="center" prop="name" label="患者名字" fixed>
75
         <template slot-scope="scope">{{ scope.row.name }}</template>
75
         <template slot-scope="scope">{{ scope.row.name }}</template>
76
       </el-table-column>
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
       <el-table-column align="center" prop="name" label="处方日期">
86
       <el-table-column align="center" prop="name" label="处方日期">
78
         <template slot-scope="scope">{{ scope.row.record_date }}</template>
87
         <template slot-scope="scope">{{ scope.row.record_date }}</template>
79
       </el-table-column>
88
       </el-table-column>
141
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
150
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
142
 import { GetPSummaryDetail } from '@/api/his/his'
151
 import { GetPSummaryDetail } from '@/api/his/his'
143
 import { getPrescriptionInitdata } from '@/api/his/his_tools'
152
 import { getPrescriptionInitdata } from '@/api/his/his_tools'
144
-
153
+import { getAllDoctorList } from "@/api/project/project"
145
 import { PostSearch } from '@/api/patient'
154
 import { PostSearch } from '@/api/patient'
146
 
155
 
147
 import { uParseTime } from '@/utils/tools'
156
 import { uParseTime } from '@/utils/tools'
185
       items: [
194
       items: [
186
         { id: 1, name: '未结算' },
195
         { id: 1, name: '未结算' },
187
         { id: 2, name: '已结算' },
196
         { id: 2, name: '已结算' },
188
-      ]
197
+      ],
198
+      doctorList:[]
189
 
199
 
190
     }
200
     }
191
   },
201
   },
192
   methods: {
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
     export_detail() {
213
     export_detail() {
194
 
214
 
195
       let list = []
215
       let list = []
197
         let order = this.tableData[i]
217
         let order = this.tableData[i]
198
         let name = order.name
218
         let name = order.name
199
         let item_name = order.item_name
219
         let item_name = order.item_name
220
+
221
+
222
+
200
         let count = order.count
223
         let count = order.count
201
         let price = order.price.toFixed(2)
224
         let price = order.price.toFixed(2)
202
         let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
225
         let pay_sumamt = (order.price.toFixed(2) * order.count).toFixed(2)
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
     unique(arr) {
421
     unique(arr) {
391
       const res = new Map()
422
       const res = new Map()
533
 
564
 
534
               newObj['order_status'] = orders[c].order_status
565
               newObj['order_status'] = orders[c].order_status
535
               newObj['setl_time'] = orders[c].setl_time
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
               newObj['med_type'] = orders[c].med_type
571
               newObj['med_type'] = orders[c].med_type
538
               newObj['record_date'] = orders[c].record_date
572
               newObj['record_date'] = orders[c].record_date
575
               type: tempPatientsTwo[i].order_info[b].type,
609
               type: tempPatientsTwo[i].order_info[b].type,
576
               item_name: tempPatientsTwo[i].order_info[b].item_name,
610
               item_name: tempPatientsTwo[i].order_info[b].item_name,
577
               item_id: tempPatientsTwo[i].order_info[b].item_id,
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
               count: tempPatientsTwo[i].order_info[b].count,
614
               count: tempPatientsTwo[i].order_info[b].count,
579
               item_spec: tempPatientsTwo[i].order_info[b].item_spec,
615
               item_spec: tempPatientsTwo[i].order_info[b].item_spec,
580
               order_status: tempPatientsTwo[i].order_info[b].order_status,
616
               order_status: tempPatientsTwo[i].order_info[b].order_status,
775
   },
811
   },
776
 
812
 
777
   created() {
813
   created() {
814
+    this.getAllDoctorList()
778
     this.getInit()
815
     this.getInit()
779
     this.getSummaryDetailList()
816
     this.getSummaryDetailList()
780
 
817
 

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

89
           </template>
89
           </template>
90
         </el-table-column>
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
           <template slot-scope="scope">
93
           <template slot-scope="scope">
94
-            {{scope.row.clr_optins}}
94
+            {{getSickName(scope.row.his.sick_type)}}
95
           </template>
95
           </template>
96
         </el-table-column>
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
           <template slot-scope="scope">
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
           </template>
103
           </template>
103
         </el-table-column>
104
         </el-table-column>
104
 
105
 
106
+
107
+
108
+
105
           <el-table-column align="center" prop="item_name" label="结算类型">
109
           <el-table-column align="center" prop="item_name" label="结算类型">
106
               <template slot-scope="scope">
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
               </template>
114
               </template>
110
           </el-table-column>
115
           </el-table-column>
111
           <el-table-column align="center" prop="item_name" label="处方类型">
116
           <el-table-column align="center" prop="item_name" label="处方类型">
272
       </el-table-column>
277
       </el-table-column>
273
       <el-table-column align="center" prop="item_name" label="病种名称">
278
       <el-table-column align="center" prop="item_name" label="病种名称">
274
         <template slot-scope="scope">
279
         <template slot-scope="scope">
275
-          {{scope.row.sick_name}}
280
+          {{getSickName(scope.row.his.sick_type)}}
276
         </template>
281
         </template>
277
       </el-table-column>
282
       </el-table-column>
278
 
283
 
279
       <el-table-column align="center" prop="item_name" label="参保地">
284
       <el-table-column align="center" prop="item_name" label="参保地">
280
         <template slot-scope="scope">
285
         <template slot-scope="scope">
281
-          {{scope.row.clr_optins}}
286
+          {{getName(scope.row.his.insuplc_admdvs) + '(' + scope.row.his.insuplc_admdvs +')'}}
282
         </template>
287
         </template>
283
       </el-table-column>
288
       </el-table-column>
284
 
289
 
285
       <el-table-column align="center" prop="item_name" label="结算类型">
290
       <el-table-column align="center" prop="item_name" label="结算类型">
286
         <template slot-scope="scope">
291
         <template slot-scope="scope">
287
           <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
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
         </template>
295
         </template>
290
       </el-table-column>
296
       </el-table-column>
291
       <el-table-column align="center" prop="item_name" label="处方类型">
297
       <el-table-column align="center" prop="item_name" label="处方类型">
430
         tempArr: [],
436
         tempArr: [],
431
         sameRowArr: [],
437
         sameRowArr: [],
432
         tableData: [],
438
         tableData: [],
439
+        config:{},
440
+        sick:{},
433
         chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
441
         chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
434
         item_type: '0',
442
         item_type: '0',
435
         items: [
443
         items: [
481
       unique(arr) {
489
       unique(arr) {
482
         const res = new Map()
490
         const res = new Map()
483
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
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
       changeDate() {
543
       changeDate() {
486
-        // console.log(this.chargeDate)
487
         this.getSummarySettleList()
544
         this.getSummarySettleList()
488
       },
545
       },
489
       changeItem() {
546
       changeItem() {
514
           } else {
571
           } else {
515
             this.settle_loading = false
572
             this.settle_loading = false
516
             this.tableData = []
573
             this.tableData = []
574
+            this.config = response.data.data.config
575
+            this.sick = response.data.data.sick
576
+
517
             let data = response.data.data.patients
577
             let data = response.data.data.patients
518
 
578
 
519
             for (let i = 0; i < data.length; i++) {
579
             for (let i = 0; i < data.length; i++) {
530
 
590
 
531
               data[i]['total'] = total
591
               data[i]['total'] = total
532
             }
592
             }
533
-            console.log(data)
534
 
593
 
535
             for (let i = 0; i < data.length; i++) {
594
             for (let i = 0; i < data.length; i++) {
536
               for (let b = 0; b < data[i].orders.length; b++) {
595
               for (let b = 0; b < data[i].orders.length; b++) {
548
 
607
 
549
               }
608
               }
550
             }
609
             }
551
-            console.log(this.tableData)
552
 
610
 
553
             this.handleSpanTempArr()
611
             this.handleSpanTempArr()
554
           }
612
           }
632
             sums[index] = '合计'
690
             sums[index] = '合计'
633
             return
691
             return
634
           }
692
           }
635
-          console.log(data)
636
           const values = data.map(item => Number(item[column.property]))
693
           const values = data.map(item => Number(item[column.property]))
637
           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') {
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
             sums[index] = values.reduce((prev, curr) => {
695
             sums[index] = values.reduce((prev, curr) => {
652
         return sums
709
         return sums
653
       },
710
       },
654
       export_detail() {
711
       export_detail() {
655
-        console.log("~~~~~~~")
656
 
712
 
657
         let list = []
713
         let list = []
658
         // for (let i = 0; i < this.tableData.length; i++) {
714
         // for (let i = 0; i < this.tableData.length; i++) {
757
     created() {
813
     created() {
758
       this.getSummarySettleList()
814
       this.getSummarySettleList()
759
 
815
 
816
+
760
     }
817
     }
761
   }
818
   }
762
 </script>
819
 </script>