{ "type" : "page", "title" : "项目部竣工验收", "body" : { "type" : "crud", "api" : "/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "PROJECTORG", "label" : "(分)公司", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "PLANDATE", "label" : "计划验收日期", "hidden" : true, "type" : "input-date" }, { "name" : "REQUEST", "label" : "要求", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/day_type" }, { "name" : "COMPLETION", "label" : "现场完成情况", "type" : "input-text" }, { "name" : "APPLYUSER", "label" : "申请人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "APPLYDATE", "label" : "申请日期", "type" : "input-date-range" }, { "name" : "CONFIRMTEXT", "label" : "确认意见", "hidden" : true, "type" : "input-text" }, { "name" : "CONFIRMUSER", "label" : "确认人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "CONFIRMDATE", "label" : "确认日期", "type" : "input-date-range" }, { "name" : "REFORM", "label" : "是否整改", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" }, { "name" : "CHECKDEPART", "label" : "验证部门", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/QualityAcceptanceDEPART1" }, { "name" : "REFORMCONTENT", "label" : "内容", "hidden" : true, "type" : "input-text" }, { "name" : "RECORDUSER", "label" : "记录人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "RECORDDATE", "label" : "记录日期", "hidden" : true, "type" : "input-date" }, { "name" : "DISPOSALCOMMENTS", "label" : "处理意见", "hidden" : true, "type" : "input-text" }, { "name" : "SIGNUSER", "label" : "签发人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "SINGDATE", "label" : "签发日期", "hidden" : true, "type" : "input-date" }, { "name" : "REFORMCOMMENTS", "label" : "整改情况", "hidden" : true, "type" : "input-text" }, { "name" : "REFORMCHARGEUSER", "label" : "整改负责人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "REPORTDATE", "label" : "上报日期", "hidden" : true, "type" : "input-date" }, { "name" : "REFORMRESULT", "label" : "验证结果", "hidden" : true, "type" : "input-text" }, { "name" : "CHECKUSER", "label" : "验证人", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "CHECKDATE", "label" : "验证日期", "hidden" : true, "type" : "input-date" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_COMPLETEDPROJECTACCEPTANCE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTORG_DISPLAY__", "label" : "(分)公司", "width" : 90 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "UNITS2", "label" : "单位工程", "width" : 200 }, { "name" : "COMPLETION", "label" : "现场完成情况", "width" : 200 }, { "name" : "APPLYUSER_DISPLAY__", "label" : "申请人", "width" : 80 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "CONFIRMUSER_DISPLAY__", "label" : "确认人", "width" : 80 }, { "name" : "CONFIRMDATE", "label" : "确认日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REFORM", "label" : "是否整改", "width" : 40, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 60, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_COMPLETEDPROJECTACCEPTANCE/defaults?templateId=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_ADD?__egtpl=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_SUBMIT2?__egtpl=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c", "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/a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_LOAD?__egtpl=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c", "data" : { "PM_COMPLETEDPROJECTACCEPTANCE_ID" : "${PM_COMPLETEDPROJECTACCEPTANCE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_UPDATE?__egtpl=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_SUBMIT2?__egtpl=a4c5b082-e67d-4a3d-a3a5-ffa9e0bf5f6c", "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/PM_COMPLETEDPROJECTACCEPTANCE_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_COMPLETEDPROJECTACCEPTANCE_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/84ddb630-d30d-42c5-9fef-d34c9c24851e?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_LOAD?__egtpl=84ddb630-d30d-42c5-9fef-d34c9c24851e", "data" : { "PM_COMPLETEDPROJECTACCEPTANCE_ID" : "${PM_COMPLETEDPROJECTACCEPTANCE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/d2f9f032-f64b-49c7-89c5-ae464b0f9550?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_LOAD?__egtpl=d2f9f032-f64b-49c7-89c5-ae464b0f9550", "data" : { "PM_COMPLETEDPROJECTACCEPTANCE_ID" : "${PM_COMPLETEDPROJECTACCEPTANCE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_COMPLETEDPROJECTACCEPTANCE_SUBMIT", "data" : { "PM_COMPLETEDPROJECTACCEPTANCE_ID" : "${selectedItems[0].PM_COMPLETEDPROJECTACCEPTANCE_ID}" } }, "disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}" }, { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "项目部竣工验收打印", "size" : "lg", "data" : { "PM_COMPLETEDPROJECTACCEPTANCE_ID" : "${selectedItems[0].PM_COMPLETEDPROJECTACCEPTANCE_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/97cf5cb2-bc5c-43ef-aab3-1056863af0bb?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "查看审批", "label" : "查看审批", "icon" : "fa fa-search", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "onEvent" : { "click" : { "actions" : [ { "actionType" : "openApprovalDrawer", "args" : { "taskName" : "审批详情", "processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}", "businessKey" : "${selectedItems[0].PM_COMPLETEDPROJECTACCEPTANCE_ID}", "businessTable" : "PM_COMPLETEDPROJECTACCEPTANCE", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_COMPLETEDPROJECTACCEPTANCE_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "0c7f9c4e-3db3-4a96-8f93-a2fca241200d" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] }, "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "0c7f9c4e-3db3-4a96-8f93-a2fca241200d" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }