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:
250
转换产物-attach/schema/5572d77d-37ec-472a-90a4-f18b8cf1f331.json
Normal file
250
转换产物-attach/schema/5572d77d-37ec-472a-90a4-f18b8cf1f331.json
Normal file
@@ -0,0 +1,250 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "社保管理",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/VIEW_HR_SOCIALSECURITY_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "ORGID",
|
||||
"label" : "公司",
|
||||
"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" : "SERIALNO",
|
||||
"label" : "工号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "EMPLOYEE",
|
||||
"label" : "姓名",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "SEX",
|
||||
"label" : "性别",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/SEX"
|
||||
}, {
|
||||
"name" : "SOCIA",
|
||||
"label" : "社保编号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "JOBSTATUS",
|
||||
"label" : "在职状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/HR_EMPLOYEE_STATUS",
|
||||
"value" : "1"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "VIEW_HR_SOCIALSECURITY_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "ORGID_DISPLAY__",
|
||||
"label" : "公司",
|
||||
"width" : 150
|
||||
}, {
|
||||
"name" : "PAYUNIT_DISPLAY__",
|
||||
"label" : "交保单位",
|
||||
"width" : 150
|
||||
}, {
|
||||
"name" : "SERIALNO",
|
||||
"label" : "工号",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "EMPLOYEE",
|
||||
"label" : "姓名",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "SEX",
|
||||
"label" : "性别",
|
||||
"width" : 40,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"0" : "女",
|
||||
"1" : "男"
|
||||
}
|
||||
}, {
|
||||
"name" : "IDCARD",
|
||||
"label" : "身份证号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "JOBSTATUS",
|
||||
"label" : "在职状态",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "在职",
|
||||
"2" : "离职",
|
||||
"3" : "退休",
|
||||
"4" : "退休留用",
|
||||
"5" : "聘用"
|
||||
}
|
||||
}, {
|
||||
"name" : "JOINTIME",
|
||||
"label" : "任职日期",
|
||||
"width" : 100,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "SOCIA",
|
||||
"label" : "社保编号",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "BASEFEEMONTH",
|
||||
"label" : "月缴费基数",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "MONTH",
|
||||
"label" : "累缴月数",
|
||||
"width" : 80
|
||||
} ],
|
||||
"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/2ac7fe32-8dff-4995-ba90-40101133e879?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/VIEW_HR_SOCIALSECURITY_LOAD?__egtpl=2ac7fe32-8dff-4995-ba90-40101133e879",
|
||||
"data" : {
|
||||
"VIEW_HR_SOCIALSECURITY_ID" : "${VIEW_HR_SOCIALSECURITY_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/VIEW_HR_SOCIALSECURITY_UPDATE?__egtpl=2ac7fe32-8dff-4995-ba90-40101133e879",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "批量编辑",
|
||||
"label" : "批量编辑",
|
||||
"level" : "primary",
|
||||
"actionType" : "dialog",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "批量编辑",
|
||||
"size" : "lg",
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/8a244846-3b2c-4091-8d5a-b38d3090b327?format=amis",
|
||||
"api" : {
|
||||
"method" : "get",
|
||||
"url" : "/api/form/VIEW_HR_SOCIALSECURITY/defaults?templateId=8a244846-3b2c-4091-8d5a-b38d3090b327"
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/HR_SOCIALSECURITY_BATCHUPDATE?__egtpl=8a244846-3b2c-4091-8d5a-b38d3090b327",
|
||||
"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/2ac7fe32-8dff-4995-ba90-40101133e879?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/VIEW_HR_SOCIALSECURITY_LOAD?__egtpl=2ac7fe32-8dff-4995-ba90-40101133e879",
|
||||
"data" : {
|
||||
"VIEW_HR_SOCIALSECURITY_ID" : "${VIEW_HR_SOCIALSECURITY_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "VIEW_HR_SOCIALSECURITY_ID",
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "5572d77d-37ec-472a-90a4-f18b8cf1f331"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user