{ "type" : "page", "title" : "员工档案", "body" : { "type" : "crud", "api" : "/api/flow/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" : "SERIALNO", "label" : "员工工号", "type" : "input-text" }, { "name" : "BIRTH", "label" : "出生日期", "type" : "input-date-range" }, { "name" : "POLITY", "label" : "政治面貌", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/POLICITAL_STATUS" }, { "name" : "SEX", "label" : "性别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/SEX" }, { "name" : "NATION", "label" : "民族", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIONALITY" }, { "name" : "NATIVE", "label" : "籍贯", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/NATIVE_PLACE" }, { "name" : "IDCARD", "label" : "身份证", "type" : "input-text" }, { "name" : "HOMEADDRESS", "label" : "家庭地址", "type" : "input-text" }, { "name" : "HOMEPHONE", "label" : "家庭电话", "type" : "input-text" }, { "name" : "NOWADDRESS", "label" : "现住址", "type" : "input-text" }, { "name" : "DEGREE", "label" : "学历", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/EDUCATIONAL_HISTORY" }, { "name" : "MAJOR", "label" : "专业", "type" : "input-text" }, { "name" : "SOCIA", "label" : "社保编号", "type" : "input-text" }, { "name" : "ZIPCODE", "label" : "邮编", "type" : "input-text" }, { "name" : "ARCHIVESLOCALE", "label" : "档案归属地", "type" : "input-text" }, { "name" : "HEALTH", "label" : "健康状况", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_PERSON_HEALTH" }, { "name" : "QUALIFICATION", "label" : "职称", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CARD_QUALIFICATIONTYPE" }, { "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" ] } } ] }, "columns" : [ { "name" : "HR_EMPLOYEE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ORGID_DISPLAY__", "label" : "公司", "width" : 140 }, { "name" : "SERIALNO", "label" : "工号", "width" : 150 }, { "name" : "USERID_DISPLAY__", "label" : "姓名", "width" : 100 }, { "name" : "SEX", "label" : "性别", "width" : 45, "type" : "mapping", "map" : { "0" : "女", "1" : "男" } }, { "name" : "BIRTH", "label" : "出生日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "IDCARD", "label" : "身份证号", "width" : 165 }, { "name" : "DEGREE", "label" : "学历", "width" : 80, "type" : "mapping", "map" : { "1055" : "本科", "1056" : "大专", "1057" : "高中", "1058" : "职高", "1059" : "技校", "1060" : "初中", "1061" : "小学以下", "1062" : "硕士", "1063" : "博士", "1244" : "小学", "1245" : "中专" } }, { "name" : "MAJOR", "label" : "专业", "width" : 80 }, { "name" : "POLITY", "label" : "政治面貌", "width" : 80, "type" : "mapping", "map" : { "1068" : "党员", "1069" : "预备党员", "1070" : "团员", "1071" : "群众", "1072" : "其他" } }, { "name" : "JOINTIME", "label" : "任职日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "SOCIA", "label" : "社保编号", "width" : 120 }, { "name" : "JOBSTATUS", "label" : "在职状态", "width" : 80, "type" : "mapping", "map" : { "1" : "在职", "2" : "离职", "3" : "退休", "4" : "退休留用", "5" : "聘用" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/aae46962-bf76-455b-8d01-0fa621a6bbd1?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_EMPLOYEE/defaults?templateId=aae46962-bf76-455b-8d01-0fa621a6bbd1" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_EMPLOYEE_ADD?__egtpl=aae46962-bf76-455b-8d01-0fa621a6bbd1", "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/aae46962-bf76-455b-8d01-0fa621a6bbd1?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_EMPLOYEE_LOAD?__egtpl=aae46962-bf76-455b-8d01-0fa621a6bbd1", "data" : { "HR_EMPLOYEE_ID" : "${HR_EMPLOYEE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_EMPLOYEE_UPDATE?__egtpl=aae46962-bf76-455b-8d01-0fa621a6bbd1", "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_EMPLOYEE_DELETE", "data" : { "ids" : "${selectedItems|pick: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/aae46962-bf76-455b-8d01-0fa621a6bbd1?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_EMPLOYEE_LOAD?__egtpl=aae46962-bf76-455b-8d01-0fa621a6bbd1", "data" : { "HR_EMPLOYEE_ID" : "${HR_EMPLOYEE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "打印员工档案", "size" : "lg", "data" : { "HR_EMPLOYEE_ID" : "${selectedItems[0].HR_EMPLOYEE_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/43ff9190-f35f-47e0-9b88-091956210482?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "批量打印", "label" : "批量打印", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "批量打印员工档案表", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/605bdf3a-b970-47b7-8650-2a56ca751b22?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "HR_EMPLOYEE_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "d32ae8ac-2c31-4fbe-acb9-eec07e9fda82" } }, "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" : "d32ae8ac-2c31-4fbe-acb9-eec07e9fda82" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }