{ "type" : "page", "title" : "专业分包商评审", "body" : { "type" : "crud", "api" : "/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "RESEARCHID", "label" : "企业名称", "type" : "input-text" }, { "name" : "RATIFIEROPINION", "label" : "批准人意见", "type" : "input-text" }, { "name" : "RATIFYNAME", "label" : "批准人", "hidden" : true, "type" : "input-text" }, { "name" : "RATIFYDATE", "label" : "批准日期", "type" : "input-date-range" }, { "name" : "SUBPACKAGE", "label" : "分包专业", "hidden" : true, "type" : "input-text" } ] }, "columns" : [ { "name" : "PM_SPECIALTY_SUBPACKAGE_REVIEW_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "RESEARCHID_DISPLAY__", "label" : "企业名称", "width" : 200 }, { "name" : "SUBPACKAGE", "label" : "分包专业", "width" : 100 }, { "name" : "SUBTYPE", "label" : "分包种类", "width" : 80, "type" : "mapping", "map" : { "1" : "全部", "2" : "人工", "3" : "材料" } }, { "name" : "RATIFIEROPINION", "label" : "批准人意见", "width" : 300 }, { "name" : "RATIFYNAME_DISPLAY__", "label" : "批准人", "width" : 80 }, { "name" : "RATIFYDATE", "label" : "批准日期", "width" : 80, "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" : "作废" } } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/9d4d0ec2-4d18-46d4-b82e-5854fca40d15?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_SPECIALTY_SUBPACKAGE_REVIEW/defaults?templateId=9d4d0ec2-4d18-46d4-b82e-5854fca40d15" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_ADD?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_SUBMIT2?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "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/9d4d0ec2-4d18-46d4-b82e-5854fca40d15?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_LOAD?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "data" : { "PM_SPECIALTY_SUBPACKAGE_REVIEW_ID" : "${PM_SPECIALTY_SUBPACKAGE_REVIEW_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_UPDATE?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "close" : true }, { "type" : "button", "label" : "保存并提交审批", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_SUBMIT2?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "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_SPECIALTY_SUBPACKAGE_REVIEW_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_SPECIALTY_SUBPACKAGE_REVIEW_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/9d4d0ec2-4d18-46d4-b82e-5854fca40d15?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_LOAD?__egtpl=9d4d0ec2-4d18-46d4-b82e-5854fca40d15", "data" : { "PM_SPECIALTY_SUBPACKAGE_REVIEW_ID" : "${PM_SPECIALTY_SUBPACKAGE_REVIEW_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "提交审批", "label" : "提交审批", "actionType" : "ajax", "confirmText" : "确认要删除此记录吗?", "api" : { "method" : "post", "url" : "/api/flow/PM_SPECIALTY_SUBPACKAGE_REVIEW_SUBMIT", "data" : { "PM_SPECIALTY_SUBPACKAGE_REVIEW_ID" : "${selectedItems[0].PM_SPECIALTY_SUBPACKAGE_REVIEW_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_SPECIALTY_SUBPACKAGE_REVIEW_ID" : "${selectedItems[0].PM_SPECIALTY_SUBPACKAGE_REVIEW_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/750d5212-4578-464c-9eab-f8c62b7a5911?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_SPECIALTY_SUBPACKAGE_REVIEW_ID}", "businessTable" : "PM_SPECIALTY_SUBPACKAGE_REVIEW", "readOnly" : true, "mode" : "read" } } ] } } }, "pagination" ], "primaryField" : "PM_SPECIALTY_SUBPACKAGE_REVIEW_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "60ef2e09-e0d0-46e8-84ae-5052efff2f79" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }