Browse Source

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

see999 3 years ago
parent
commit
d32a2d7b72

+ 2 - 2
config/index.js View File

@@ -29,8 +29,8 @@ module.exports = {
29 29
 
30 30
     // host: 'xt.test.sgjyun.com',
31 31
     //  host: 'xt.kuyicloud.com',
32
-   host: 'xt.test.sgjyun.com',
33
-  //  host: 'localhost',
32
+    host: 'xt.test.sgjyun.com',
33
+    // host: 'localhost',
34 34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35 35
     autoOpenBrowser: true,
36 36
     errorOverlay: true,

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

@@ -133,7 +133,7 @@
133 133
                                                             >预结算
134 134
                                                             </el-button>
135 135
                                                             <el-button
136
-                                                                    v-if="items.curPrescriptions.order.order_status == 1 && items.curPrescriptions.order.is_pre == 1 && hisPatientInfo.balance_accounts_type != 2"
136
+                                                                    v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2"
137 137
                                                                     size="small" @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)" type="primary"
138 138
                                                             >撤销明细
139 139
                                                             </el-button>
@@ -2001,7 +2001,7 @@
2001 2001
           }
2002 2002
 
2003 2003
           if (this.hisPatientInfo.id_card_type == 1) {
2004
-            if (this.hisPatientInfo.balance_accounts_type != 2) {
2004
+            if (this.hisPatientInfo.balance_accounts_type != 2 && this.$store.getters.xt_user.org_id != 10088) {
2005 2005
               this.pwdFormVisible = true
2006 2006
               this.pwd = ''
2007 2007
             } else {

+ 77 - 1
src/xt_pages/outpatientCharges/summary.vue View File

@@ -6,6 +6,10 @@
6 6
         <div class="app-container">
7 7
             <div style="display: flex;justify-content: space-between;margin-bottom:10px;">
8 8
                 <div>
9
+                    <!--<el-button size="small" style="margin-left:10px;" class="filter-item" type="primary"-->
10
+                               <!--@click="Action">-->
11
+                        <!--导出-->
12
+                    <!--</el-button>-->
9 13
                     <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
10 14
                               @keyup.enter.native='searchAction'
11 15
                               class="filter-item"/>
@@ -203,7 +207,7 @@
203 207
 
204 208
 <script>
205 209
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
206
-  import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
210
+  import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund,getAllOrders } from '@/api/his/his'
207 211
   import { uParseTime } from '@/utils/tools'
208 212
   // import NewStatementPrint from './newStatementPrint'
209 213
   import NewStatementPrint from './statementPrint.vue'
@@ -632,6 +636,78 @@
632 636
         this.page = 1
633 637
         this.keywords = ''
634 638
         this.getHisOrderList()
639
+      },Action(){
640
+        getAllOrders().then(response => {
641
+          if (response.data.state == 0) {
642
+            this.$message.error(response.data.msg)
643
+            return false
644
+          } else {
645
+
646
+            let list = []
647
+            for (let i = 0; i < response.data.data.order.length; i++) {
648
+              let order = response.data.data.order[i]
649
+
650
+
651
+              if (order.patient != null && order.patient.name.length > 0) {
652
+                name = order.patient.name
653
+
654
+              }
655
+
656
+              let time = order.setl_time
657
+              let name = order.his_patient.name
658
+              var hifmi_pay = 0.00
659
+              for (let b = 0; b < order.order_info.length; b++) {
660
+                let item_name = ""
661
+                let item_code = ""
662
+                let price = ""
663
+                let unit = ""
664
+                let spec = ""
665
+                let selfpay_prop = ""
666
+                if(order.order_info[b].advice.id == 0 && order.order_info[b].project.id > 0){
667
+                  item_name = order.order_info[b].project.project.project_name
668
+                  item_code =  order.order_info[b].project.project.medical_code
669
+                  price = order.order_info[b].pric
670
+                  unit = order.order_info[b].project.project.unit
671
+                }else if(order.order_info[b].advice.id > 0 && order.order_info[b].project.id == 0){
672
+                  item_name = order.order_info[b].advice.advice_name
673
+                  item_code =  order.order_info[b].advice.drug.medical_insurance_number
674
+                  price = order.order_info[b].pric
675
+                  unit = order.order_info[b].advice.prescribing_number_unit
676
+
677
+
678
+                }
679
+                selfpay_prop = order.order_info[b].selfpay_prop
680
+
681
+                let obj = {
682
+                  '项目名称': item_name,
683
+                  '项目编码': "",
684
+                  '医保编码': item_code,
685
+                  '零售价': price,
686
+                  '单位': unit,
687
+                  '规格': "",
688
+                  '收费时间': time,
689
+                  '报销比例': selfpay_prop,
690
+                  '患者名称': name,
691
+                }
692
+
693
+                list.push(obj)
694
+              }
695
+            }
696
+            import('@/vendor/Export2Excel').then(excel => {
697
+              const tHeader = ['项目名称', '项目编码', '医保编码', '零售价', '单位', '规格', '收费时间', '报销比例', '患者名称']
698
+              const filterVal = ['项目名称', '项目编码', '医保编码', '零售价', '单位', '规格', '收费时间', '报销比例', '患者名称']
699
+              const data = this.formatJson(filterVal, list)
700
+              excel.export_json_to_excel({
701
+                header: tHeader,
702
+                data,
703
+                filename: '消费明细'
704
+              })
705
+            })
706
+
707
+          }
708
+        })
709
+
710
+
635 711
       },
636 712
       searchAction() {
637 713
         this.page = 1

+ 5 - 3
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -421,7 +421,7 @@
421 421
         prescription_status: false,
422 422
         week: false,
423 423
         name: false,
424
-        zone: false,
424
+        zone_name: false,
425 425
         classes: false,
426 426
         number: false,
427 427
         mode: false,
@@ -874,6 +874,7 @@
874 874
       ,
875 875
       signPrint() {
876 876
         var zone = this.zone
877
+        console.log("zone23232",zone)
877 878
         var newArr = []
878 879
         for(let i=0;i<this.zoneList.length;i++){
879 880
            newArr.push(this.zoneList[i].id)
@@ -1287,6 +1288,7 @@
1287 1288
       }
1288 1289
       ,
1289 1290
       printActionSetting() {
1291
+        this.getAllZoneList()
1290 1292
         this.getlist()
1291 1293
         this.dialogVisible = true
1292 1294
 
@@ -1463,10 +1465,10 @@
1463 1465
               this.week = false
1464 1466
             }
1465 1467
             if (list.zone == 1) {
1466
-              this.zone = true
1468
+              this.zone_name = true
1467 1469
             }
1468 1470
             if (list.zone == 2) {
1469
-              this.zone = false
1471
+              this.zone_name = false
1470 1472
             }
1471 1473
             if (list.mode == 1) {
1472 1474
               this.mode = true

+ 7 - 0
src/xt_pages/workforce/remind_print_setting.vue View File

@@ -29,6 +29,8 @@
29 29
                   <span v-if="org_id == 10138">{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name + ' 5000iu/瓶' : ''}}</span>
30 30
                   <span v-else >{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name: ''}}</span>
31 31
                 </div> 
32
+               <div v-if="org_id == 10188">首剂:{{main_collection.dialysissolution.anticoagulant_shouji}}</div>
33
+                <div v-if="org_id == 10188">维持:{{main_collection.dialysissolution.anticoagulant_weichi}}</div>
32 34
                 <div>用量:  
33 35
                   <span v-if="main_collection.dialysissolution.anticoagulant == 1">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
34 36
                   <span v-if="main_collection.dialysissolution.anticoagulant == 2">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'mg':''}}</span>
@@ -42,6 +44,9 @@
42 44
                   <span v-if="main_collection.dialysissolution.anticoagulant == 10">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
43 45
                   <span v-if="main_collection.dialysissolution.anticoagulant == 11">{{main_collection.dialysissolution.anticoagulant_zongliang?main_collection.dialysissolution.anticoagulant_zongliang+'iu':''}}</span>
44 46
                 </div> 
47
+                <div v-if="org_id == 10188">干体重:{{main_collection.assessmentbefor.dry_weight}}</div>
48
+                <div v-if="org_id == 10188">透前体重:{{main_collection.assessmentbefor.weight_before}}</div>
49
+                <div v-if="org_id == 10188">体重增加:{{main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.dry_weight}}</div>
45 50
                 <div>用法:静脉注射</div> 
46 51
                 <div>打印时间:{{currentDate}}</div>
47 52
               </div>
@@ -96,6 +101,7 @@
96 101
      this.type = this.$route.query.type
97 102
      this.getPrintList()
98 103
      this.org_id = this.$store.getters.xt_user.org.id
104
+     console.log("机构ID",this.org_id)
99 105
      this.currentDate = this.getCurrentDate()
100 106
    
101 107
      this.modeOptions = this.$store.getters.treatment_mode
@@ -115,6 +121,7 @@
115 121
        getScheduleList(params).then(response=>{
116 122
          if(response.data.state ==1){
117 123
            var list = response.data.data.list
124
+           console.log("本周信息",list)
118 125
            for(let i=0;i<list.length;i++){
119 126
               list[i].sort = list[i].number.sort
120 127
            }

+ 12 - 12
src/xt_permission.js View File

@@ -13,18 +13,18 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15 15
   // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //       store.dispatch('VerifyConfigList', []).then(() => {
17
-  //         next()
18
-  //       })
19
-  //     }
20
-  //     if (store.getters.permission_routers === undefined) {
21
-  //       store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //         next()
23
-  //       })
24
-  //     } else {
25
-  //       next()
26
-  //     }
27
-  //   return
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28 28
   // 线上注释
29 29
 
30 30
   NProgress.start()