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:
275
转换产物-attach/schema/5a51c93c-a758-413a-b174-63b3ba05efaa.json
Normal file
275
转换产物-attach/schema/5a51c93c-a758-413a-b174-63b3ba05efaa.json
Normal file
@@ -0,0 +1,275 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "文件监控",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/VIEW_OA_FILEMONITORING_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "FILENUMBER",
|
||||
"label" : "文件编号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "FILENAME",
|
||||
"label" : "文件名称",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "FILECLASS",
|
||||
"label" : "文件类别",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "FILETYPE",
|
||||
"label" : "文件类型",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/OA_FILE_TYPE"
|
||||
}, {
|
||||
"name" : "SIGNTYPE",
|
||||
"label" : "字号类别",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/OA_FILESEND_SIGNTYPE"
|
||||
}, {
|
||||
"name" : "CREATEUSER",
|
||||
"label" : "拟稿人",
|
||||
"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" : "CREATEDATE",
|
||||
"label" : "拟稿日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "ISUSED",
|
||||
"label" : "是否有效",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/OA_FILERECEIVE_ZUOFEI"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "VIEW_OA_FILEMONITORING_ID",
|
||||
"label" : "主键",
|
||||
"width" : 100,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "FILENUMBER",
|
||||
"label" : "文件编号",
|
||||
"width" : 150
|
||||
}, {
|
||||
"name" : "FILENAME",
|
||||
"label" : "文件名称",
|
||||
"width" : 300
|
||||
}, {
|
||||
"name" : "FILECLASS",
|
||||
"label" : "文件类别",
|
||||
"width" : 50
|
||||
}, {
|
||||
"name" : "FILETYPE",
|
||||
"label" : "文件类型",
|
||||
"width" : 50,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : " ",
|
||||
"2" : "工程管理",
|
||||
"3" : "财税管理",
|
||||
"4" : "人事、劳务",
|
||||
"5" : "会议通知",
|
||||
"6" : "经营、造价",
|
||||
"7" : "其他"
|
||||
}
|
||||
}, {
|
||||
"name" : "SIGNTYPE",
|
||||
"label" : "字号类别",
|
||||
"width" : 50,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "董字号",
|
||||
"2" : "工字号",
|
||||
"3" : "经字号",
|
||||
"4" : "党字号",
|
||||
"5" : "安字号",
|
||||
"6" : "联合行文"
|
||||
}
|
||||
}, {
|
||||
"name" : "CREATEUSER_DISPLAY__",
|
||||
"label" : "拟稿人",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "CREATEDATE",
|
||||
"label" : "拟稿日期",
|
||||
"width" : 100,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "ISUSED",
|
||||
"label" : "是否有效",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "有效",
|
||||
"2" : "无效"
|
||||
}
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"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/abe0bbc8-8865-4143-b543-89e992c3cd68?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/VIEW_OA_FILEMONITORING_LOAD?__egtpl=abe0bbc8-8865-4143-b543-89e992c3cd68",
|
||||
"data" : {
|
||||
"VIEW_OA_FILEMONITORING_ID" : "${VIEW_OA_FILEMONITORING_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"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/b907b380-d3fe-46fa-a6df-36e78d6151c4?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/VIEW_OA_FILEMONITORING_LOAD?__egtpl=b907b380-d3fe-46fa-a6df-36e78d6151c4",
|
||||
"data" : {
|
||||
"VIEW_OA_FILEMONITORING_ID" : "${VIEW_OA_FILEMONITORING_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 2,
|
||||
"item" : "${&}",
|
||||
"templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult2"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult2.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "VIEW_OA_FILEMONITORING_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 2,
|
||||
"item" : "${&}",
|
||||
"templateId" : "5a51c93c-a758-413a-b174-63b3ba05efaa"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult2"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult2.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user