Files
eip4-platform/转换产物-attach/schema/7cd0b71f-f43c-4464-9994-5ff7f0b9881d.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

354 lines
9.1 KiB
JSON

{
"type" : "page",
"title" : "员工薪资信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/VIEW_HR_PAYUSER_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PAYSCHEMEID",
"label" : "薪资方案",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/9d690abb-916b-427c-9bd6-4a8001ac0813/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "ACCOUNT",
"label" : "账号",
"type" : "input-text"
}, {
"name" : "NAME",
"label" : "姓名",
"type" : "input-text"
}, {
"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" : "SEX",
"label" : "性别",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/SEX"
}, {
"name" : "IDCARD",
"label" : "身份证",
"type" : "input-text"
}, {
"name" : "AGES1",
"label" : "年龄段",
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "AGES2",
"label" : "至",
"type" : "input-number",
"precision" : 0,
"step" : 1
}, {
"name" : "NATIVE",
"label" : "籍贯",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/NATIVE_PLACE"
}, {
"name" : "DEGREE",
"label" : "学历",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/EDUCATIONAL_HISTORY"
}, {
"name" : "POLITY",
"label" : "政治面貌",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/POLICITAL_STATUS"
}, {
"name" : "JOINTIME",
"label" : "任职日期",
"type" : "input-date-range"
}, {
"name" : "ISSOCIA",
"label" : "是否有社保",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "ISSETPAY",
"label" : "已设置薪资",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
} ]
},
"columns" : [ {
"name" : "VIEW_HR_PAYUSER_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PAYSCHEMEID_DISPLAY__",
"label" : "薪资方案",
"width" : 200
}, {
"name" : "ORGID_DISPLAY__",
"label" : "所属(分)公司",
"width" : 180,
"toggled" : false
}, {
"name" : "ACCOUNT",
"label" : "账号",
"width" : 100
}, {
"name" : "NAME",
"label" : "姓名",
"width" : 100
}, {
"name" : "ANNUALSALARY",
"label" : "年薪(元)",
"width" : 100
}, {
"name" : "SEX",
"label" : "性别",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "女",
"1" : "男"
},
"toggled" : false
}, {
"name" : "IDCARD",
"label" : "身份证",
"width" : 200
}, {
"name" : "DISPLAYNAME",
"label" : "显示名",
"width" : 200,
"toggled" : false
}, {
"name" : "MASTERDEPART_DISPLAY__",
"label" : "部门",
"width" : 300
}, {
"name" : "STATE",
"label" : "状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "正常",
"2" : "禁止登录",
"3" : "禁用",
"4" : "删除"
}
}, {
"name" : "MASTERPOSITION_DISPLAY__",
"label" : "岗位",
"width" : 200,
"toggled" : false
}, {
"name" : "JOINTIME",
"label" : "任职日期",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"toggled" : false
}, {
"name" : "BIRTH",
"label" : "出生日期",
"width" : 200,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"toggled" : false
}, {
"name" : "POLITY",
"label" : "政治面貌",
"width" : 200,
"type" : "mapping",
"map" : {
"1068" : "党员",
"1069" : "预备党员",
"1070" : "团员",
"1071" : "群众",
"1072" : "其他"
},
"toggled" : false
}, {
"name" : "NATION",
"label" : "民族",
"width" : 200,
"type" : "mapping",
"map" : {
"1041" : "汉族",
"1042" : "满族",
"1043" : "回族",
"1044" : "苗族",
"1045" : "藏族",
"1046" : "壮族",
"1047" : "蒙古族",
"1048" : "高山族"
},
"toggled" : false
}, {
"name" : "NATIVE",
"label" : "籍贯",
"width" : 200,
"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" : "海外"
},
"toggled" : false
}, {
"name" : "ISSETPAY",
"label" : "已设置薪资",
"width" : 80,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
} ],
"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/335c1881-5c7e-452d-b20f-7ca045caadd2?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/HR_PAYUSERINFO_LOAD?__egtpl=335c1881-5c7e-452d-b20f-7ca045caadd2",
"data" : {
"VIEW_HR_PAYUSER_ID" : "${VIEW_HR_PAYUSER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/HR_PAYUSERINFO_SAVEORUPDATE?__egtpl=335c1881-5c7e-452d-b20f-7ca045caadd2",
"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/335c1881-5c7e-452d-b20f-7ca045caadd2?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/HR_PAYUSERINFO_LOAD?__egtpl=335c1881-5c7e-452d-b20f-7ca045caadd2",
"data" : {
"VIEW_HR_PAYUSER_ID" : "${VIEW_HR_PAYUSER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, "pagination" ],
"primaryField" : "VIEW_HR_PAYUSER_ID"
}
}