Commit 8cb7dc5f authored by 任鸿志's avatar 任鸿志

refactor(jiesuan): 门诊结算页面逻辑调整

- 移除自动打印结算凭条的弹窗确认
- 根据 webSource 参数控制打印逻辑
- 注释掉部分冗余代码
- 优化结算流程中的条件判断
parent b4f4843a
......@@ -757,8 +757,10 @@ export default {
this.socketInit()
},
created() {
let dept = this.$route.query.webSource
console.log(dept,'ooooooooooooooo')
// if (this.$route.query?.jobNumber) {
// localStorage.setItem('jobNumber', this.$route.query.jobNumber)
// localStorage.setItem('jobNumber', this.$route.query.webSource)
// }
this.settleType = this.$route.query?.settleType || ''
this.channel = this.$route.query?.channel || ''
......@@ -2047,18 +2049,21 @@ export default {
// }
let dept = localStorage.getItem('deptCode')
if (dept != '0502') {
this.$confirm('是否打印结算凭条?', '提示', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
if (deptthis.$route.query.webSource!=6) {
_this.printcard(jshidprint)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}
// this.$confirm('是否打印结算凭条?', '提示', {
// confirmButtonText: '是',
// cancelButtonText: '否',
// type: 'warning'
// }).then(() => {
// }).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消'
// });
// });
// this.$alert('是否打印结算凭条?', '提示', {
// confirmButtonText: '确定',
// callback: action => {
......@@ -2170,9 +2175,9 @@ export default {
this.costlist = []
this.loading2 = false
}
if (this.tylist.length == 1) {
this.jiesuan()
}
// if (this.tylist.length == 1) {
// this.jiesuan()
// }
// })
} else {
this.selectTableArr = array
......@@ -2217,9 +2222,9 @@ export default {
this.costlist = []
this.loading2 = false
}
if (this.tylist.length == 1) {
this.jiesuan()
}
// if (this.tylist.length == 1) {
// this.jiesuan()
// }
}
} else {
this.selectTableArr = array
......@@ -2264,9 +2269,9 @@ export default {
this.costlist = []
this.loading2 = false
}
if (this.tylist.length == 1) {
this.jiesuan()
}
// if (this.tylist.length == 1) {
// this.jiesuan()
// }
}
this.isGS = this.selectTableArr[0]?.settle_type.is_gs
},
......@@ -2928,18 +2933,21 @@ export default {
let dept = localStorage.getItem('deptCode')
if (dept != '0502') {
this.$confirm('是否打印结算凭条?', '提示', {
confirmButtonText: '',
cancelButtonText: '',
type: 'warning'
}).then(() => {
if (deptthis.$route.query.webSource!=6) {
_this.printcard(jshidprint)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}
// this.$confirm('是否打印结算凭条?', '提示', {
// confirmButtonText: '',
// cancelButtonText: '',
// type: 'warning'
// }).then(() => {
// _this.printcard(jshidprint)
// }).catch(() => {
// this.$message({
// type: 'info',
// message: '已取消'
// });
// });
// this.$alert('是否打印结算凭条?', '提示', {
// confirmButtonText: '确定',
// callback: action => {
......
......@@ -136,7 +136,7 @@
<el-option v-for="item in patientData.mzdbjbs_arr" :key="item.code" :label="item.name" :value="item.code">
</el-option>
</el-select>
<el-input v-model="patientData.mzdbjbs" disabled></el-input>
<!-- <el-input v-model="patientData.mzdbjbs" disabled></el-input> -->
</div>
</el-form-item>
<el-form-item>
......
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