Files
eip4-platform/转换产物-attach/schema/00367d0f-87c0-4197-b72a-cca623ec7ecf.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

278 lines
7.6 KiB
JSON

{
"type" : "page",
"title" : "印章外带登记添加页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "ISRULE",
"label" : "选择已申请外带的印章",
"type" : "checkbox",
"value" : "0"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "SELECT_APPLY",
"label" : "从使用申请中选择",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/69e720ad-a129-40da-9399-dbae004f9310/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "LEDGERS",
"label" : "外带印章",
"type" : "static",
"tpl" : "${LEDGERS_DISPLAY__ ? LEDGERS_DISPLAY__ : (SEALNAME ? SEALNAME : LEDGERS)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "SEALCOUNT",
"label" : "盖章文件份数",
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "COLLAR_NAME",
"label" : "领用人",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"placeholder" : "请点击右侧的图标"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "COLLARDEPART",
"label" : "领用部门",
"required" : true,
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "BRINGOUTDATE",
"label" : "外带日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BRINGOUTADDRESS",
"label" : "外带地点",
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "EXPECTEDRETURNDATE",
"label" : "预计归还日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "BRINGOUTREASON",
"label" : "外带事由",
"required" : true,
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "BRINGOUTREGISTERNAME",
"label" : "外带登记人",
"type" : "static",
"tpl" : "${BRINGOUTREGISTERNAME_DISPLAY__ ? BRINGOUTREGISTERNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : BRINGOUTREGISTERNAME)}",
"value" : "${currentUser}"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "BRINGOUTREGISTERDATE",
"label" : "外带登记日期",
"required" : true,
"type" : "input-date",
"value" : "${now}"
} ]
} ]
}, {
"name" : "ACTUALRETURNDATE",
"label" : "实际归还日期",
"hidden" : true,
"type" : "input-date"
}, {
"name" : "RETURNREGISTERNAME",
"label" : "归还登记人",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"placeholder" : "请点击右侧的图标"
}, {
"name" : "RETURNREGISTERDATE",
"label" : "归还登记日期",
"hidden" : true,
"type" : "input-date"
}, {
"name" : "REMARK",
"label" : "备注",
"hidden" : true,
"type" : "textarea"
}, {
"name" : "OA_SEALBRINGOUTREGISTER_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"type" : "group",
"body" : [ {
"name" : "APPLYLIST",
"label" : "选择",
"type" : "button",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"id" : "egadddlgAPPLYLIST",
"title" : "",
"size" : "lg",
"body" : {
"type" : "crud",
"api" : "/api/picker/8f22cab7-e475-4c5e-b575-e45486a7b281/list",
"mode" : "table",
"syncLocation" : false,
"selectable" : true,
"multiple" : true,
"keepItemSelectionOnPageChange" : true,
"primaryField" : "_id",
"labelField" : "_label",
"headerToolbar" : [ {
"type" : "search-box",
"placeholder" : "输入关键字搜索",
"name" : "q"
} ],
"footerToolbar" : [ "pagination" ],
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "setValue",
"componentId" : "egadddlgAPPLYLIST",
"args" : {
"value" : {
"__egpicked" : "${event.data.selectedItems}"
}
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "取消",
"actionType" : "close"
}, {
"type" : "button",
"label" : "确定",
"level" : "primary",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "addItem",
"componentId" : "__EDITGRID_ADD_TARGET__",
"args" : {
"item" : "${ARRAYMAP(__egpicked, item => ({...item}))}"
}
}, {
"actionType" : "closeDialog"
} ]
}
}
} ]
},
"__EDITGRID_ADD_TARGET__" : true,
"hiddenOn" : "${__readonly}"
} ]
} ],
"actions" : [ ]
}
}