Files
eip4-platform/转换产物-attach/schema/70413dba-61a6-4b88-aee2-d9e22724f979.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

391 lines
11 KiB
JSON

{
"type" : "page",
"title" : "新员工入职申请",
"body" : {
"type" : "crud",
"api" : "/api/flow/HR_EMPLOYEEENTRYAPPLY_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "SEX",
"label" : "性别",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/SEX"
}, {
"name" : "BIRTH",
"label" : "出生日期",
"type" : "input-date-range"
}, {
"name" : "DEGREE",
"label" : "学历",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/EDUCATIONAL_HISTORY"
}, {
"name" : "JOINTIME",
"label" : "任职日期",
"type" : "input-date-range"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS"
} ]
},
"columns" : [ {
"name" : "HR_EMPLOYEEENTRYAPPLY_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "NAME",
"label" : "姓名",
"width" : 80
}, {
"name" : "IDCARD",
"label" : "身份证号",
"width" : 160
}, {
"name" : "SEX",
"label" : "性别",
"width" : 40,
"type" : "mapping",
"map" : {
"0" : "女",
"1" : "男"
}
}, {
"name" : "BIRTH",
"label" : "出生日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "NATION",
"label" : "民族",
"width" : 60,
"type" : "mapping",
"map" : {
"1041" : "汉族",
"1042" : "满族",
"1043" : "回族",
"1044" : "苗族",
"1045" : "藏族",
"1046" : "壮族",
"1047" : "蒙古族",
"1048" : "高山族"
}
}, {
"name" : "DEGREE",
"label" : "学历",
"width" : 70,
"type" : "mapping",
"map" : {
"1055" : "本科",
"1056" : "大专",
"1057" : "高中",
"1058" : "职高",
"1059" : "技校",
"1060" : "初中",
"1061" : "小学以下",
"1062" : "硕士",
"1063" : "博士",
"1244" : "小学",
"1245" : "中专"
}
}, {
"name" : "NATIVE",
"label" : "籍贯",
"width" : 60,
"type" : "mapping",
"map" : {
"1000" : "黑龙江",
"1001" : "吉林",
"1002" : "辽宁",
"1003" : "北京",
"1004" : "上海",
"1005" : "天津",
"1006" : "重庆",
"1007" : "河北",
"1008" : "山东",
"1009" : "山西",
"1010" : "河南",
"1011" : "内蒙古",
"1012" : "陕西",
"1013" : "甘肃",
"1014" : "宁夏",
"1015" : "青海",
"1016" : "新疆",
"1017" : "四川",
"1018" : "贵州",
"1019" : "云南",
"1020" : "西藏",
"1021" : "广西",
"1022" : "广东",
"1023" : "湖南",
"1024" : "湖北",
"1025" : "福建",
"1026" : "海南",
"1027" : "台湾",
"1028" : "江苏",
"1029" : "浙江",
"1030" : "江西",
"1031" : "安徽",
"1032" : "澳门",
"1033" : "香港",
"1149" : "海外"
}
}, {
"name" : "MARRIAGESTATUS",
"label" : "婚姻状况",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "已婚",
"2" : "未婚"
}
}, {
"name" : "JOINTIME",
"label" : "任职日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "POLITY",
"label" : "政治面貌",
"width" : 80,
"type" : "mapping",
"map" : {
"1068" : "党员",
"1069" : "预备党员",
"1070" : "团员",
"1071" : "群众",
"1072" : "其他"
}
}, {
"name" : "ADDRESS",
"label" : "家庭地址",
"width" : 100
}, {
"name" : "ISEXTERNAL",
"label" : "是否外聘",
"width" : 70,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "REASON",
"label" : "招聘原因",
"width" : 100
}, {
"name" : "FIRSTEMPLOYMENTTIME",
"label" : "首次就业时间",
"width" : 80,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "SALARY",
"label" : "岗位工资",
"width" : 80
}, {
"name" : "RETIREMENTMONEYNO",
"label" : "养老金编号",
"width" : 80
}, {
"name" : "PUBLICFUNDACCOUNT",
"label" : "公积金个人账户",
"width" : 80
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/f78b24a6-259d-42e4-a0be-06e18c28bd76?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/HR_EMPLOYEEENTRYAPPLY/defaults?templateId=f78b24a6-259d-42e4-a0be-06e18c28bd76"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_EMPLOYEEENTRYAPPLY_ADD?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"close" : true
}, {
"type" : "button",
"label" : "保存并提交审批",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_EMPLOYEEENTRYAPPLY_ADDSUBMIT?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"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/f78b24a6-259d-42e4-a0be-06e18c28bd76?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_EMPLOYEEENTRYAPPLY_LOAD?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"data" : {
"HR_EMPLOYEEENTRYAPPLY_ID" : "${HR_EMPLOYEEENTRYAPPLY_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_EMPLOYEEENTRYAPPLY_UPDATE?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"close" : true
}, {
"type" : "button",
"label" : "保存并提交审批",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_EMPLOYEEENTRYAPPLY_ADDSUBMIT?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"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/HR_EMPLOYEEENTRYAPPLY_DELETE",
"data" : {
"ids" : "${selectedItems|pick:HR_EMPLOYEEENTRYAPPLY_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/f78b24a6-259d-42e4-a0be-06e18c28bd76?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/HR_EMPLOYEEENTRYAPPLY_LOAD?__egtpl=f78b24a6-259d-42e4-a0be-06e18c28bd76",
"data" : {
"HR_EMPLOYEEENTRYAPPLY_ID" : "${HR_EMPLOYEEENTRYAPPLY_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "提交审批",
"label" : "提交审批",
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_EMPLOYEEENTRYAPPLY_SUBMIT",
"data" : {
"HR_EMPLOYEEENTRYAPPLY_ID" : "${selectedItems[0].HR_EMPLOYEEENTRYAPPLY_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
}, {
"type" : "button",
"id" : "查看审批",
"label" : "查看审批",
"icon" : "fa fa-search",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "openApprovalDrawer",
"args" : {
"taskName" : "审批详情",
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
"businessKey" : "${selectedItems[0].HR_EMPLOYEEENTRYAPPLY_ID}",
"businessTable" : "HR_EMPLOYEEENTRYAPPLY",
"readOnly" : true,
"mode" : "read"
}
} ]
}
}
}, "pagination" ],
"primaryField" : "HR_EMPLOYEEENTRYAPPLY_ID"
}
}