Files
eip4-platform/转换产物-attach/schema/c2b26d79-3ea7-4455-b0f5-d5bf29618f17.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

481 lines
14 KiB
JSON

{
"type" : "page",
"title" : "印章台帐管理",
"body" : {
"type" : "crud",
"api" : "/api/flow/OA_SEALLEDGER_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_ID",
"label" : "印章类型",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/63742c31-47cc-4bf7-ad90-2c0ebbf4a9f0/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" : "USESTATE",
"label" : "使用状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/OA_SEALLEDGER_USESTATE"
}, {
"name" : "ISBRINGOUT",
"label" : "是否外带",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "KEEPER_DEPART",
"label" : "保管部门",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
}, {
"name" : "SEALCODE",
"label" : "印章编码",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "KEEPER_USER",
"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" : "REGISTER_USER",
"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" : "REGISTERDATE",
"label" : "登记日期",
"hidden" : true,
"type" : "input-date"
}, {
"name" : "REMARK",
"label" : "备注",
"hidden" : true,
"type" : "input-text"
} ]
},
"columns" : [ {
"name" : "OA_SEALLEDGER_ID",
"label" : "主键",
"width" : 100,
"toggled" : false
}, {
"name" : "SEALCODE",
"label" : "印章编码",
"width" : 160
}, {
"name" : "SEALNAME",
"label" : "印章名称",
"width" : 250
}, {
"name" : "SEALUSEBOUND",
"label" : "印章使用范围",
"width" : 80,
"type" : "mapping",
"map" : {
"1370" : "总公司",
"1371" : "子公司类",
"1372" : "分公司类",
"1374" : "项目部"
}
}, {
"name" : "SEALTYPE_ID_DISPLAY__",
"label" : "印章类型",
"width" : 80
}, {
"name" : "KEEPER_USER_DISPLAY__",
"label" : "保管人",
"width" : 70
}, {
"name" : "KEEPER_DEPART_DISPLAY__",
"label" : "保管部门",
"width" : 80
}, {
"name" : "REGISTER_USER_DISPLAY__",
"label" : "登记人",
"width" : 70
}, {
"name" : "REGISTERDATE",
"label" : "登记日期",
"width" : 80,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "USESTATE",
"label" : "使用状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "启用",
"2" : "封存",
"3" : "遗失",
"4" : "废止",
"5" : "销毁",
"6" : "已回收"
}
}, {
"name" : "ISBRINGOUT",
"label" : "外带",
"width" : 70,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
}
}, {
"name" : "PARENTID",
"label" : "父记录",
"width" : 100,
"toggled" : false
}, {
"name" : "REMARK",
"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/3ac6d010-8d3b-4766-bd58-437276155fb3?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/OA_SEALLEDGER/defaults?templateId=3ac6d010-8d3b-4766-bd58-437276155fb3"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_SEALLEDGER_ADD?__egtpl=3ac6d010-8d3b-4766-bd58-437276155fb3",
"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]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/3ac6d010-8d3b-4766-bd58-437276155fb3?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD?__egtpl=3ac6d010-8d3b-4766-bd58-437276155fb3",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_SEALLEDGER_UPDATE?__egtpl=3ac6d010-8d3b-4766-bd58-437276155fb3",
"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/OA_SEALLEDGER_DELETE",
"data" : {
"ids" : "${selectedItems|pick:OA_SEALLEDGER_ID|join:','}"
}
}
}, {
"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/e643cbf5-ce3d-4c9a-8cd6-8f3c2fc52f5e?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD?__egtpl=e643cbf5-ce3d-4c9a-8cd6-8f3c2fc52f5e",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_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/0761ab43-93e5-4e7a-a9bd-c65588a14aad?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD_sealIssue?__egtpl=0761ab43-93e5-4e7a-a9bd-c65588a14aad",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_SEALISSUE_ADD?__egtpl=0761ab43-93e5-4e7a-a9bd-c65588a14aad",
"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]}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/9240efca-b5da-4b5f-af31-88da0a35a747?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD_sealRecover?__egtpl=9240efca-b5da-4b5f-af31-88da0a35a747",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/OA_SEALRECOVER_ADD?__egtpl=9240efca-b5da-4b5f-af31-88da0a35a747",
"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/01174c05-6a21-4557-9edb-275868b974a4?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD?__egtpl=01174c05-6a21-4557-9edb-275868b974a4",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"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/0ee359fa-7abc-4c2d-bb00-e5880234d952?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/OA_SEALLEDGER_LOAD_PARENTLISTINFO?__egtpl=0ee359fa-7abc-4c2d-bb00-e5880234d952",
"data" : {
"OA_SEALLEDGER_ID" : "${OA_SEALLEDGER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "OA_SEALLEDGER_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "c2b26d79-3ea7-4455-b0f5-d5bf29618f17"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}