{ "type" : "page", "title" : "项目送审", "body" : { "type" : "crud", "api" : "/api/flow/PM_PROJECTTRIAL_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "TRIALDATE", "label" : "送审日期", "type" : "input-date-range" }, { "name" : "APPLYUSER", "label" : "申请人", "type" : "picker", "clearable" : true, "source" : "/api/picker/ac35b7e4-a338-4ca6-b5cd-98d5d1c54bab/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" : "ORGID", "label" : "(分)公司", "type" : "tree-select", "clearable" : true, "source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree", "searchable" : true, "onlyLeaf" : true }, { "name" : "STATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" } ] }, "columns" : [ { "name" : "PM_PROJECTTRIAL_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 280 }, { "name" : "PROJECTSTAGE", "label" : "工程阶段", "width" : 80, "type" : "mapping", "map" : { "3" : "报名已申请", "-15" : "未入围", "-100" : "投标终止", "-10" : "入围", "-1" : "未中标", "5" : "招标文件已评审", "6" : "投标文件已评审", "7" : "投标登记", "8" : "中标", "9" : "合同洽谈", "10" : "合同实施", "15" : "工程终止", "20" : "主体完工", "50" : "工程完成", "70" : "项目已送审", "80" : "项目退场", "100" : "工程竣工", "120" : "保修到期" } }, { "name" : "CONTRACTNAME_DISPLAY__", "label" : "合同名称", "width" : 180 }, { "name" : "CONTRACTUALMONEY", "label" : "合同价款(元)", "width" : 110 }, { "name" : "TRIALPRICE", "label" : "送审造价(元)", "width" : 110 }, { "name" : "FINALACCOUNTSUSER_DISPLAY__", "label" : "决算负责人", "width" : 80 }, { "name" : "TRIALUNIT_DISPLAY__", "label" : "审计单位", "width" : 150 }, { "name" : "TRIALDATE", "label" : "送审日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "APPLYUSER_DISPLAY__", "label" : "申请人", "width" : 70 }, { "name" : "APPLYDATE", "label" : "申请日期", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMARK", "label" : "备注", "width" : 150 }, { "name" : "ORGID_DISPLAY__", "label" : "(分)公司", "width" : 200 }, { "name" : "STATUS", "label" : "审批状态", "width" : 70, "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/730d304f-bbf6-44cb-9b35-2ca5703d043a?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_PROJECTTRIAL/defaults?templateId=730d304f-bbf6-44cb-9b35-2ca5703d043a" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTTRIAL_ADD?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTTRIAL_ADDSUBMIT?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "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/730d304f-bbf6-44cb-9b35-2ca5703d043a?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTTRIAL_LOAD?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "data" : { "PM_PROJECTTRIAL_ID" : "${PM_PROJECTTRIAL_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTTRIAL_UPDATE?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_PROJECTTRIAL_ADDSUBMIT?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "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_PROJECTTRIAL_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_PROJECTTRIAL_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/730d304f-bbf6-44cb-9b35-2ca5703d043a?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTTRIAL_LOAD?__egtpl=730d304f-bbf6-44cb-9b35-2ca5703d043a", "data" : { "PM_PROJECTTRIAL_ID" : "${PM_PROJECTTRIAL_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/flow/PM_PROJECTTRIAL_SUBMIT", "data" : { "PM_PROJECTTRIAL_ID" : "${selectedItems[0].PM_PROJECTTRIAL_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_PROJECTTRIAL_ID" : "${selectedItems[0].PM_PROJECTTRIAL_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/9a53dac2-6d66-402d-bf7a-d0c2fc2f802c?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_PROJECTTRIAL_ID}", "businessTable" : "PM_PROJECTTRIAL", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_PROJECTTRIAL_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "d3d23fdc-253f-4783-96c8-609373cd30ef" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }