{ "type" : "page", "title" : "造价师注册证-五建定制", "body" : { "type" : "crud", "api" : "/api/flow/HR_COSTENGINEERCARD_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "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" : "JOBSTATUSS", "label" : "在职状态", "hidden" : true, "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" : "BINDPROJECTID", "label" : "使用项目", "type" : "picker", "clearable" : true, "source" : "/api/picker/8fbf5298-4588-42e9-ab52-698fc9b380d3/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" : "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" : "DOCUMENT", "label" : "附件", "width" : 50 }, { "name" : "BINDPROJECTSTEXT", "label" : "使用项目", "width" : 300 }, { "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/f8ddbb69-9d71-4ccb-aff0-cfc7de62d747?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=f8ddbb69-9d71-4ccb-aff0-cfc7de62d747", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_COSTENGINEERCARD_UPDATE_ONLY?__egtpl=f8ddbb69-9d71-4ccb-aff0-cfc7de62d747", "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/f8ddbb69-9d71-4ccb-aff0-cfc7de62d747?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=f8ddbb69-9d71-4ccb-aff0-cfc7de62d747", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_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/912a4045-4894-4d5e-a1f7-4f784a93788e?format=amis", "api" : { "method" : "post", "url" : "/api/flow/HR_COSTENGINEERCARD_LOAD?__egtpl=912a4045-4894-4d5e-a1f7-4f784a93788e", "data" : { "HR_COSTENGINEERCARD_ID" : "${HR_COSTENGINEERCARD_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/HR_COSTENGINEERCARD_BINDPROJECTS?__egtpl=912a4045-4894-4d5e-a1f7-4f784a93788e", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "HR_COSTENGINEERCARD_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "34334084-4ff0-40e7-805c-21bcc52d54fa" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }