复诊到期跟进:新增诊次筛选

按当前已完成诊次(current_slot)筛选:未成交 / 第 1~5 诊 / 第 6 诊及以上,
列表、计数与导出同口径;后端 slot 参数支持 N 精确与 N+ 下限。

Co-Authored-By: Claude Opus 5 <[EMAIL]>
This commit is contained in:
Your Name
2026-12-05 09:29:12 +08:00
co-authored by Claude Opus 5
parent b8f3c049be
commit 63152179bd
3 changed files with 47 additions and 2 deletions
+2
View File
@@ -159,6 +159,8 @@ export interface RevisitDueListsParams {
dept_id?: number | ''
state?: string
days_bucket?: string
/** 诊次(current_slot):'1'~'5' 精确,'6+' = 第 6 诊及以上 */
slot?: string
min_snooze?: number | ''
keyword?: string
page_no?: number
+26 -1
View File
@@ -66,6 +66,22 @@
/>
</el-select>
</el-form-item>
<el-form-item label="诊次">
<el-select
v-model="queryParams.slot"
clearable
placeholder="全部"
class="w-[130px]"
@change="doSearch"
>
<el-option
v-for="opt in slotOptions"
:key="opt.value"
:label="opt.label"
:value="opt.value"
/>
</el-select>
</el-form-item>
<el-form-item label="延迟次数 ≥">
<el-input-number
v-model="minSnooze"
@@ -97,7 +113,7 @@
:fetch-fun="revisitDueLists"
:params="queryParams"
:page-size="pager.size"
export-hint="导出范围与当前筛选一致(医助 / 部门 / 状态 / 开药天数 / 延迟次数 / 患者)"
export-hint="导出范围与当前筛选一致(医助 / 部门 / 状态 / 开药天数 / 诊次 / 延迟次数 / 患者)"
/>
</el-form-item>
</el-form>
@@ -377,6 +393,13 @@ const router = useRouter()
/** 状态筛选:诊单列表的 7 个状态 + 主管视图专有「人工关闭」 */
const stateOptions = [...REVISIT_STATE_FILTER_OPTIONS, { label: '人工关闭', value: 'closed' }]
/** 诊次筛选(按当前已完成诊次 current_slot):0 = 未成交,1~5 精确,6+ = 第 6 诊及以上 */
const slotOptions = [
{ label: '未成交', value: '0' },
...[1, 2, 3, 4, 5].map((n) => ({ label: `第 ${n} 诊`, value: String(n) })),
{ label: '第 6 诊及以上', value: '6+' }
]
const assistantOptions = ref<Array<{ id: number; name: string }>>([])
const deptTreeOptions = ref<DeptTreeNode[]>([])
const deptTreeProps = { value: 'id', label: 'name', children: 'children' }
@@ -386,6 +409,7 @@ const queryParams = reactive<RevisitDueListsParams>({
dept_id: '',
state: '',
days_bucket: '',
slot: '',
min_snooze: '',
keyword: ''
})
@@ -409,6 +433,7 @@ const handleReset = () => {
queryParams.dept_id = ''
queryParams.state = ''
queryParams.days_bucket = ''
queryParams.slot = ''
queryParams.min_snooze = ''
queryParams.keyword = ''
minSnooze.value = undefined