浏览代码

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 6 天前
父节点
当前提交
fd91ec929c

+ 1 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

@@ -1044,7 +1044,7 @@
1044 1044
                     </el-col>
1045 1045
 
1046 1046
                     <el-col :span="8" v-if="isShows('葡萄糖')">
1047
-                        <el-form-item label="葡萄糖:" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
1047
+                        <el-form-item label="葡萄糖(mmol/L):" prop="amylaceum" :rules="isCheckmust('葡萄糖')">
1048 1048
                             <el-input v-model="dialysisPrescription.amylaceum"></el-input>
1049 1049
                         </el-form-item>
1050 1050
                     </el-col>

+ 40 - 31
src/xt_pages/outpatientCharges/components/registerDialog.vue 查看文件

@@ -94,7 +94,6 @@
94 94
 
95 95
         <el-select
96 96
           v-model="form.insuplc_admdvs"
97
-          multiple
98 97
           filterable
99 98
           remote
100 99
           reserve-keyword
@@ -723,6 +722,9 @@
723 722
         let params = {
724 723
           'id_card_type': this.form.id_card_type,
725 724
           'admin_user_id': this.$store.getters.xt_user.user.id,
725
+          'id': this.$store.getters.xt_user.user.id,
726
+          'id_card_no' :this.form.id_card,
727
+          'insuplc_admdvs':this.form.insuplc_admdvs,
726 728
           'certificates':this.form.certificates,
727 729
         }
728 730
 
@@ -745,8 +747,8 @@
745 747
                   })
746 748
 
747 749
                 }else {
750
+                  that.$message({ message: '读卡成功', type: 'success' })
748 751
                   var patient = response.data.data.patient
749
-
750 752
                   if (that.form.id_card_type == 1) {
751 753
                     that.form.id = patient.id
752 754
                     that.form.name = patient.name
@@ -771,6 +773,16 @@
771 773
                     that.form.id_card = patient.id_card_no
772 774
                     that.form.blac = response.data.data.blac
773 775
                     that.form.psn_desc = response.data.data.desc
776
+
777
+                    var temp_insuplc_admdvs = ""
778
+                    for(let i =0; i < response.data.data.info.output.insuinfo.length; i++){
779
+                      //险种一致,且参保没过期
780
+                      if(insutype == response.data.data.info.output.insuinfo[i].insutype && response.data.data.info.output.insuinfo[i].psn_insu_stas == 1)
781
+                        temp_insuplc_admdvs = response.data.data.info.output.insuinfo[i].insuplc_admdvs
782
+                      that.form.insuplc_admdvs = temp_insuplc_admdvs
783
+                    }
784
+
785
+
774 786
                   } else {
775 787
                     that.form.id = patient.id
776 788
                     that.form.name = patient.name
@@ -783,7 +795,6 @@
783 795
                     that.form.blac = response.data.data.blac
784 796
                     that.form.psn_desc = response.data.data.desc
785 797
                   }
786
-                  that.$message({ message: '读卡成功', type: 'success' })
787 798
                 }
788 799
               }
789 800
             })
@@ -950,11 +961,16 @@
950 961
 
951 962
 
952 963
       showTwo: function(doctors,departments,info,patient_info,insutype) {
953
-        console.log(this.$store.getters.insuplc_admdvs)
964
+        console.log(doctors)
965
+        console.log(departments)
966
+        console.log(patient_info)
967
+        console.log(info)
968
+        console.log(insutype)
969
+
970
+
971
+
954 972
         this.options =  this.$store.getters.insuplc_admdvs
955
-        console.log(this.options)
956 973
         this.list =  this.$store.getters.insuplc_admdvs
957
-        console.log(this.list)
958 974
 
959 975
         this.visibility = true
960 976
         // this.form = Object.assign({}, this.resetForm)
@@ -969,7 +985,6 @@
969 985
         this.form.age = ''
970 986
         this.form.id_card = ''
971 987
         this.form.register = ''
972
-
973 988
         this.form.doctor = ''
974 989
         this.form.department = ''
975 990
         this.form.registration_fee = ''
@@ -978,39 +993,18 @@
978 993
         this.form.phone = ''
979 994
         this.form.social_type = ''
980 995
         this.form.insuplc_admdvs =''
981
-
982
-        this.form.p_type = 14
983 996
         this.form.sick_type = this.sick[0].id
984 997
         this.form.diagnosis = this.diagnoses[0].id
985 998
         this.form.id_card_type = 2
986 999
         this.form.certificates = 1
987
-        if (this.$store.getters.xt_user.org_id == 10188  || this.$store.getters.xt_user.org_id == 10217 || this.$store.getters.xt_user.org_id == 10191){
988
-          this.form.id_card_type = 1
989
-        }
1000
+
990 1001
         if (departments.length > 0) {
991 1002
           this.form.department = departments[0].id
992 1003
         }
993
-        console.log("11231231231223233432423dddd312")
994 1004
         if (doctors.length > 0) {
995
-          if(this.$store.getters.xt_user.org_id == 10318 || this.$store.getters.xt_user.org_id == 0){
996
-            console.log("~~~~~~~")
997
-            this.form.doctor = 3127
998
-
999
-          }else{
1000
-            this.form.doctor = doctors[0].admin_user_id
1001
-          }
1002
-        }else{
1003
-          this.form.doctor = 3127
1005
+          this.form.doctor = doctors[0].admin_user_id
1004 1006
         }
1005 1007
 
1006
-        this.form.social_type = insutype
1007
-        var temp_insuplc_admdvs = ""
1008
-        for(let i =0; i < info.output.insuinfo.length; i++){
1009
-          //险种一致,且参保没过期
1010
-          if(insutype == info.output.insuinfo[i].insutype && info.output.insuinfo[i].psn_insu_stas == 1)
1011
-          temp_insuplc_admdvs = info.output.insuinfo[i].insuplc_admdvs
1012
-        }
1013
-        this.form.insuplc_admdvs = temp_insuplc_admdvs
1014 1008
         this.form.id = patient_info.id
1015 1009
         this.form.name = patient_info.name
1016 1010
         this.form.gender = patient_info.gender
@@ -1031,9 +1025,24 @@
1031 1025
           '-' +
1032 1026
           birth.substr(6, 2)
1033 1027
         this.form.age = jsGetAge(births, '-')
1034
-      },
1028
+        this.form.social_type =  parseInt(insutype)
1029
+        if(patient_info.insuplc_admdvs.length > 0){
1030
+          for(let i = 0; i < this.options.length;i++){
1031
+            if(this.options[i].value == parseInt(patient_info.insuplc_admdvs)){
1032
+              this.form.insuplc_admdvs = this.options[i].value
1033
+            }
1034
+          }
1035
+        }
1036
+        var temp_insuplc_admdvs = ""
1037
+        for(let i =0; i < info.output.insuinfo.length; i++){
1038
+          //险种一致,且参保没过期
1039
+          if(insutype == info.output.insuinfo[i].insutype && info.output.insuinfo[i].psn_insu_stas == 1)
1040
+          temp_insuplc_admdvs = info.output.insuinfo[i].insuplc_admdvs
1041
+          this.form.insuplc_admdvs = temp_insuplc_admdvs
1042
+        }
1035 1043
 
1036 1044
 
1045
+      },
1037 1046
       hide: function () {
1038 1047
         this.visibility = false
1039 1048
         this.$refs['formValue'].resetFields()

+ 36 - 49
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -128,13 +128,16 @@
128 128
                        type="primary">挂号
129 129
             </el-button>
130 130
 
131
+<!--            <el-button  size="small"-->
132
+<!--                       @click="open(10086)"-->
133
+<!--                       type="primary">查询医保参保信息-->
134
+<!--            </el-button>-->
135
+
131 136
             <el-button v-loading="loadingone" size="small"
132 137
                        @click="open(20)"
133 138
                        type="primary">查询备案信息
134 139
             </el-button>
135 140
 
136
-
137
-
138 141
             <el-button  size="small"  v-if="(org_id == 10138 && this.order.is_upload_diagnose == 0 && this.order.order_status == 2) || (org_id == 10278 && this.order.is_upload_diagnose == 0 && this.order.order_status == 2)"
139 142
                         @click="openZF(1)"
140 143
                         type="primary">自费门诊就医上传(4205)
@@ -218,7 +221,7 @@
218 221
                             </el-button>
219 222
 
220 223
                               <el-select style="margin-right:5px;width:300px;"
221
-                                         v-model="item.diagnoses" multiple placeholder="诊断" v-if="org_id == 10721">
224
+                                         v-model="item.diagnoses" multiple placeholder="诊断" v-if="org_id == 10721 || org_id == 0">
222 225
                                 <el-option
223 226
                                   v-for="(item,index) in diagnoses"
224 227
                                   :key="index"
@@ -3398,6 +3401,9 @@ export default {
3398 3401
       this.other_prescriptions = prescriptions
3399 3402
 
3400 3403
       if (index == 1) {
3404
+      }else if (index == 10086) {
3405
+
3406
+
3401 3407
       } else if (index == 2) {
3402 3408
         this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
3403 3409
       } else if (index == 3) {
@@ -3539,59 +3545,41 @@ export default {
3539 3545
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10088 || this.$store.getters.xt_user.org_id == 10278) {
3540 3546
           this.$refs.register9504.show()
3541 3547
         } else {
3542
-
3543
-          if(this.$store.getters.xt_user.org_id == 10721000){
3548
+          if(this.$store.getters.xt_user.org_id == 10721 || this.org_id == 0){
3544 3549
             var  that= this
3545 3550
             axios.get('http://127.0.0.1:9532/test/net',{}).then(function(response) {
3546 3551
               if (response.data.state == 0) {
3547
-                // that.$message.error(response.data.data.msg);
3548
-                that.$confirm("请检查医保程序是否有打开", "提示", {
3549
-                  confirmButtonText: "确 定",
3550
-                  cancelButtonText: "取 消",
3551
-                  type: "warning",
3552
-                }).then(() => {
3553
-                  var that = this
3554
-                  let params={
3555
-                    id_card_no: this.patientInfo.id_card_no,
3556
-                    admin_user_id:this.$store.getters.xt_user.user.id,
3552
+                  that.$refs.register.showTwo(that.doctors, that.department,"",that.patientInfo,"")
3553
+                return false
3554
+              } else {
3555
+                let params={
3556
+                  id_card_no: that.patientInfo.id_card_no,
3557
+                  admin_user_id:that.$store.getters.xt_user.user.id,
3558
+                }
3559
+                axios.get('http://127.0.0.1:9532/zh/api/patient/info', {
3560
+                  params: params,
3561
+                  headers: {
3562
+                    'Permission': 5
3557 3563
                   }
3558
-                  axios.get('http://127.0.0.1:9532/zh/api/patient/info', {
3559
-                    params: params,
3560
-                    headers: {
3561
-                      'Permission': 5
3562
-                    }
3563
-                  })
3564
-                    .then(function(response) {
3565
-                      if (response.data.state == 0) {
3566
-                        that.$message.error(response.data.msg)
3567
-                        that.loadingone = false
3568
-                        return false
3564
+                })
3565
+                  .then(function(response) {
3566
+                    if (response.data.state == 0) {
3567
+                      that.$message.error(response.data.msg)
3568
+                      that.$refs.register.showTwo(that.doctors, that.department,"",that.patientInfo,"")
3569
+                      return false
3570
+                    } else {
3571
+                      if (response.data.data.failed_code == -10) {
3572
+                        that.$refs.register.showTwo(that.doctors, that.department,"",that.patientInfo,"")
3569 3573
                       } else {
3570
-                        that.loadingone = false
3571
-                        if (response.data.data.failed_code == -10) {
3572
-                          // that.$message.error(response.data.data.msg)
3573
-                            this.$refs.register.showTwo(this.doctors, this.department,"")
3574
-                        } else {
3575
-                          this.$refs.register.showTwo(this.doctors, this.department,response.data.data.info)
3576
-                        }
3574
+                        that.$refs.register.showTwo(that.doctors, that.department,response.data.data.info,that.patientInfo,response.data.data.insutype)
3577 3575
                       }
3578
-                    })
3579
-                    .catch(function(error) {
3580
-                    })
3581
-                })
3582
-                  .catch(() => {});
3583
-                return false
3584
-              } else {
3585
-
3576
+                    }
3577
+                  })
3578
+                  .catch(function(error) {
3579
+                  })
3586 3580
               }
3587 3581
             }).catch(function(error) {
3588
-              that.$confirm("数据异常,请检查医保程序是否有打开", "提示", {
3589
-                confirmButtonText: "确 定",
3590
-                cancelButtonText: "取 消",
3591
-                type: "warning",
3592
-              }).then(() => {
3593
-              })
3594
-                .catch(() => {});
3582
+              that.$refs.register.showTwo(that.doctors, that.department,"",that.patientInfo,"")
3595 3583
             })
3596 3584
 
3597 3585
           }else{
@@ -3668,7 +3656,6 @@ export default {
3668 3656
           form['end_time'] = this.other_end_time_two
3669 3657
           form['settle_accounts_type'] = 2
3670 3658
         }
3671
-
3672 3659
         if (this.hisPatientInfo.balance_accounts_type == 2) {
3673 3660
           this.$confirm('是否进行预结算', '预结算', {
3674 3661
             confirmButtonText: '确 定',

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue 查看文件

@@ -3200,11 +3200,13 @@ export default {
3200 3200
               }
3201 3201
 
3202 3202
 
3203
-              if (this.org_id == 10721) {
3203
+              if (this.org_id == 10721 || this.org_id == 0) {
3204 3204
                 for (let i = 0; i < data.prescriptions.length; i++) {
3205 3205
                   data.prescriptions[i]["diagnoses"] = data.prescriptions[i].diagnose.join(",")
3206 3206
                 }
3207 3207
               }
3208
+              console.log(data.prescriptions)
3209
+
3208 3210
               createHisPrescription(data, params).then(response => {
3209 3211
                 if (response.data.state == 1) {
3210 3212
                   this.$emit('change', this.patientInfo.id)

+ 13 - 13
src/xt_permission.js 查看文件

@@ -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
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))