陈少旭 6 days ago
parent
commit
fe02470c49

+ 40 - 31
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

94
 
94
 
95
         <el-select
95
         <el-select
96
           v-model="form.insuplc_admdvs"
96
           v-model="form.insuplc_admdvs"
97
-          multiple
98
           filterable
97
           filterable
99
           remote
98
           remote
100
           reserve-keyword
99
           reserve-keyword
723
         let params = {
722
         let params = {
724
           'id_card_type': this.form.id_card_type,
723
           'id_card_type': this.form.id_card_type,
725
           'admin_user_id': this.$store.getters.xt_user.user.id,
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
           'certificates':this.form.certificates,
728
           'certificates':this.form.certificates,
727
         }
729
         }
728
 
730
 
745
                   })
747
                   })
746
 
748
 
747
                 }else {
749
                 }else {
750
+                  that.$message({ message: '读卡成功', type: 'success' })
748
                   var patient = response.data.data.patient
751
                   var patient = response.data.data.patient
749
-
750
                   if (that.form.id_card_type == 1) {
752
                   if (that.form.id_card_type == 1) {
751
                     that.form.id = patient.id
753
                     that.form.id = patient.id
752
                     that.form.name = patient.name
754
                     that.form.name = patient.name
771
                     that.form.id_card = patient.id_card_no
773
                     that.form.id_card = patient.id_card_no
772
                     that.form.blac = response.data.data.blac
774
                     that.form.blac = response.data.data.blac
773
                     that.form.psn_desc = response.data.data.desc
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
                   } else {
786
                   } else {
775
                     that.form.id = patient.id
787
                     that.form.id = patient.id
776
                     that.form.name = patient.name
788
                     that.form.name = patient.name
783
                     that.form.blac = response.data.data.blac
795
                     that.form.blac = response.data.data.blac
784
                     that.form.psn_desc = response.data.data.desc
796
                     that.form.psn_desc = response.data.data.desc
785
                   }
797
                   }
786
-                  that.$message({ message: '读卡成功', type: 'success' })
787
                 }
798
                 }
788
               }
799
               }
789
             })
800
             })
950
 
961
 
951
 
962
 
952
       showTwo: function(doctors,departments,info,patient_info,insutype) {
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
         this.options =  this.$store.getters.insuplc_admdvs
972
         this.options =  this.$store.getters.insuplc_admdvs
955
-        console.log(this.options)
956
         this.list =  this.$store.getters.insuplc_admdvs
973
         this.list =  this.$store.getters.insuplc_admdvs
957
-        console.log(this.list)
958
 
974
 
959
         this.visibility = true
975
         this.visibility = true
960
         // this.form = Object.assign({}, this.resetForm)
976
         // this.form = Object.assign({}, this.resetForm)
969
         this.form.age = ''
985
         this.form.age = ''
970
         this.form.id_card = ''
986
         this.form.id_card = ''
971
         this.form.register = ''
987
         this.form.register = ''
972
-
973
         this.form.doctor = ''
988
         this.form.doctor = ''
974
         this.form.department = ''
989
         this.form.department = ''
975
         this.form.registration_fee = ''
990
         this.form.registration_fee = ''
978
         this.form.phone = ''
993
         this.form.phone = ''
979
         this.form.social_type = ''
994
         this.form.social_type = ''
980
         this.form.insuplc_admdvs =''
995
         this.form.insuplc_admdvs =''
981
-
982
-        this.form.p_type = 14
983
         this.form.sick_type = this.sick[0].id
996
         this.form.sick_type = this.sick[0].id
984
         this.form.diagnosis = this.diagnoses[0].id
997
         this.form.diagnosis = this.diagnoses[0].id
985
         this.form.id_card_type = 2
998
         this.form.id_card_type = 2
986
         this.form.certificates = 1
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
         if (departments.length > 0) {
1001
         if (departments.length > 0) {
991
           this.form.department = departments[0].id
1002
           this.form.department = departments[0].id
992
         }
1003
         }
993
-        console.log("11231231231223233432423dddd312")
994
         if (doctors.length > 0) {
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
         this.form.id = patient_info.id
1008
         this.form.id = patient_info.id
1015
         this.form.name = patient_info.name
1009
         this.form.name = patient_info.name
1016
         this.form.gender = patient_info.gender
1010
         this.form.gender = patient_info.gender
1031
           '-' +
1025
           '-' +
1032
           birth.substr(6, 2)
1026
           birth.substr(6, 2)
1033
         this.form.age = jsGetAge(births, '-')
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
       hide: function () {
1046
       hide: function () {
1038
         this.visibility = false
1047
         this.visibility = false
1039
         this.$refs['formValue'].resetFields()
1048
         this.$refs['formValue'].resetFields()

+ 36 - 49
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

128
                        type="primary">挂号
128
                        type="primary">挂号
129
             </el-button>
129
             </el-button>
130
 
130
 
131
+<!--            <el-button  size="small"-->
132
+<!--                       @click="open(10086)"-->
133
+<!--                       type="primary">查询医保参保信息-->
134
+<!--            </el-button>-->
135
+
131
             <el-button v-loading="loadingone" size="small"
136
             <el-button v-loading="loadingone" size="small"
132
                        @click="open(20)"
137
                        @click="open(20)"
133
                        type="primary">查询备案信息
138
                        type="primary">查询备案信息
134
             </el-button>
139
             </el-button>
135
 
140
 
136
-
137
-
138
             <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)"
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
                         @click="openZF(1)"
142
                         @click="openZF(1)"
140
                         type="primary">自费门诊就医上传(4205)
143
                         type="primary">自费门诊就医上传(4205)
218
                             </el-button>
221
                             </el-button>
219
 
222
 
220
                               <el-select style="margin-right:5px;width:300px;"
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
                                 <el-option
225
                                 <el-option
223
                                   v-for="(item,index) in diagnoses"
226
                                   v-for="(item,index) in diagnoses"
224
                                   :key="index"
227
                                   :key="index"
3398
       this.other_prescriptions = prescriptions
3401
       this.other_prescriptions = prescriptions
3399
 
3402
 
3400
       if (index == 1) {
3403
       if (index == 1) {
3404
+      }else if (index == 10086) {
3405
+
3406
+
3401
       } else if (index == 2) {
3407
       } else if (index == 2) {
3402
         this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
3408
         this.$router.push('/outpatientDoctorStation/printtwo?record=' + this.record_date)
3403
       } else if (index == 3) {
3409
       } else if (index == 3) {
3539
         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) {
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
           this.$refs.register9504.show()
3546
           this.$refs.register9504.show()
3541
         } else {
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
             var  that= this
3549
             var  that= this
3545
             axios.get('http://127.0.0.1:9532/test/net',{}).then(function(response) {
3550
             axios.get('http://127.0.0.1:9532/test/net',{}).then(function(response) {
3546
               if (response.data.state == 0) {
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
                       } else {
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
             }).catch(function(error) {
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
           }else{
3585
           }else{
3668
           form['end_time'] = this.other_end_time_two
3656
           form['end_time'] = this.other_end_time_two
3669
           form['settle_accounts_type'] = 2
3657
           form['settle_accounts_type'] = 2
3670
         }
3658
         }
3671
-
3672
         if (this.hisPatientInfo.balance_accounts_type == 2) {
3659
         if (this.hisPatientInfo.balance_accounts_type == 2) {
3673
           this.$confirm('是否进行预结算', '预结算', {
3660
           this.$confirm('是否进行预结算', '预结算', {
3674
             confirmButtonText: '确 定',
3661
             confirmButtonText: '确 定',

+ 3 - 1
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

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