Sfoglia il codice sorgente

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

XMLWAN 3 anni fa
parent
commit
f6edfe7c41

+ 2 - 2
config/dev.env.js Vedi File

@@ -7,8 +7,8 @@ module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9 9
   // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  BASE_API: '"http://api.xt.test.sgjyun.com"',
11
-  // BASE_API: '"http://localhost:9531"',
10
+  // BASE_API: '"http://api.xt.test.sgjyun.com"',
11
+  BASE_API: '"http://localhost:9529"',
12 12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Vedi 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,

+ 0 - 6
src/xt_pages/outpatientCharges/newStatementPrint.vue Vedi File

@@ -154,10 +154,7 @@
154 154
 
155 155
       },
156 156
       getInfo(order_id) {
157
-        if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4  || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
158
-
159 157
           var that = this;
160
-
161 158
           axios.get('http://127.0.0.1:9532/api/settle/query', {
162 159
             params: {
163 160
               order_id: order_id,
@@ -175,8 +172,6 @@
175 172
                 that.info = response.data.data.info;
176 173
                 that.p_admin = response.data.data.printor_admin;
177 174
                 that.charge_admin = response.data.data.charge_admin;
178
-
179
-
180 175
                 that.info['p_admin'] =  that.p_admin;
181 176
                 that.info['charge_admin'] =  that.charge_admin;
182 177
 
@@ -233,7 +228,6 @@
233 228
             .catch(function (error) {
234 229
 
235 230
             });
236
-        }
237 231
       }
238 232
 
239 233
     },

+ 6 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Vedi File

@@ -133,7 +133,7 @@
133 133
                                                             </el-button>
134 134
                                                             <el-button
135 135
                                                                     v-if="items.curPrescriptions.order.order_status == 1 && items.curPrescriptions.order.is_pre == 1 && hisPatientInfo.balance_accounts_type != 2"
136
-                                                                    size="small" @click="open(11)" type="primary"
136
+                                                                    size="small" @click="open(11,items.med_type,items.prescriptions[0].order,items.prescriptions)" type="primary"
137 137
                                                             >撤销明细
138 138
                                                             </el-button>
139 139
                                                             <!--<div>{{ items.curPrescriptions.order.order_status}}</div>-->
@@ -159,7 +159,7 @@
159 159
 
160 160
 
161 161
                                                 <span>医疗费总额:<span style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt ?  items.curPrescriptions.order.medfee_sumamt:getTotalFour(items.prescriptions)?getTotalFour(items.prescriptions):'' }}元</span></span>
162
-                                                <span>基金支付金额:<span style="color:red;">{{ items.curPrescriptions.order.fund_pay_sumamt?items.curPrescriptions.order.fund_pay_sumamt:''}}元</span></span>
162
+                                                <span>基金支付金额:<span style="color:red;">{{ items.curPrescriptions.order.hifp_pay?items.curPrescriptions.order.hifp_pay:''}}元</span></span>
163 163
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curPrescriptions.order.acct_pay?items.curPrescriptions.order.acct_pay:''}}元</span></span>
164 164
                                                 <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
165 165
                                                         style="color:red;">{{ items.curPrescriptions.order.psn_cash_pay?items.curPrescriptions.order.psn_cash_pay:''}}元</span></span>
@@ -323,7 +323,7 @@
323 323
                                                   style="color:red;">{{ items.month_total }}元</span></span>
324 324
 
325 325
                                                 <span>医疗费总额:<span style="color:red;">{{ items.curMonthPrescriptions.order.medfee_sumamt ?  items.curMonthPrescriptions.order.medfee_sumamt:getTotalFour(items.month_prescriptions)?getTotalFour(items.month_prescriptions):'' }}元</span></span>
326
-                                                <span>基金支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.fund_pay_sumamt?items.curMonthPrescriptions.order.fund_pay_sumamt:''}}元</span></span>
326
+                                                <span>基金支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.hifp_pay?items.curMonthPrescriptions.order.hifp_pay:''}}元</span></span>
327 327
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.acct_pay?items.curMonthPrescriptions.order.acct_pay:''}}元</span></span>
328 328
                                                 <!--<span>个人支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay?items.curMonthPrescriptions.order.psn_cash_pay:''}}元</span></span>-->
329 329
 
@@ -2202,8 +2202,8 @@
2202 2202
         } else if (index == 11) {
2203 2203
           var that = this
2204 2204
           let params = {
2205
-            'order_id': this.order.id,
2206
-            'number': this.order.number,
2205
+            'order_id': order.id,
2206
+            'number': order.number,
2207 2207
             'patient_id': this.patientInfo.id,
2208 2208
             'record_time': this.record_date,
2209 2209
             'org_id': this.$store.getters.xt_user.org_id,
@@ -2687,7 +2687,7 @@
2687 2687
             this.current_index = 0
2688 2688
 
2689 2689
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
2690
-            this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2690
+            // this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].order_number, this.patientTableData[0].his_patient_id, this.patientTableData[0].order_id)
2691 2691
 
2692 2692
           }
2693 2693
 

+ 0 - 2
src/xt_pages/outpatientCharges/settlementPrint.vue Vedi File

@@ -162,7 +162,6 @@ export default {
162 162
 
163 163
     },
164 164
     getInfo(order_id) {
165
-      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 9671 ||  this.$store.getters.xt_user.org_id == 9674 ||  this.$store.getters.xt_user.org_id == 10106  ||  this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9990 || this.$store.getters.xt_user.org_id == 0) {
166 165
 
167 166
         var that = this;
168 167
 
@@ -237,7 +236,6 @@ export default {
237 236
           .catch(function (error) {
238 237
 
239 238
           });
240
-      }
241 239
     }
242 240
   },
243 241
   created() {

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Vedi File

@@ -402,12 +402,12 @@
402 402
             scope.row.prescribing_number = scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)
403 403
           }else{
404 404
             console.log(12)
405
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number) 
405
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1)) * (scope.row.day ? scope.row.day : 1) / scope.row.drug.min_number)
406 406
           }
407 407
         }else{
408 408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
409 409
             console.log(123)
410
-            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose) 
410
+            scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose)
411 411
           }else{
412 412
             console.log(1234)
413 413
             scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)
@@ -427,7 +427,7 @@
427 427
           }
428 428
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
429 429
         }
430
-        
430
+
431 431
       },
432 432
       getPrescribingNumberUnit(scope){
433 433
 
@@ -436,11 +436,11 @@
436 436
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
437 437
         //     scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
438 438
         //   }else{
439
-        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number) 
439
+        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency)) * scope.row.day / scope.row.drug.min_number)
440 440
         //   }
441 441
         // }else{
442 442
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
443
-        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose) 
443
+        //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose)
444 444
         //   }else{
445 445
         //     scope.row.prescribing_number = Math.ceil((scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day) / scope.row.drug.dose / scope.row.drug.min_number)
446 446
         //   }
@@ -482,7 +482,7 @@
482 482
         if(this.prescription.project[scope.$index].total == 0){
483 483
           this.prescription.project[scope.$index].total = 1
484 484
         }
485
-        
485
+
486 486
       },
487 487
       getNum(execution_frequency){
488 488
         let arr = [
@@ -527,7 +527,7 @@
527 527
     watch:{
528 528
       "prescription.advices":{
529 529
         handler(newVal,oldVal){
530
-          
530
+
531 531
         },
532 532
         deep:true
533 533
       },

+ 39 - 6
src/xt_pages/workforce/components/tableWeeks.vue Vedi File

@@ -457,8 +457,14 @@
457 457
           }
458 458
         }
459 459
 
460
+
460 461
         return ''
461 462
 
463
+      },getAnticoagulantName(id) {
464
+
465
+        return this.$store.getters.anticoagulants_confit[id] != undefined ? this.$store.getters.anticoagulants_confit[id].name: ""
466
+
467
+
462 468
       },
463 469
       getModeDesc(list) {
464 470
         let modes = []
@@ -638,10 +644,7 @@
638 644
           modes.push(obj)
639 645
 
640 646
         }
641
-        let dialysate_formulation_options = getDataConfig(
642
-          'hemodialysis',
643
-          'dialysate_formulation'
644
-        )
647
+
645 648
         modes = this.uniqueDialysisFormulation(modes)
646 649
         for (let i = 0; i < list.length; i++) {
647 650
           for (let c = 0; c < modes.length; c++) {
@@ -758,9 +761,35 @@
758 761
       }
759 762
       ,
760 763
       getAnticoagulantDesc(list) {
764
+        let modes = []
765
+        for (let b = 0; b < list.length; b++) {
766
+          let obj = {
767
+            id: list[b].dialysissolution.anticoagulant,
768
+            name: this.getAnticoagulantName(list[b].dialysissolution.anticoagulant),
769
+            count: 0
761 770
 
762
-      }
763
-      ,
771
+          }
772
+          modes.push(obj)
773
+
774
+        }
775
+        modes = this.uniqueAnticoagulant(modes)
776
+        for (let i = 0; i < list.length; i++) {
777
+          for (let c = 0; c < modes.length; c++) {
778
+            if (modes[c].id == list[i].dialysissolution.anticoagulant) {
779
+              modes[c].count = modes[c].count + 1
780
+            }
781
+          }
782
+        }
783
+        let desc = ''
784
+        for (let b = 0; b < modes.length; b++) {
785
+          if (desc.length == 0) {
786
+            desc = modes[b].name + ': ' + modes[b].count + '次'
787
+          } else {
788
+            desc = desc + ' \n\r ' + modes[b].name + ': ' + modes[b].count + '次'
789
+          }
790
+        }
791
+        return desc
792
+      },
764 793
       getEPODesc(list) {
765 794
         let EPO = []
766 795
         for (let b = 0; b < list.length; b++) {
@@ -870,6 +899,10 @@
870 899
         const res = new Map()
871 900
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
872 901
       }
902
+      , uniqueAnticoagulant(arr) {
903
+        const res = new Map()
904
+        return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
905
+      }
873 906
       ,
874 907
 
875 908
       getScheduleList() {

+ 13 - 13
src/xt_permission.js Vedi File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
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
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
28 28
   // 线上注释
29 29
 
30 30
   NProgress.start()