{ "type" : "page", "title" : "造价师注册证", "body" : { "type" : "crud", "api" : "/api/flow/HR_COSTENGINEERCARD_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "USERORGID", "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" : "USERID", "label" : "姓名", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "DESIGNATIONNO", "label" : "注册编号", "type" : "input-text" }, { "name" : "LEVELID", "label" : "证书级别", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/COSTENGINEERCARDLEVEL" }, { "name" : "REGISTEREDPROFESSIONAL", "label" : "注册专业", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/COSTENGINEERPROFESSIONAL" }, { "name" : "ISSUEDATE", "label" : "签发日期", "type" : "input-date-range" }, { "name" : "VALIDDATE", "label" : "有效期至", "type" : "input-date-range" }, { "name" : "EMPLOYER", "label" : "聘用单位", "type" : "input-text" }, { "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_COSTENGINEERCARD_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "USERORGID_DISPLAY__", "label" : "所属(分)公司", "width" : 200 }, { "name" : "USERID_DISPLAY__", "label" : "姓名", "width" : 70 }, { "name" : "IDCARD", "label" : "身份证号码", "width" : 150 }, { "name" : "AGES", "label" : "年龄(周岁)", "width" : 30 }, { "name" : "DESIGNATIONNO", "label" : "注册编号", "width" : 200 }, { "name" : "LEVELID", "label" : "证书级别", "width" : 100, "type" : "mapping", "map" : { "1" : "一级造价师", "2" : "二级造价师" } }, { "name" : "REGISTEREDPROFESSIONAL", "label" : "已注册专业", "width" : 110 }, { "name" : "ISSUEDATE", "label" : "签发日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "VALIDDATE", "label" : "有效期至", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "EMPLOYER", "label" : "聘用单位", "width" : 200 }, { "name" : "KEEPDEPARTID_DISPLAY__", "label" : "保管部门", "width" : 150, "toggled" : false }, { "name" : "DOCUMENT", "label" : "附件", "width" : 50 }, { "name" : "USERID_DISPLAY__", "label" : "姓名", "width" : 80, "toggled" : false }, { "name" : "MEMO", "label" : "备注", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/feeb6d41-23e8-4f56-9a0a-009a4f4cdd16?format=amis", "api" : { "method" : "get", "url" : "/api/form/HR_COSTENGINEERCARD/defaults?templateId=feeb6d41-23e8-4f56-9a0a-009a4f4cdd16" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_COSTENGINEERCARD_ADD?__egtpl=feeb6d41-23e8-4f56-9a0a-009a4f4cdd16", "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/7a278241-a418-4369-849e-b79d638269a4?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=7a278241-a418-4369-849e-b79d638269a4", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "7a0ac7a9-32bc-4d32-9231-4d1bbcd86002" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_COSTENGINEERCARD_INCREASE?__egtpl=7a278241-a418-4369-849e-b79d638269a4", "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/f566657d-bac8-4384-9ff1-b4d890349cf3?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=f566657d-bac8-4384-9ff1-b4d890349cf3", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "7a0ac7a9-32bc-4d32-9231-4d1bbcd86002" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_COSTENGINEERCARD_UPDATE?__egtpl=f566657d-bac8-4384-9ff1-b4d890349cf3", "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_COSTENGINEERCARD_DELETE", "data" : { "ids" : "${selectedItems|pick:HR_COSTENGINEERCARD_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/58ff786b-6975-4e06-bd78-95a6def7d7e5?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=58ff786b-6975-4e06-bd78-95a6def7d7e5", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "HR_COSTENGINEERCARD_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "7a0ac7a9-32bc-4d32-9231-4d1bbcd86002" } }, "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" : "7a0ac7a9-32bc-4d32-9231-4d1bbcd86002" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 3, "item" : "${&}", "templateId" : "7a0ac7a9-32bc-4d32-9231-4d1bbcd86002" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }