浏览代码

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

28169 8 个月前
父节点
当前提交
2c63983f34
共有 1 个文件被更改,包括 1 次插入75 次删除
  1. 1 75
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 1 - 75
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -3850,80 +3850,7 @@ export default {
3850 3850
           "admin_user_id":this.$store.getters.xt_user.user.id,
3851 3851
           'his_patient_id': this.hisPatientInfo.id,
3852 3852
         }
3853
-        if ((this.$store.getters.xt_user.org_id == 10387)){
3854
-          try {
3855
-            //检测当前浏览器是否支持websocket模式
3856
-            window.WebSocket = window.WebSocket || window.MozWebSocket;
3857
-            if (!window.WebSocket){
3858
-              alert("WebSocket not supported by this browser");
3859
-              return;
3860
-            }
3861
-            this.ws = new WebSocket("ws://127.0.0.1:8899");//连接服务器
3862
-            var that = this
3863
-            this.ws.onopen = function(event){
3864
-              if (that.$store.getters.xt_user.org_id == 10387){
3865
-                that.ws.send("{\"url\":\"https://dvs.hun.hsip.gov.cn/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"罗佳菊\",\"orgId\":\"H43082200408\"},\"orgId\":\"H43082200408\",\"transType\":\"ec.query\"}}");
3866
-              }
3867
-                // else if(that.$store.getters.xt_user.org_id == 10318){
3868
-                //   that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
3869
-              // }
3870
-              else if(that.$store.getters.xt_user.org_id == 4){
3871
-                that.ws.send("{\"url\":\"http://igb.hsa.gdgov.cn/prd_nation_eccode/prd_eccode/localcfc/api/hsecfc/localQrCodeQuery\",\"indata\":{\"data\":{\"businessType\":\"01301\",\"deviceType\":\"\",\"officeId\":\"32760\",\"officeName\":\"肾内科\",\"operatorId\":\"admin\",\"operatorName\":\"邹刘阳\",\"orgId\":\"H44011701749\"},\"orgId\":\"H44011701749\",\"transType\":\"ec.query\"}}");
3872
-              }
3873
-            };
3874
-
3875
-            this.ws.onmessage = function(event){
3876
-              // alert("接收到服务器发送的数据:\r\n"+event.data);
3877
-              var newParams =  JSON.parse(event.data)
3878
-              newParams['ecToken'] = newParams.data.ecToken
3879
-              newParams['idNo'] = newParams.data.idNo
3880
-              newParams['userName'] = newParams.data.userName
3881
-              newParams['insuOrg'] = newParams.data.insuOrg
3882
-              newParams['id_card_type'] =  that.form.id_card_type
3883
-              newParams['admin_user_id'] = that.$store.getters.xt_user.user.id
3884
-              newParams['certificates'] = that.form.certificates
3885
-              axios.get('http://127.0.0.1:9532/api/readele', {
3886
-                params: newParams
3887
-              })
3888
-                .then(function(response) {
3889
-                  if (response.data.state == 0) {
3890
-                    that.$message.error(response.data.msg)
3891
-                    return false
3892
-                  } else {
3893
-                    if (response.data.data.failed_code == -10) {
3894
-                      // that.$message.error(response.data.data.msg)
3895
-                      that.$confirm(response.data.data.msg, '医保错误信息', {
3896
-                        confirmButtonText: '确 定',
3897
-                        type: 'warning'
3898
-                      }).then(() => {
3899
-
3900
-                      }).catch(() => {
3901
-                      })
3902
-                    }else{
3903
-                      that.$message({ message: response.data.data.msg, type: 'success', duration: 5000 })
3904
-                    }
3905
-                  }
3906
-                })
3907
-                .catch(function(error) {
3908
-
3909
-                })
3910
-
3911
-
3912
-            };
3913
-            this.ws.onclose = function(event){
3914
-              alert("已经与服务器断开连接\r\n当前连接状态:"+this.readyState);
3915
-            };
3916
-            this.ws.onerror = function(event){
3917
-              if (this.flag!=1)
3918
-                alert("WebSocket接收异常!");
3919
-            };
3920
-          } catch (ex) {
3921
-            alert(ex.message);
3922
-          }
3923
-
3924
-        }else{
3925
-
3926
-          axios.get('http://127.0.0.1:9532/api/readele', {
3853
+        axios.get('http://127.0.0.1:9532/api/readele', {
3927 3854
             params: params
3928 3855
           })
3929 3856
             .then(function(response) {
@@ -3947,7 +3874,6 @@ export default {
3947 3874
             })
3948 3875
             .catch(function(error) {
3949 3876
             })
3950
-        }
3951 3877
       }else if(index == 55){
3952 3878
         var that = this
3953 3879
         let params = {