Files
eip4-platform/转换产物-attach/schema/a7acc4f6-6282-4024-8aff-65d21c40d9a3.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg,
保留 13-arg 兼容构造);新增 PageBlueprintChild record。
PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架,
新增/编辑表单内联 house-style input-table 子表(name=listColumn,
quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。
validate 接受 master-detail 并要求 child 非空/childTable/listColumn
非空/fields 非空。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 15:16:30 +08:00

214 lines
5.9 KiB
JSON

{
"type" : "page",
"title" : "采集用户信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_USER_KQ_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "NAME",
"label" : "姓名",
"type" : "input-text"
}, {
"name" : "MOBILE",
"label" : "手机",
"type" : "input-text"
}, {
"name" : "USERORGID",
"label" : "组织",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "STATE",
"label" : "状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/USERSTATE"
}, {
"name" : "MASTERDEPARTDISPLAY",
"label" : "主部门名称",
"type" : "input-text"
}, {
"name" : "MASTERPOSITIONDISPLAY",
"label" : "主岗位名称",
"type" : "input-text"
}, {
"name" : "ISCOLLECTED",
"label" : "是否采集信息",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "ISSEND",
"label" : "是否已下发",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
},
"columns" : [ {
"name" : "VIEW_USER_KQ_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "NAME",
"label" : "姓名",
"width" : 100
}, {
"name" : "MOBILE",
"label" : "手机",
"width" : 100
}, {
"name" : "USERORGID_DISPLAY__",
"label" : "组织",
"width" : 200
}, {
"name" : "MASTERDEPARTDISPLAY",
"label" : "主部门名称",
"width" : 200
}, {
"name" : "MASTERPOSITIONDISPLAY",
"label" : "主岗位名称",
"width" : 200
}, {
"name" : "ISCOLLECTED",
"label" : "是否采集信息",
"width" : 80,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "CCID",
"label" : "考勤号码",
"width" : 80
}, {
"name" : "DEVSTEXT",
"label" : "已下发考勤设备",
"width" : 200
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "采集下发用户",
"label" : "采集下发用户",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "采集下发用户",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/VIEW_USER_KQ_LOAD?__egtpl=7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4",
"data" : {
"VIEW_USER_KQ_ID" : "${VIEW_USER_KQ_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/VIEW_USER_KQ_COLLECTEDANDSEND?__egtpl=7ca66a9b-9eef-43a8-8710-bfc9cdc7baa4",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "下发用户",
"label" : "下发用户",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "下发用户",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/9012c5ba-3b62-44bf-adef-3e9dcb6c5379?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/VIEW_USER_KQ_LOAD?__egtpl=9012c5ba-3b62-44bf-adef-3e9dcb6c5379",
"data" : {
"VIEW_USER_KQ_ID" : "${VIEW_USER_KQ_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/VIEW_USER_KQ_SEND?__egtpl=9012c5ba-3b62-44bf-adef-3e9dcb6c5379",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "批量下发",
"label" : "批量下发",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "批量下发",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/e6de9258-7260-4cae-9fc2-6057fd92e457?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/VIEW_USER_KQ/defaults?templateId=e6de9258-7260-4cae-9fc2-6057fd92e457"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/VIEW_USER_KQ_SENDBATCH?__egtpl=e6de9258-7260-4cae-9fc2-6057fd92e457",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "VIEW_USER_KQ_ID"
}
}