Commit 91c5c0a9 authored by 任鸿志's avatar 任鸿志

refactor(outpatientCharging): 移除银行卡 MIS 交易相关代码

- 删除了 get_serial_number 和 BanksetOnmessageMessage 方法
- 移除了与银行卡 MIS 交易相关的逻辑和接口调用
- 优化了代码结构,提高了代码的可读性和维护性
parent d3322feb
......@@ -1305,109 +1305,6 @@ export default {
// this.get_serial_number('3')
// }
},
//银行卡mis交易、获取参考号
get_serial_number(e) {
get_serial_number({
type: 'MIS',
})
.then(response => {
const _this = this
// var wsImpl = window.WebSocket || window.MozWebSocket
// _this.ws = new wsImpl('ws://127.0.0.1:50000/')
var input = this.form.djf
let x =
'Trans&00|00|' +
input +
'|||||{"patientInfo":{"patientId":"' +
this.patientCard.patientId +
'","patientName":"' +
this.patientCard.name +
'","cardNo":"' +
this.patientCard.idCard +
'","accountType":"01","visitId":"","ywlx":"SUCCESS","transType":"bank","cardType":"01","source":"窗口门诊银行卡充值","operatorId":"' +
localStorage.getItem('userbh') +
'","operatorName":"' +
localStorage.getItem('usernames') +
'","orderId":"' +
response.data.value +
'","id_card_no":"' +
this.patientCard.idCard +
'"}}'
get_serial_number({
type: 'MIS',
value: x,
valtp: 'mz_ylmiss',
}).then(response => {})
this.resorderID = response.data.value
var wsImpl = window.WebSocket || window.MozWebSocket
_this.ws = new wsImpl('ws://127.0.0.1:50000/')
_this.ws.onopen = function () {
_this.ws.send(x)
}
_this.ws.onmessage = this.BanksetOnmessageMessage
_this.ws.onclose = function () {}
})
.finally(() => {
this.uploadfeeshow = false
})
},
//银行卡返回方法
BanksetOnmessageMessage(evt) {
const ret = JSON.parse(evt.data)
if (ret && ret.TrandeCode == '00') {
this.$message({
message: ret.TrandeMsg,
type: 'success',
})
this.misdata = ret
this.ckh = ret.TradeRef
recharge({
bank_card: ret.BankNo,
payment_type: 'MIS_BANK',
amount: this.form.djf,
auth_code: 'null',
his_patient_id: this.tableData.patient.id,
patient_type: 'mz',
mis_no: this.resorderID,
mis_rs_no: ret.TradeRef,
mis_flow_no: ret.TraceNo,
settlement_no: this.bxxxinfo.settlement_no,
})
.then(response => {
this.$message({
message: response.message,
type: 'success',
})
this.loadingapplyList = false
this.sureshow = false
this.jeizhishow = false
this.fullscreenLoading = false
this.jiezhiLoading = false
if (this.bxxxinfo.brfdje * 1 > response.data.his_balance * 1) {
this.bxxxinfo.his_deduct_amount = response.data.his_balance * 1
} else {
this.bxxxinfo.his_deduct_amount = this.bxxxinfo.brfdje * 1
}
this.bxxxinfo.his_balance = response.data.his_balance * 1
let djsold = this.round(this.bxxxinfo.brfdje - this.bxxxinfo.grzhzf, 2)
this.form.djf = this.round(this.round(djsold - this.bxxxinfo.his_deduct_amount, 2) - this.bxxxinfo.gjzhzf, 2)
this.fullscreenLoading = false
this.yibaoshow = false
this.qrjsmiss('1')
})
.finally(res => {
this.uploadfeeshow = false
})
} else {
this.$message({
message: ret.TrandeMsg,
type: 'error',
})
this.fullscreenLoading = false
this.dialogVisible = false
this.sureshow = false
}
},
//本地刷医保卡和电子医保凭证方法
cardjiesuan() {
this.jeizhishow = false
......@@ -1716,7 +1613,6 @@ export default {
res.push(e[i])
}
}
console.log(result, 'pppppppppppppppppp')
this.typeList = result
this.patientInfo.yblx = this.typeList[0] ? this.typeList[0].settle_type.name : ''
sele_one.push(e[0])
......@@ -2548,7 +2444,7 @@ export default {
channel: this.channel,
// is_gz: this.man_name == '3' ? true : false,
injury_date: this.GSdatatime,
p_jbbm: this.man_name == '1' ? '' : this.man_name == '2' ? '' : this.man_name == '3' ? '' : this.man_name == '4' ? zhenduan : this.selectTableArr[0]?.settle_type.is_mb ? zhenduan : '',
p_jbbm: this.man_name == '1' ? '' : this.man_name == '2' ? '' : this.man_name == '3' ? '' : this.man_name == '4' ? zhenduan : this.selectTableArr[0]?.settle_type.is_mb ? this.selectTableArr[0]?.chronic_code : '',
patient_id: this.patientData.patient_id,
cache_key: data.cache_key,
prescription_nos: this.cost_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment