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>
This commit is contained in:
249
转换产物-attach/schema/5ff68003-e790-40e9-be37-46f33ce62a9c.json
Normal file
249
转换产物-attach/schema/5ff68003-e790-40e9-be37-46f33ce62a9c.json
Normal file
@@ -0,0 +1,249 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "档案案卷维护",
|
||||
"body" : {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"columnClassName" : "b-r pr-md",
|
||||
"body" : [ {
|
||||
"type" : "input-tree",
|
||||
"name" : "selId",
|
||||
"multiple" : false,
|
||||
"virtualThreshold" : 100000,
|
||||
"id" : "decltree_tree",
|
||||
"source" : "/api/template/5ff68003-e790-40e9-be37-46f33ce62a9c/tree",
|
||||
"label" : false,
|
||||
"searchable" : true,
|
||||
"initiallyOpen" : true,
|
||||
"showOutline" : true,
|
||||
"heightAuto" : true
|
||||
} ]
|
||||
}, {
|
||||
"md" : 8,
|
||||
"columnClassName" : "pl-md",
|
||||
"body" : [ {
|
||||
"type" : "button-toolbar",
|
||||
"className" : "m-b-sm",
|
||||
"buttons" : [ {
|
||||
"type" : "button",
|
||||
"label" : "添加",
|
||||
"level" : "primary",
|
||||
"icon" : "fa fa-plus",
|
||||
"onEvent" : {
|
||||
"click" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "decltree_tree",
|
||||
"args" : {
|
||||
"value" : ""
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "dm_file_editform",
|
||||
"args" : {
|
||||
"value" : {
|
||||
"DM_FILE_ID" : "",
|
||||
"SUBJECTID" : "",
|
||||
"FILENO" : "",
|
||||
"FILENAME" : "",
|
||||
"ORGID" : "",
|
||||
"ARCHIVEROOMNO" : "",
|
||||
"MICRONO" : "",
|
||||
"LAYPLACE" : "",
|
||||
"COMPANY" : "",
|
||||
"YEARMONTH" : "",
|
||||
"SHELFLIFE" : "",
|
||||
"SECRETLEVEL" : "",
|
||||
"PAGECOUNT" : "",
|
||||
"SHARECOUNT" : "",
|
||||
"PIGEONHOLEDATE" : "",
|
||||
"USERS" : ""
|
||||
}
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "删除",
|
||||
"level" : "danger",
|
||||
"icon" : "fa fa-trash",
|
||||
"disabledOn" : "${!selId}",
|
||||
"actionType" : "ajax",
|
||||
"confirmText" : "确认删除选中项?",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/DM_FILE_DELETE",
|
||||
"data" : {
|
||||
"DM_FILE_ID" : "${selId}"
|
||||
}
|
||||
},
|
||||
"reload" : "decltree_tree"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "form",
|
||||
"id" : "dm_file_editform",
|
||||
"title" : "档案案卷维护",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"left" : 3,
|
||||
"right" : 8
|
||||
},
|
||||
"initApi" : {
|
||||
"method" : "get",
|
||||
"url" : "/api/entity/DM_FILE/${selId}",
|
||||
"data" : {
|
||||
"pageId" : "62b265fc-7e9c-455b-a2d6-d751e650b531"
|
||||
},
|
||||
"sendOn" : "${selId}"
|
||||
},
|
||||
"api" : "post:/api/flow/DM_FILE_ADDORUPDATE",
|
||||
"body" : [ {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "FILENO",
|
||||
"label" : "档号",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "FILENAME",
|
||||
"label" : "案卷题名",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "ORGID",
|
||||
"label" : "所属公司",
|
||||
"required" : true,
|
||||
"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" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "ARCHIVEROOMNO",
|
||||
"label" : "档案室号",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "MICRONO",
|
||||
"label" : "微缩号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "LAYPLACE",
|
||||
"label" : "存放位置",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "COMPANY",
|
||||
"label" : "编制单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "YEARMONTH",
|
||||
"label" : "编制日期",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "SHELFLIFE",
|
||||
"label" : "保管期限",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/DM_FILE_SHELFLIFE"
|
||||
}, {
|
||||
"name" : "SECRETLEVEL",
|
||||
"label" : "保密级别",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/DM_FILE_SECRETLEVEL"
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "PAGECOUNT",
|
||||
"label" : "页数",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
}, {
|
||||
"name" : "SHARECOUNT",
|
||||
"label" : "份数",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
} ]
|
||||
}, {
|
||||
"type" : "group",
|
||||
"body" : [ {
|
||||
"name" : "PIGEONHOLEDATE",
|
||||
"label" : "归档日期",
|
||||
"type" : "input-date"
|
||||
}, {
|
||||
"name" : "USERS",
|
||||
"label" : "可借阅查询人员 ",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"multiple" : true,
|
||||
"overflowConfig" : {
|
||||
"displayPosition" : [ "select" ],
|
||||
"maxTagCount" : 1
|
||||
},
|
||||
"source" : "/api/picker/1b3bad0b-a24b-4347-9466-db78f7432756/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"placeholder" : "请点击右侧的图标"
|
||||
} ]
|
||||
}, {
|
||||
"name" : "DM_FILE_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "SUBJECTID",
|
||||
"label" : "所属类目",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ],
|
||||
"actions" : [ {
|
||||
"type" : "submit",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"icon" : "fa fa-save",
|
||||
"reload" : "decltree_tree"
|
||||
} ]
|
||||
} ]
|
||||
} ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user