Commit af78937f authored by 任鸿志's avatar 任鸿志

refactor(invoicepost): 移除未使用的代码并优化患者信息显示

- 删除了 invoicepost 组件中的 handleCloseModal 方法
- 在 outpatientCharging 组件中注释掉了未使用的 printcard 方法调用
- 优化了患者性别信息的显示,使用 sex.name 属性
parent 44a21bee
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
custom-class="my-reader-card" custom-class="my-reader-card"
:show-close="true" :show-close="true"
:close-on-click-modal="false" :close-on-click-modal="false"
@close="handleCloseModal"
> >
<div class="medtihuj"> <div class="medtihuj">
<div style="font-weight: 600">温馨提示</div> <div style="font-weight: 600">温馨提示</div>
...@@ -149,20 +148,11 @@ export default { ...@@ -149,20 +148,11 @@ export default {
this.isOpenCardeds = false this.isOpenCardeds = false
} }
}, },
// 关闭弹窗 // // 关闭弹窗
handleCloseModal() { // handleCloseModal() {
this.$emit('closeReadcard', false) // this.$emit('closeReadcard', false)
// this.isOpenCarded = false // this.PatientInfo = {}
if (this.DiagnosisCardOptions?.length > 0) { // },
this.form.physicalCardType = this.DiagnosisCardOptions[0].code
} else {
this.form.physicalCardType = ''
}
this.form.physicalCard = ''
this.PatientInfo = {}
clearInterval(this.interval)
this.closedevice()
},
closeWebSocket() { closeWebSocket() {
this.websocket.close() this.websocket.close()
}, },
......
...@@ -2059,7 +2059,7 @@ export default { ...@@ -2059,7 +2059,7 @@ export default {
const jshidprint = response.data const jshidprint = response.data
this.invoicepostData=response.data this.invoicepostData=response.data
this.invoicepostVisible=true this.invoicepostVisible=true
_this.printcard(jshidprint) // _this.printcard(jshidprint)
this.selectCardYiboInfo() this.selectCardYiboInfo()
//刷新列表 //刷新列表
var obj = { var obj = {
...@@ -2587,7 +2587,7 @@ export default { ...@@ -2587,7 +2587,7 @@ export default {
</div> </div>
<div style="margin:-5px 0px 0px 18px;position: relative"> <div style="margin:-5px 0px 0px 18px;position: relative">
<div class="conline"><span>姓名:</span><span class="money">${this.patientData.name}</span></div> <div class="conline"><span>姓名:</span><span class="money">${this.patientData.name}</span></div>
<div class="conline"><span>性别:</span><span class="money">${this.patientData.sex}</span></div> <div class="conline"><span>性别:</span><span class="money">${this.patientData.sex?this.patientData.sex.name:''}</span></div>
<div class="conline"><span>年龄:</span><span class="money">${this.patientData.age}</span></div> <div class="conline"><span>年龄:</span><span class="money">${this.patientData.age}</span></div>
<div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div> <div class="conline"><span>就诊卡号:</span><span class="money">${e.id_card}</span></div>
<div class="conline"><span>交易方式:</span><span class="money">${e.trade_type}</span></div> <div class="conline"><span>交易方式:</span><span class="money">${e.trade_type}</span></div>
...@@ -2693,7 +2693,7 @@ export default { ...@@ -2693,7 +2693,7 @@ export default {
this.invoicepostVisible=true this.invoicepostVisible=true
const jshidprint = response.data const jshidprint = response.data
// setTimeout(function () { // setTimeout(function () {
_this.printcard(jshidprint) // _this.printcard(jshidprint)
this.getWaiting() this.getWaiting()
this.selectCardYiboInfo() this.selectCardYiboInfo()
// }, 5000) // }, 5000)
......
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