Files
eip4-platform/转换产物-attach/schema/20524acf-ed8f-4ac2-b79d-31246c82a075.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

292 lines
8.4 KiB
JSON

{
"type" : "page",
"title" : "时间银行",
"body" : {
"type" : "crud",
"api" : "/api/flow/HR_TIMEFLOW_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "SYS_USERID",
"label" : "用户",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/629463ae-81e7-4c03-9c6f-943cb0b175e1/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "CANTAKETHETIME",
"label" : "可调休时间(小时)",
"type" : "input-number",
"precision" : 1
}, {
"name" : "ANNUALLEAVE",
"label" : "年假(小时)",
"type" : "input-number",
"precision" : 1
}, {
"name" : "DEPARTID",
"label" : "部门",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
}, {
"name" : "ORGID",
"label" : "所属(分)公司",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
},
"columns" : [ {
"name" : "HR_TIMEFLOW_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "ACCOUNT",
"label" : "账号",
"width" : 150
}, {
"name" : "SYS_USERID_DISPLAY__",
"label" : "姓名",
"width" : 180
}, {
"name" : "ANNUALLEAVE",
"label" : "剩余年假(小时)",
"width" : 180
}, {
"name" : "CANTAKETHETIME",
"label" : "可调休时间(小时)",
"width" : 180
}, {
"name" : "TIMEFLOWS",
"label" : "流水记录",
"width" : 200,
"toggled" : false
}, {
"name" : "DEPARTID_DISPLAY__",
"label" : "部门",
"width" : 200
}, {
"name" : "ORGID_DISPLAY__",
"label" : "所属(分)公司",
"width" : 200
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "初始化新员工",
"label" : "初始化新员工",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "初始化新员工",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/ee5f8ecf-3392-4d0a-b70a-180cf064c47a?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_TIMEFLOW/defaults?templateId=ee5f8ecf-3392-4d0a-b70a-180cf064c47a"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_TIMEFLOW_ADD?__egtpl=ee5f8ecf-3392-4d0a-b70a-180cf064c47a",
"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/82703680-2808-416c-973b-f1df957806bd?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_TIMEFLOW/defaults?templateId=82703680-2808-416c-973b-f1df957806bd"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_TIMEFLOWDETAIL_BATCHADD?__egtpl=82703680-2808-416c-973b-f1df957806bd",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, {
"type" : "button",
"id" : "删除",
"label" : "删除",
"level" : "danger",
"actionType" : "ajax",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"confirmText" : "确认要删除此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_TIMEFLOW_DELETE",
"data" : {
"ids" : "${selectedItems|pick:HR_TIMEFLOW_ID|join:','}"
}
}
}, {
"type" : "button",
"id" : "查看明细",
"label" : "查看明细",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "时间银行流水记录",
"size" : "lg",
"data" : {
"HR_TIMEFLOW_ID" : "${selectedItems[0].HR_TIMEFLOW_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/751c9ad0-4da6-4df6-ac11-86d09b3c4fdd?format=amis"
},
"actions" : [ {
"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/e4955d56-5b77-40a4-8027-5386c7cd5ae3?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_TIMEFLOW/defaults?templateId=e4955d56-5b77-40a4-8027-5386c7cd5ae3"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_TIMEFLOW_ANNUALLEAVETOZERO?__egtpl=e4955d56-5b77-40a4-8027-5386c7cd5ae3",
"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/9b7eceb8-8a95-46b9-8abb-5b50250b4cfc?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_TIMEFLOW/defaults?templateId=9b7eceb8-8a95-46b9-8abb-5b50250b4cfc"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_TIMEFLOW_TIMETOZERO?__egtpl=9b7eceb8-8a95-46b9-8abb-5b50250b4cfc",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "HR_TIMEFLOW_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "20524acf-ed8f-4ac2-b79d-31246c82a075"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}