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>
546 lines
15 KiB
JSON
546 lines
15 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "员工档案(带证书)",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_HR_EMPLOYEE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "ORGID",
|
|
"label" : "公司",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "USERID",
|
|
"label" : "姓名",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/4982d448-a9d4-493e-9e1d-ebcd3c7dfcd6/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" : "MAJOR",
|
|
"label" : "专业",
|
|
"type" : "input-text"
|
|
}, {
|
|
"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" : "JOBSTATUSS",
|
|
"label" : "在职状态",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"multiple" : true,
|
|
"overflowConfig" : {
|
|
"displayPosition" : [ "select" ],
|
|
"maxTagCount" : 1
|
|
},
|
|
"source" : "/api/picker/ddb51949-e2a1-4a9d-b936-48609473755a/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "CARDINFO",
|
|
"label" : "证书信息",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_HR_EMPLOYEE_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ORGID_DISPLAY__",
|
|
"label" : "公司",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "USERID_DISPLAY__",
|
|
"label" : "姓名",
|
|
"width" : 30
|
|
}, {
|
|
"name" : "SEX",
|
|
"label" : "性别",
|
|
"width" : 20,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "女",
|
|
"1" : "男"
|
|
}
|
|
}, {
|
|
"name" : "IDCARD",
|
|
"label" : "身份证号",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "AGE",
|
|
"label" : "年龄",
|
|
"width" : 25
|
|
}, {
|
|
"name" : "DEGREE",
|
|
"label" : "学历",
|
|
"width" : 30,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1055" : "本科",
|
|
"1056" : "大专",
|
|
"1057" : "高中",
|
|
"1058" : "职高",
|
|
"1059" : "技校",
|
|
"1060" : "初中",
|
|
"1061" : "小学以下",
|
|
"1062" : "硕士",
|
|
"1063" : "博士",
|
|
"1244" : "小学",
|
|
"1245" : "中专"
|
|
}
|
|
}, {
|
|
"name" : "MAJOR",
|
|
"label" : "专业",
|
|
"width" : 50
|
|
}, {
|
|
"name" : "SOCIA",
|
|
"label" : "社保编号",
|
|
"width" : 50
|
|
}, {
|
|
"name" : "JOBSTATUS",
|
|
"label" : "在职状态",
|
|
"width" : 30,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "在职",
|
|
"2" : "离职",
|
|
"3" : "退休",
|
|
"4" : "退休留用",
|
|
"5" : "聘用"
|
|
}
|
|
}, {
|
|
"name" : "PACTSTARTTIME",
|
|
"label" : "合同日期",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "CARDINFO",
|
|
"label" : "证书信息",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "MOBILE",
|
|
"label" : "手机号",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MASTERPOSITION_DISPLAY__",
|
|
"label" : "主岗位",
|
|
"width" : 200,
|
|
"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/2c672ea6-ee5b-4273-804b-ac0962d1fac7?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/VIEW_HR_EMPLOYEE/defaults?templateId=2c672ea6-ee5b-4273-804b-ac0962d1fac7"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_HR_EMPLOYEE_ADD?__egtpl=2c672ea6-ee5b-4273-804b-ac0962d1fac7",
|
|
"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/2c672ea6-ee5b-4273-804b-ac0962d1fac7?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_HR_EMPLOYEE_LOAD?__egtpl=2c672ea6-ee5b-4273-804b-ac0962d1fac7",
|
|
"data" : {
|
|
"VIEW_HR_EMPLOYEE_ID" : "${VIEW_HR_EMPLOYEE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_HR_EMPLOYEE_UPDATE?__egtpl=2c672ea6-ee5b-4273-804b-ac0962d1fac7",
|
|
"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/VIEW_HR_EMPLOYEE_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:VIEW_HR_EMPLOYEE_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/2c672ea6-ee5b-4273-804b-ac0962d1fac7?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_HR_EMPLOYEE_LOAD?__egtpl=2c672ea6-ee5b-4273-804b-ac0962d1fac7",
|
|
"data" : {
|
|
"VIEW_HR_EMPLOYEE_ID" : "${VIEW_HR_EMPLOYEE_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/e3c3466b-5c72-4121-89ad-e52d1dfae1e4?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_HR_EMPLOYEE_LOAD_QUIT?__egtpl=e3c3466b-5c72-4121-89ad-e52d1dfae1e4",
|
|
"data" : {
|
|
"VIEW_HR_EMPLOYEE_ID" : "${VIEW_HR_EMPLOYEE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_DIMISSIONREQUEST_SUBMIT2?__egtpl=e3c3466b-5c72-4121-89ad-e52d1dfae1e4",
|
|
"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/02caa80b-7856-4b7b-bdd8-a8c7503a6216?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_HR_EMPLOYEE_LOAD_QUIT?__egtpl=02caa80b-7856-4b7b-bdd8-a8c7503a6216",
|
|
"data" : {
|
|
"VIEW_HR_EMPLOYEE_ID" : "${VIEW_HR_EMPLOYEE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 5,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult5"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult5.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_HR_EMPLOYEE_QUITADD?__egtpl=02caa80b-7856-4b7b-bdd8-a8c7503a6216",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_HR_EMPLOYEE_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 5,
|
|
"item" : "${&}",
|
|
"templateId" : "4230b669-a107-4ffb-9aae-e814560d8c6e"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult5"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult5.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |