Commit 7602a891 authored by 任鸿志's avatar 任鸿志

```

refactor(outpatient.vue): 修正条件判断逻辑并添加打印凭条确认对话框
parent 8cb7dc5f
...@@ -2049,8 +2049,21 @@ export default { ...@@ -2049,8 +2049,21 @@ export default {
// } // }
let dept = localStorage.getItem('deptCode') let dept = localStorage.getItem('deptCode')
if (dept != '0502') { if (dept != '0502') {
if (deptthis.$route.query.webSource!=6) { if (this.$route.query.webSource!=6) {
_this.printcard(jshidprint) _this.printcard(jshidprint)
}else{
this.$confirm('是否打印结算凭条?', '提示', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
_this.printcard(jshidprint)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
} }
// this.$confirm('是否打印结算凭条?', '提示', { // this.$confirm('是否打印结算凭条?', '提示', {
// confirmButtonText: '是', // confirmButtonText: '是',
...@@ -2933,8 +2946,21 @@ export default { ...@@ -2933,8 +2946,21 @@ export default {
let dept = localStorage.getItem('deptCode') let dept = localStorage.getItem('deptCode')
if (dept != '0502') { if (dept != '0502') {
if (deptthis.$route.query.webSource!=6) { if (this.$route.query.webSource!=6) {
_this.printcard(jshidprint) _this.printcard(jshidprint)
}else{
this.$confirm('是否打印结算凭条?', '提示', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
_this.printcard(jshidprint)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
} }
// this.$confirm('是否打印结算凭条?', '提示', { // this.$confirm('是否打印结算凭条?', '提示', {
// confirmButtonText: '', // confirmButtonText: '',
......
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