完善合同气瓶绑定引导

This commit is contained in:
czl231
2026-08-14 20:10:09 +08:00
parent 14263416e0
commit 2cff8fb942
7 changed files with 82 additions and 7 deletions

View File

@@ -95,6 +95,8 @@ export type ResourceField = {
relationAutoSelectKey?: string;
/** 关联候选为空时展示的业务引导。 */
relationEmptyText?: string;
/** 关联候选为空时提供的站内处理入口。 */
relationEmptyAction?: { label: string; routeName: string };
/** 该关联字段每次加载与搜索都必须携带的精确筛选参数。 */
relationFilters?: Record<string, string>;
/** 筛选结果中不存在当前值时立即清空,禁止通过详情补载绕过候选范围。 */
@@ -541,7 +543,10 @@ export const resources: ResourceUiDefinition[] = [
relationInvalidMessage: '所选合同已不是草稿状态,已清空,请重新选择',
relationEmptyText: '暂无可绑定气瓶的草稿合同,请先新建配送合同',
}), relation('product_info_identity', '/product_info', true, {
label: '智能气阀',
placeholder: '请先选择合同,再选择该合同用户可绑定的气瓶',
relationEmptyText: '该合同用户暂无可绑定的智能气阀。请先到“智能气阀管理”将设备归属变更为该用户,并确认设备已启用、未报废。',
relationEmptyAction: { label: '前往智能气阀管理', routeName: 'product-info' },
relationLinkage: {
parentKey: 'gasorder_contract_identity', optionParentKey: '',
filterKey: 'contract_identity', filterOnly: true,