Commit 44dddb11 authored by 任鸿志's avatar 任鸿志

refactor(invoice): 优化发票弹窗功能

- 将发票弹窗的取消按钮绑定到新的 deleteinvoic 方法
- 在 deleteinvoic 方法中触发 success 事件
- 在 outpatientCharging 组件中添加 invoicepostSuccess 方法处理发票弹窗关闭逻辑
- 调整发票弹窗显示逻辑,移除冗余的 isOpenCardeds 属性
parent 34e69852
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button @click="InvoicingFun" type="primary">开票</el-button> <el-button @click="InvoicingFun" type="primary">开票</el-button>
<el-button @click="isOpenCardeds = false" type="danger" plain>取消</el-button> <el-button @click="deleteinvoic" type="danger" plain>取消</el-button>
</div> </div>
</template> </template>
</el-dialog> </el-dialog>
...@@ -125,6 +125,9 @@ export default { ...@@ -125,6 +125,9 @@ export default {
}, },
}, },
methods: { methods: {
deleteinvoic(){
this.$emit('success')
},
// 开票 // 开票
async InvoicingFun() { async InvoicingFun() {
let param = { let param = {
...@@ -146,7 +149,8 @@ export default { ...@@ -146,7 +149,8 @@ export default {
message: '开票成功', message: '开票成功',
type: 'success', type: 'success',
}) })
this.isOpenCardeds = false // this.isOpenCardeds = false
this.$emit('success')
} }
else { else {
this.$message({ this.$message({
......
...@@ -551,7 +551,7 @@ ...@@ -551,7 +551,7 @@
<Readcards :isOpenCarded="carddialogFormVisible" @getyibaoinfo="getyibaoinfo" @closeReadcard="closeReadcard" /> <Readcards :isOpenCarded="carddialogFormVisible" @getyibaoinfo="getyibaoinfo" @closeReadcard="closeReadcard" />
<!-- 确认结算-新-不选择卡类型 --> <!-- 确认结算-新-不选择卡类型 -->
<ReadcardsNew :isOpenCarded="yibaoshowNew" :patientcard="form" :patientData="patientData" :selectTableArr="selectTableArr" @getyibaoinfo="selectCardYiboPreselect" @close="closeSelectCard" /> <ReadcardsNew :isOpenCarded="yibaoshowNew" :patientcard="form" :patientData="patientData" :selectTableArr="selectTableArr" @getyibaoinfo="selectCardYiboPreselect" @close="closeSelectCard" />
<invoicepost :isOpenCarded="invoicepostVisible" :patientData="invoicepostData"></invoicepost> <invoicepost :isOpenCarded="invoicepostVisible" :patientData="invoicepostData" @success="invoicepostSuccess"></invoicepost>
<!-- loaidng 动画 --> <!-- loaidng 动画 -->
<div v-if="false" class="grey-cloth" id="loading"> <div v-if="false" class="grey-cloth" id="loading">
<div id="img"> <div id="img">
...@@ -918,6 +918,10 @@ export default { ...@@ -918,6 +918,10 @@ export default {
}, },
}, },
methods: { methods: {
invoicepostSuccess(){
console.log('invoicepostSuccess')
this.invoicepostVisible = false
},
async deleteViolation() { async deleteViolation() {
await serviceInvoke({ await serviceInvoke({
warn_rslt_id: this.weiguiList[0].jrid, warn_rslt_id: this.weiguiList[0].jrid,
...@@ -1811,6 +1815,7 @@ export default { ...@@ -1811,6 +1815,7 @@ export default {
// }, // },
cardtype(type) { cardtype(type) {
this.invoicepostVisible=true
this.patientInfo = {} this.patientInfo = {}
this.typeList = [] this.typeList = []
this.costlist = [] this.costlist = []
......
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