{ "type" : "page", "title" : "人员合同", "body" : { "type" : "crud", "api" : "/api/flow/HR_EMPLOYEE_CONTRACTVIEW_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "ORGID", "label" : "(分)公司", "type" : "picker", "clearable" : true, "source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/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" : "NAME", "label" : "姓名", "type" : "input-text" }, { "name" : "TYPE", "label" : "合同类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/contractType" }, { "name" : "JOBSTATUS", "label" : "在职状态", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/HR_EMPLOYEE_STATUS", "value" : "1" }, { "name" : "SIGNINTIME", "label" : "签订日期", "type" : "input-date-range" }, { "name" : "PACTSTARTTIME", "label" : "合同开始日期", "type" : "input-date-range" }, { "name" : "PACTENDTIME", "label" : "合同结束日期", "type" : "input-date-range" }, { "name" : "TRYSTARTTIME", "label" : "试用开始日期", "type" : "input-date-range" }, { "name" : "TRYENDTIME", "label" : "试用结束日期", "type" : "input-date-range" }, { "name" : "DATASTATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "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_CONTRACTVIEW_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 100 }, { "name" : "SERIALNO", "label" : "工号", "width" : 200 }, { "name" : "NAME", "label" : "姓名", "width" : 200 }, { "name" : "JOBSTATUS", "label" : "在职状态", "width" : 200, "type" : "mapping", "map" : { "1" : "在职", "2" : "离职", "3" : "退休", "4" : "退休留用", "5" : "聘用" } }, { "name" : "TYPE", "label" : "合同类型", "width" : 200, "type" : "mapping", "map" : { "1" : "固定期", "2" : "无固定期", "3" : "临时合同" } }, { "name" : "SIGNINTIME", "label" : "签订日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PACTSTARTTIME", "label" : "合同开始日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "PACTENDTIME", "label" : "合同结束日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "TRYSTARTTIME", "label" : "试用开始日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "TRYENDTIME", "label" : "试用结束日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "DATASTATUS", "label" : "审批状态", "width" : 60, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } } ], "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/7e8ceb63-5785-4fd6-8fa2-7b7926a6f07e?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_EMPLOYEE_CONTRACTVIEW_LOAD?__egtpl=7e8ceb63-5785-4fd6-8fa2-7b7926a6f07e", "data" : { "HR_EMPLOYEE_CONTRACTVIEW_ID" : "${HR_EMPLOYEE_CONTRACTVIEW_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PACT_PACTADD?__egtpl=7e8ceb63-5785-4fd6-8fa2-7b7926a6f07e", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PACT_PACTSAVE_AND_SUBMIT?__egtpl=7e8ceb63-5785-4fd6-8fa2-7b7926a6f07e", "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/51cb1526-5146-4846-80c8-2ea4586d05d9?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_EMPLOYEE_CONTRACTVIEW/defaults?templateId=51cb1526-5146-4846-80c8-2ea4586d05d9" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_PACT_BATCHPACTADD?__egtpl=51cb1526-5146-4846-80c8-2ea4586d05d9", "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" : { "HR_EMPLOYEE_CONTRACTVIEW_ID" : "${selectedItems[0].HR_EMPLOYEE_CONTRACTVIEW_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/d604d375-dc54-40ad-806c-496d70f5ca21?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "HR_EMPLOYEE_CONTRACTVIEW_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "f960ee0f-d0b9-48cc-8dd2-3cd1918937bf" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "f960ee0f-d0b9-48cc-8dd2-3cd1918937bf" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }