{ "type" : "page", "title" : "外经证开具申请(通用)", "body" : { "type" : "crud", "api" : "/api/flow/PM_EXTERNALAPPLY_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" ] } }, { "name" : "ORGID", "label" : "(分)公司", "type" : "tree-select", "clearable" : true, "source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree", "searchable" : true, "onlyLeaf" : true }, { "name" : "ADDRESS", "label" : "工程地址", "type" : "input-text" }, { "name" : "BUILDCOMPANY", "label" : "建设单位", "type" : "picker", "clearable" : true, "source" : "/api/picker/93a5fb27-fdf1-41fb-9ce5-cec44826a6fa/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "CONTACTS", "label" : "联系人", "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" : "APPLICANT", "label" : "申请人", "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" : "APPLYDATE", "label" : "申请日期", "type" : "input-date-range" }, { "name" : "VALIDITYBEGIN", "label" : "有效开始日期", "type" : "input-date-range" }, { "name" : "VALIDITYEND", "label" : "有效结束日期", "type" : "input-date-range" }, { "name" : "MANAGENO", "label" : "管理编号", "type" : "input-text" }, { "name" : "WRITEOFFSTATUS", "label" : "核销状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_EXTERNALAPPLY_WRITEOFFSTATUS" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_EXTERNALAPPLY_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "NO", "label" : "申请单号", "width" : 200 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 300 }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 200 }, { "name" : "ADDRESS", "label" : "工程地址", "width" : 200 }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 200 }, { "name" : "EXTERNALMONEY", "label" : "本次开具金额(元)", "width" : 100 }, { "name" : "CONTACTS", "label" : "联系人", "width" : 100 }, { "name" : "CONTACTSPHONE", "label" : "联系电话", "width" : 100 }, { "name" : "APPLICANT_DISPLAY__", "label" : "申请人", "width" : 100 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "STATUS", "label" : "审批状态", "width" : 100, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "VALIDITYBEGIN", "label" : "有效开始日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "VALIDITYEND", "label" : "有效结束日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "MANAGENO", "label" : "管理编号", "width" : 200 }, { "name" : "WRITEOFF", "label" : "核销金额(元)", "width" : 150 }, { "name" : "WRITEOFFSTATUS", "label" : "核销状态", "width" : 100, "type" : "mapping", "map" : { "0" : "待核销", "1" : "已核销" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/274e7994-b564-4ef0-bd2d-024db1eb95d1?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_EXTERNALAPPLY/defaults?templateId=274e7994-b564-4ef0-bd2d-024db1eb95d1" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_ADD?__egtpl=274e7994-b564-4ef0-bd2d-024db1eb95d1", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_SAVE_AND_SUBMIT?__egtpl=274e7994-b564-4ef0-bd2d-024db1eb95d1", "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/274e7994-b564-4ef0-bd2d-024db1eb95d1?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=274e7994-b564-4ef0-bd2d-024db1eb95d1", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_UPDATE?__egtpl=274e7994-b564-4ef0-bd2d-024db1eb95d1", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_SAVE_AND_SUBMIT?__egtpl=274e7994-b564-4ef0-bd2d-024db1eb95d1", "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_EXTERNALAPPLY_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_EXTERNALAPPLY_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/fb8d1dc4-3493-499c-941e-2dc14439619a?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=fb8d1dc4-3493-499c-941e-2dc14439619a", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_SUBMIT", "data" : { "PM_EXTERNALAPPLY_ID" : "${selectedItems[0].PM_EXTERNALAPPLY_ID}" } } }, { "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/5fd3c84c-e44e-4ea7-b19c-83b160960fe3?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=5fd3c84c-e44e-4ea7-b19c-83b160960fe3", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "1f33b3dd-2f95-49d3-acb1-986051aa50de" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_UPDATE_WRITEOFF?__egtpl=5fd3c84c-e44e-4ea7-b19c-83b160960fe3", "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" : { "PM_EXTERNALAPPLY_ID" : "${selectedItems[0].PM_EXTERNALAPPLY_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/8d920d81-d230-466f-afe9-809fbf984e49?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "确认核销", "label" : "确认核销", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_CONFIRM_WRITEOFF", "data" : { "PM_EXTERNALAPPLY_ID" : "${selectedItems[0].PM_EXTERNALAPPLY_ID}" } } }, { "type" : "button", "id" : "取消核销", "label" : "取消核销", "actionType" : "ajax", "disabled" : true, "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_DELETE_WRITEOFF", "data" : { "PM_EXTERNALAPPLY_ID" : "${selectedItems[0].PM_EXTERNALAPPLY_ID}" } } }, { "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/35151b53-4984-4d9c-95f0-95bf0cad8447?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOADREVOKE?__egtpl=35151b53-4984-4d9c-95f0-95bf0cad8447", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_REVOKE?__egtpl=35151b53-4984-4d9c-95f0-95bf0cad8447", "close" : true }, { "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_EXTERNALAPPLY_ID}", "businessTable" : "PM_EXTERNALAPPLY", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_EXTERNALAPPLY_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "提交审批" }, { "actionType" : "disabled", "componentId" : "确认核销" }, { "actionType" : "disabled", "componentId" : "取消核销" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "1f33b3dd-2f95-49d3-acb1-986051aa50de" } }, "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" : "1f33b3dd-2f95-49d3-acb1-986051aa50de" } }, "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" : "1f33b3dd-2f95-49d3-acb1-986051aa50de" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }