Files
eip4-platform/转换产物-attach/schema/94cb7bac-3f71-46e2-a682-6f9df22fc28d.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

195 lines
5.2 KiB
JSON

{
"type" : "page",
"title" : "印章使用状态变更",
"body" : {
"type" : "crud",
"api" : "/api/flow/OA_SEALLOSSREGISTER_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "SEALUSEBOUND",
"label" : "印章使用范围",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/OA_SEALTYPE_SEALUSEBOUND"
}, {
"name" : "SEALTYPE",
"label" : "印章类型",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/56620018-dea6-4fe0-9934-f0404069a2de/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "SEALNAME",
"label" : "印章名称",
"type" : "input-text"
}, {
"name" : "CHANGEDATE",
"label" : "变更日期",
"type" : "input-date-range"
}, {
"name" : "NOWUSESTATE",
"label" : "现使用状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/OA_SEALLEDGER_USESTATE"
} ]
},
"columns" : [ {
"name" : "SEALCODE",
"label" : "印章编码",
"width" : 100
}, {
"name" : "LEDGERID_DISPLAY__",
"label" : "印章名称",
"width" : 100
}, {
"name" : "SEALUSEBOUND",
"label" : "印章使用范围",
"width" : 100,
"type" : "mapping",
"map" : {
"1370" : "总公司",
"1371" : "子公司类",
"1372" : "分公司类",
"1374" : "项目部"
}
}, {
"name" : "SEALTYPENAME",
"label" : "印章类型",
"width" : 100
}, {
"name" : "OLDUSESTATE",
"label" : "原使用状态",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "启用",
"2" : "封存",
"3" : "遗失",
"4" : "废止",
"5" : "销毁",
"6" : "已回收"
}
}, {
"name" : "NOWUSESTATE",
"label" : "现使用状态",
"width" : 100,
"type" : "mapping",
"map" : {
"1" : "启用",
"2" : "封存",
"3" : "遗失",
"4" : "废止",
"5" : "销毁",
"6" : "已回收"
}
}, {
"name" : "CHANGEDATE",
"label" : "变更日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "REGISTERNAME_DISPLAY__",
"label" : "登记人",
"width" : 100
}, {
"name" : "REGISTERDATE",
"label" : "登记日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "OA_SEALLOSSREGISTER_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "CHANGECONTENT",
"label" : "变更内容",
"width" : 100,
"toggled" : false
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/d72f2432-870a-4ab1-ac5c-78b530b15ec3?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/OA_SEALLOSSREGISTER/defaults?templateId=d72f2432-870a-4ab1-ac5c-78b530b15ec3"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_SEALLOSSREGISTER_ADD?__egtpl=d72f2432-870a-4ab1-ac5c-78b530b15ec3",
"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]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/a9edcfac-56d4-4434-967c-f2b2cf344c9e?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLOSSREGISTER_LOAD?__egtpl=a9edcfac-56d4-4434-967c-f2b2cf344c9e",
"data" : {
"OA_SEALLOSSREGISTER_ID" : "${OA_SEALLOSSREGISTER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "OA_SEALLOSSREGISTER_ID"
}
}