Files
eip4-platform/转换产物-attach/schema/abe4ec54-2087-4b77-9f2c-629614ea927f.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

250 lines
6.9 KiB
JSON

{
"type" : "page",
"title" : "借阅历史管理",
"body" : {
"type" : "crud",
"api" : "/api/flow/DM_ARCHIVESBORROW_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "NO",
"label" : "编号",
"type" : "input-text"
}, {
"name" : "NAME",
"label" : "文件题名",
"type" : "input-text"
}, {
"name" : "BACKTIME",
"label" : "预计归还日期",
"type" : "input-date-range"
}, {
"name" : "REMARK",
"label" : "借阅事由",
"type" : "input-text"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS"
}, {
"name" : "CREATEBY",
"label" : "借阅人",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "APPLYSTATUS",
"label" : "借阅状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/DM_ARCHIVESBORROW_BORROWSTATUS"
} ]
},
"columns" : [ {
"name" : "DM_ARCHIVESBORROW_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "NOVIEW",
"label" : "编号",
"width" : 200
}, {
"name" : "ARCHIVEID_DISPLAY__",
"label" : "档案",
"width" : 200
}, {
"name" : "BACKTIME",
"label" : "预计归还日期",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "REMARK",
"label" : "借阅事由",
"width" : 200
}, {
"name" : "CREATEBY_DISPLAY__",
"label" : "借阅人",
"width" : 200
}, {
"name" : "APPLYSTATUS",
"label" : "借阅状态",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "待审核",
"2" : "已借阅",
"3" : "已归还"
}
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "查看",
"label" : "查看",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "查看",
"size" : "lg",
"data" : {
"&" : "${selectedItems[0]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/184f7b23-e45d-4dae-8a78-d1e8bd7b324c?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/DM_ARCHIVESBORROW_LOAD?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c",
"data" : {
"DM_ARCHIVESBORROW_ID" : "${DM_ARCHIVESBORROW_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"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/184f7b23-e45d-4dae-8a78-d1e8bd7b324c?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/DM_ARCHIVESBORROW_LOAD?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c",
"data" : {
"DM_ARCHIVESBORROW_ID" : "${DM_ARCHIVESBORROW_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${&}",
"templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "确认归还",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/DM_ARCHIVESBORROW_UPDATEIMPORT?__egtpl=184f7b23-e45d-4dae-8a78-d1e8bd7b324c",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "DM_ARCHIVESBORROW_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${&}",
"templateId" : "abe4ec54-2087-4b77-9f2c-629614ea927f"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
}
}
}
}