{ "type" : "page", "title" : "专业分包商信息", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "APTITUDE", "label" : "企业资质", "type" : "input-text" }, { "name" : "CONSTRUCTIONNUM", "label" : "施工许可证编号", "type" : "input-text" }, { "name" : "ENTERNUM", "label" : "进市施工许可证编号", "type" : "input-text" }, { "name" : "SECURITYNUM", "label" : "安全资格许可证编号", "type" : "input-text" }, { "name" : "SUBPACKAGE", "label" : "分包专业", "type" : "input-text" }, { "name" : "UNITNAME", "label" : "企业名称", "type" : "input-text" }, { "name" : "APPLYDATE", "label" : "申请日期", "type" : "input-date-range" }, { "name" : "UNITFOUNDDATE", "label" : "企业成立日期", "type" : "input-date-range" }, { "name" : "APTITUDENUM", "label" : "资质证书编号", "type" : "input-text" }, { "name" : "SUBPACKAGE_STATUS", "label" : "分包商状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/subpackage_status" }, { "name" : "VALIDDATE", "label" : "有效期至", "type" : "input-date-range" }, { "name" : "IFSECURITYNUM", "label" : "是否有安全许可证", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "VIEW_PM_SPECIALTY_SUBPACKAGE_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "UNITID", "label" : "单位", "width" : 100, "toggled" : false }, { "name" : "UNITNO", "label" : "企业编码", "width" : 100 }, { "name" : "UNITNAME", "label" : "企业名称", "width" : 150 }, { "name" : "SUBPACKAGE", "label" : "分包专业", "width" : 100 }, { "name" : "APTITUDE", "label" : "企业资质", "width" : 100 }, { "name" : "PAYEEUNITNAME", "label" : "收款单位全称", "width" : 200, "toggled" : false }, { "name" : "OPENINGBANK", "label" : "开户银行", "width" : 200, "toggled" : false }, { "name" : "ACCOUNTNUMBER", "label" : "银行账号", "width" : 200, "toggled" : false }, { "name" : "TAXTICKETTYPE_LIST", "label" : "税票类型", "width" : 150 }, { "name" : "VALIDDATE", "label" : "有效期至", "width" : 80, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "UNITADDRESS", "label" : "地址", "width" : 180 }, { "name" : "REMARK", "label" : "备注", "width" : 200 }, { "name" : "UNITFOUNDDATE", "label" : "企业成立日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "SUBPACKAGE_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/505772b9-6cbc-45b5-a080-a27583ac2acb?format=amis", "api" : { "method" : "get", "url" : "/api/form/VIEW_PM_SPECIALTY_SUBPACKAGE/defaults?templateId=505772b9-6cbc-45b5-a080-a27583ac2acb" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_ADD?__egtpl=505772b9-6cbc-45b5-a080-a27583ac2acb", "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/505772b9-6cbc-45b5-a080-a27583ac2acb?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_LOAD?__egtpl=505772b9-6cbc-45b5-a080-a27583ac2acb", "data" : { "VIEW_PM_SPECIALTY_SUBPACKAGE_ID" : "${VIEW_PM_SPECIALTY_SUBPACKAGE_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_UPDATE?__egtpl=505772b9-6cbc-45b5-a080-a27583ac2acb", "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/VIEW_PM_SPECIALTY_SUBPACKAGE_DELETE", "data" : { "ids" : "${selectedItems|pick:VIEW_PM_SPECIALTY_SUBPACKAGE_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/505772b9-6cbc-45b5-a080-a27583ac2acb?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_LOAD?__egtpl=505772b9-6cbc-45b5-a080-a27583ac2acb", "data" : { "VIEW_PM_SPECIALTY_SUBPACKAGE_ID" : "${VIEW_PM_SPECIALTY_SUBPACKAGE_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "加入黑名单", "label" : "加入黑名单", "actionType" : "ajax", "disabled" : true, "confirmText" : "确定要将此分包商加入黑名单吗?", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_ADD_BLACK", "data" : { "VIEW_PM_SPECIALTY_SUBPACKAGE_ID" : "${selectedItems[0].VIEW_PM_SPECIALTY_SUBPACKAGE_ID}" } } }, { "type" : "button", "id" : "复评", "label" : "复评", "actionType" : "ajax", "disabled" : true, "confirmText" : "确定对此分包商进行复评吗?", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_SPECIALTY_SUBPACKAGE_RE_CHECK", "data" : { "VIEW_PM_SPECIALTY_SUBPACKAGE_ID" : "${selectedItems[0].VIEW_PM_SPECIALTY_SUBPACKAGE_ID}" } } }, { "type" : "button", "id" : "合同信息", "label" : "合同信息", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "合同明细", "size" : "lg", "data" : { "VIEW_PM_SPECIALTY_SUBPACKAGE_ID" : "${selectedItems[0].VIEW_PM_SPECIALTY_SUBPACKAGE_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/d41063b3-9189-42ce-8689-8ce022a99fc2?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_PM_SPECIALTY_SUBPACKAGE_ID", "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "disabled", "componentId" : "加入黑名单" }, { "actionType" : "disabled", "componentId" : "复评" }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${event.data.selectedItems[0]}", "templateId" : "73cf2dfb-9c03-405f-bfe7-762a57e900ed" } }, "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" : "73cf2dfb-9c03-405f-bfe7-762a57e900ed" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }