ソースを参照

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

XMLWAN 3 年 前
コミット
f6edfe7c41

+ 2 - 2
config/dev.env.js ファイルの表示

7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SSO_HOST: '"http://testsso.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   SRCM_HOST: '"http://test1.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js ファイルの表示

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

+ 0 - 6
src/xt_pages/outpatientCharges/newStatementPrint.vue ファイルの表示

154
 
154
 
155
       },
155
       },
156
       getInfo(order_id) {
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
           var that = this;
157
           var that = this;
160
-
161
           axios.get('http://127.0.0.1:9532/api/settle/query', {
158
           axios.get('http://127.0.0.1:9532/api/settle/query', {
162
             params: {
159
             params: {
163
               order_id: order_id,
160
               order_id: order_id,
175
                 that.info = response.data.data.info;
172
                 that.info = response.data.data.info;
176
                 that.p_admin = response.data.data.printor_admin;
173
                 that.p_admin = response.data.data.printor_admin;
177
                 that.charge_admin = response.data.data.charge_admin;
174
                 that.charge_admin = response.data.data.charge_admin;
178
-
179
-
180
                 that.info['p_admin'] =  that.p_admin;
175
                 that.info['p_admin'] =  that.p_admin;
181
                 that.info['charge_admin'] =  that.charge_admin;
176
                 that.info['charge_admin'] =  that.charge_admin;
182
 
177
 
233
             .catch(function (error) {
228
             .catch(function (error) {
234
 
229
 
235
             });
230
             });
236
-        }
237
       }
231
       }
238
 
232
 
239
     },
233
     },

+ 6 - 6
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue ファイルの表示

133
                                                             </el-button>
133
                                                             </el-button>
134
                                                             <el-button
134
                                                             <el-button
135
                                                                     v-if="items.curPrescriptions.order.order_status == 1 && items.curPrescriptions.order.is_pre == 1 && hisPatientInfo.balance_accounts_type != 2"
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
                                                             </el-button>
138
                                                             </el-button>
139
                                                             <!--<div>{{ items.curPrescriptions.order.order_status}}</div>-->
139
                                                             <!--<div>{{ items.curPrescriptions.order.order_status}}</div>-->
159
 
159
 
160
 
160
 
161
                                                 <span>医疗费总额:<span style="color:red;">{{ items.curPrescriptions.order.medfee_sumamt ?  items.curPrescriptions.order.medfee_sumamt:getTotalFour(items.prescriptions)?getTotalFour(items.prescriptions):'' }}元</span></span>
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
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curPrescriptions.order.acct_pay?items.curPrescriptions.order.acct_pay:''}}元</span></span>
163
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curPrescriptions.order.acct_pay?items.curPrescriptions.order.acct_pay:''}}元</span></span>
164
                                                 <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
164
                                                 <span v-if="hisPatientInfo.balance_accounts_type != 2">个人支付金额:<span
165
                                                         style="color:red;">{{ items.curPrescriptions.order.psn_cash_pay?items.curPrescriptions.order.psn_cash_pay:''}}元</span></span>
165
                                                         style="color:red;">{{ items.curPrescriptions.order.psn_cash_pay?items.curPrescriptions.order.psn_cash_pay:''}}元</span></span>
323
                                                   style="color:red;">{{ items.month_total }}元</span></span>
323
                                                   style="color:red;">{{ items.month_total }}元</span></span>
324
 
324
 
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>
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
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.acct_pay?items.curMonthPrescriptions.order.acct_pay:''}}元</span></span>
327
                                                 <span>个人账户支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.acct_pay?items.curMonthPrescriptions.order.acct_pay:''}}元</span></span>
328
                                                 <!--<span>个人支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay?items.curMonthPrescriptions.order.psn_cash_pay:''}}元</span></span>-->
328
                                                 <!--<span>个人支付金额:<span style="color:red;">{{ items.curMonthPrescriptions.order.psn_cash_pay?items.curMonthPrescriptions.order.psn_cash_pay:''}}元</span></span>-->
329
 
329
 
2202
         } else if (index == 11) {
2202
         } else if (index == 11) {
2203
           var that = this
2203
           var that = this
2204
           let params = {
2204
           let params = {
2205
-            'order_id': this.order.id,
2206
-            'number': this.order.number,
2205
+            'order_id': order.id,
2206
+            'number': order.number,
2207
             'patient_id': this.patientInfo.id,
2207
             'patient_id': this.patientInfo.id,
2208
             'record_time': this.record_date,
2208
             'record_time': this.record_date,
2209
             'org_id': this.$store.getters.xt_user.org_id,
2209
             'org_id': this.$store.getters.xt_user.org_id,
2687
             this.current_index = 0
2687
             this.current_index = 0
2688
 
2688
 
2689
             this.$refs.tab.setCurrentRow(this.patientTableData[0])
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 ファイルの表示

162
 
162
 
163
     },
163
     },
164
     getInfo(order_id) {
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
         var that = this;
166
         var that = this;
168
 
167
 
237
           .catch(function (error) {
236
           .catch(function (error) {
238
 
237
 
239
           });
238
           });
240
-      }
241
     }
239
     }
242
   },
240
   },
243
   created() {
241
   created() {

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue ファイルの表示

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)
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
           }else{
403
           }else{
404
             console.log(12)
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
         }else{
407
         }else{
408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
408
           if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
409
             console.log(123)
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
           }else{
411
           }else{
412
             console.log(1234)
412
             console.log(1234)
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)
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
           }
427
           }
428
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
428
           // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
429
         }
429
         }
430
-        
430
+
431
       },
431
       },
432
       getPrescribingNumberUnit(scope){
432
       getPrescribingNumberUnit(scope){
433
 
433
 
436
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
436
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
437
         //     scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
437
         //     scope.row.prescribing_number = scope.row.single_dose * this.getNum(scope.row.execution_frequency) * scope.row.day
438
         //   }else{
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
         // }else{
441
         // }else{
442
         //   if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
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
         //   }else{
444
         //   }else{
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)
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
         if(this.prescription.project[scope.$index].total == 0){
482
         if(this.prescription.project[scope.$index].total == 0){
483
           this.prescription.project[scope.$index].total = 1
483
           this.prescription.project[scope.$index].total = 1
484
         }
484
         }
485
-        
485
+
486
       },
486
       },
487
       getNum(execution_frequency){
487
       getNum(execution_frequency){
488
         let arr = [
488
         let arr = [
527
     watch:{
527
     watch:{
528
       "prescription.advices":{
528
       "prescription.advices":{
529
         handler(newVal,oldVal){
529
         handler(newVal,oldVal){
530
-          
530
+
531
         },
531
         },
532
         deep:true
532
         deep:true
533
       },
533
       },

+ 39 - 6
src/xt_pages/workforce/components/tableWeeks.vue ファイルの表示

457
           }
457
           }
458
         }
458
         }
459
 
459
 
460
+
460
         return ''
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
       getModeDesc(list) {
469
       getModeDesc(list) {
464
         let modes = []
470
         let modes = []
638
           modes.push(obj)
644
           modes.push(obj)
639
 
645
 
640
         }
646
         }
641
-        let dialysate_formulation_options = getDataConfig(
642
-          'hemodialysis',
643
-          'dialysate_formulation'
644
-        )
647
+
645
         modes = this.uniqueDialysisFormulation(modes)
648
         modes = this.uniqueDialysisFormulation(modes)
646
         for (let i = 0; i < list.length; i++) {
649
         for (let i = 0; i < list.length; i++) {
647
           for (let c = 0; c < modes.length; c++) {
650
           for (let c = 0; c < modes.length; c++) {
758
       }
761
       }
759
       ,
762
       ,
760
       getAnticoagulantDesc(list) {
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
       getEPODesc(list) {
793
       getEPODesc(list) {
765
         let EPO = []
794
         let EPO = []
766
         for (let b = 0; b < list.length; b++) {
795
         for (let b = 0; b < list.length; b++) {
870
         const res = new Map()
899
         const res = new Map()
871
         return arr.filter((arr) => !res.has(arr.id) && res.set(arr.id, 1))
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
       getScheduleList() {
908
       getScheduleList() {

+ 13 - 13
src/xt_permission.js ファイルの表示

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
30
   NProgress.start()