Commit 944da45c authored by 任鸿志's avatar 任鸿志

feat(outpatient): 添加多医生开立费用提示

- 在处理账单时,增加了对多个医生开立费用的检查
- 当选中的账单包含多个医生开立的费用时,显示警告提示
parent c3fb069b
...@@ -2075,6 +2075,12 @@ export default { ...@@ -2075,6 +2075,12 @@ export default {
let that = this let that = this
let x = array let x = array
if (array.length > 1) { if (array.length > 1) {
if (!(array.every(item => item.doct_name === arr[0].doct_name))) {
that.$message({
message: '本次勾选账单,含多个医生开立的费用',
type: 'warning',
})
}
var set = new Set() var set = new Set()
for (var i = 0; i < array.length; i++) { for (var i = 0; i < array.length; i++) {
set.add(array[i].distinct_no) set.add(array[i].distinct_no)
......
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