{ "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" : "ITEMATTRIBUTE", "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" : "INVOICEFORM", "label" : "征税方式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/INVOICE_INVOICEFORM" }, { "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" : "MANAGENO", "label" : "管理编号", "type" : "input-text" }, { "name" : "APPROVALTYPE", "label" : "审批类型", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_EXTERNALAPPLY_APPROVALTYPE" }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "WRITEOFFSTATUS", "label" : "核销状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_EXTERNALAPPLY_WRITEOFFSTATUS" } ] }, "columns" : [ { "name" : "PM_EXTERNALAPPLY_ID", "label" : "主", "width" : 200, "toggled" : false }, { "name" : "NO", "label" : "申请单号", "width" : 70 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 100 }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 70 }, { "name" : "ITEMATTRIBUTE", "label" : "项目属性", "width" : 30 }, { "name" : "ADDRESS", "label" : "工程地址", "width" : 80 }, { "name" : "BUILDCOMPANY_DISPLAY__", "label" : "建设单位", "width" : 80 }, { "name" : "CONTRACTNO", "label" : "合同编号", "width" : 50, "toggled" : false }, { "name" : "CONTRACTMONEY", "label" : "合同总价(元)", "width" : 50, "toggled" : false }, { "name" : "OUTPUTTAX_INVOICES", "label" : "已开票金额(元)", "width" : 60, "toggled" : false }, { "name" : "EXTERNAL_TOTAL", "label" : "累计跨区域涉税事项开具金额(元)", "width" : 80, "toggled" : false }, { "name" : "EXTERNAL_REMAINDER", "label" : "开具余额(元)", "width" : 80, "toggled" : false }, { "name" : "EXTERNALMONEY", "label" : "本次开具金额(元)", "width" : 60 }, { "name" : "TAXABLECONDUCT", "label" : "应税行为", "width" : 80, "toggled" : false }, { "name" : "CONTACTS", "label" : "联系人", "width" : 30 }, { "name" : "CONTACTSPHONE", "label" : "联系电话", "width" : 50 }, { "name" : "APPLICANT_DISPLAY__", "label" : "申请人", "width" : 30 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 50, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "APPROVALTYPE", "label" : "审批类型", "width" : 40, "type" : "mapping", "map" : { "0" : "暂扣", "1" : "汇款", "2" : "默认" } }, { "name" : "STATUS", "label" : "审批状态", "width" : 40, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "VALIDITYBEGIN", "label" : "有效开始日期", "width" : 50, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "VALIDITYEND", "label" : "有效结束日期", "width" : 50, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "MANAGENO", "label" : "管理编号", "width" : 50 }, { "name" : "WRITEOFF", "label" : "核销金额(元)", "width" : 60 }, { "name" : "WRITEOFFSTATUS", "label" : "核销状态", "width" : 40, "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/1d95f8e0-e746-4c5b-a555-2486a6fe6c82?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_EXTERNALAPPLY/defaults?templateId=1d95f8e0-e746-4c5b-a555-2486a6fe6c82" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_ADD?__egtpl=1d95f8e0-e746-4c5b-a555-2486a6fe6c82", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_SAVE_AND_SUBMIT?__egtpl=1d95f8e0-e746-4c5b-a555-2486a6fe6c82", "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/1d95f8e0-e746-4c5b-a555-2486a6fe6c82?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=1d95f8e0-e746-4c5b-a555-2486a6fe6c82", "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=1d95f8e0-e746-4c5b-a555-2486a6fe6c82", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_SAVE_AND_SUBMIT?__egtpl=1d95f8e0-e746-4c5b-a555-2486a6fe6c82", "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/5c07fe52-4e9f-4388-88e2-a57932ef129e?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=5c07fe52-4e9f-4388-88e2-a57932ef129e", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_SUBMIT", "data" : { "PM_EXTERNALAPPLY_ID" : "${selectedItems[0].PM_EXTERNALAPPLY_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" : { "&" : "${selectedItems[0]}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/5c07fe52-4e9f-4388-88e2-a57932ef129e?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=5c07fe52-4e9f-4388-88e2-a57932ef129e", "data" : { "PM_EXTERNALAPPLY_ID" : "${PM_EXTERNALAPPLY_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_EXTERNALAPPLY_UPDATE_PASS?__egtpl=5c07fe52-4e9f-4388-88e2-a57932ef129e", "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/30c34744-249e-4969-95ad-c1478179673f?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_EXTERNALAPPLY_LOAD?__egtpl=30c34744-249e-4969-95ad-c1478179673f", "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" : "209698e6-38fb-4c4e-8106-bf28fc9ca87e" } }, "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=30c34744-249e-4969-95ad-c1478179673f", "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" : "查看审批", "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" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${event.data.selectedItems[0]}", "templateId" : "209698e6-38fb-4c4e-8106-bf28fc9ca87e" } }, "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" : "209698e6-38fb-4c4e-8106-bf28fc9ca87e" } }, "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" : "209698e6-38fb-4c4e-8106-bf28fc9ca87e" } }, "outputVar" : "scriptResult3" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult3.commands}" } } ] } } } }