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

feat(outpatient): 添加结算凭据打印提示

- 在门诊结算页面中,为非特定科室的用户提供打印结算凭据的提示
- 使用 this.$alert 弹窗询问用户是否打印结算凭据
- 确认后调用打印函数,取消则不打印
parent 3b6130bf
...@@ -2047,9 +2047,18 @@ export default { ...@@ -2047,9 +2047,18 @@ export default {
// } // }
let dept = localStorage.getItem('deptCode') let dept = localStorage.getItem('deptCode')
if (dept != '0502') { if (dept != '0502') {
this.$alert('是否打印结算凭条?', '提示', {
confirmButtonText: '确定',
callback: action => {
if (action == 'confirm') {
_this.printcard(jshidprint) _this.printcard(jshidprint)
} }
}
});
// _this.printcard(jshidprint)
}
// }, 5000) // }, 5000)
//刷新列表 //刷新列表
...@@ -2905,8 +2914,18 @@ export default { ...@@ -2905,8 +2914,18 @@ export default {
// } // }
// } // }
let dept = localStorage.getItem('deptCode') let dept = localStorage.getItem('deptCode')
if (dept != '0502') { if (dept != '0502') {
this.$alert('是否打印结算凭条?', '提示', {
confirmButtonText: '确定',
callback: action => {
if (action == 'confirm') {
_this.printcard(jshidprint) _this.printcard(jshidprint)
}
}
});
} }
// _this.printcard(jshidprint) // _this.printcard(jshidprint)
// }, 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