{ "type" : "page", "title" : "机械供应商信息", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_MACHINESUPPLIER_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "UNITNAME", "label" : "企业名称", "type" : "input-text" }, { "name" : "SUPPLIER_TYPE", "label" : "供应商分类", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/supplier_type" }, { "name" : "APTITUDE", "label" : "资质等级", "type" : "input-text" }, { "name" : "MAJORPRODUCTS", "label" : "主要供应产品", "type" : "input-text" }, { "name" : "ABC_CLASSIFY", "label" : "ABC分类", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/ABC_type" }, { "name" : "ELIGIBILITY", "label" : "状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/eligibility" }, { "name" : "UNITNO", "label" : "企业编码", "hidden" : true, "type" : "input-text" }, { "name" : "UNITABBREVIATION", "label" : "企业简称", "hidden" : true, "type" : "input-text" }, { "name" : "UNITPROPERTY", "label" : "单位性质", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/UNITPROPERTY" }, { "name" : "UNITFOUNDDATE", "label" : "企业成立日期", "hidden" : true, "type" : "input-date" }, { "name" : "REGISTERCAPITAL", "label" : "注册子表(万元)", "hidden" : true, "type" : "input-number", "precision" : 2 }, { "name" : "REGISTERDATE", "label" : "登记日期", "hidden" : true, "type" : "input-date" }, { "name" : "UNITPHONE", "label" : "单位电话", "hidden" : true, "type" : "input-text" }, { "name" : "UNITFAX", "label" : "传真", "hidden" : true, "type" : "input-text" }, { "name" : "UNITADDRESS", "label" : "地址", "hidden" : true, "type" : "input-text" }, { "name" : "UNITZIPCODE", "label" : "邮编", "hidden" : true, "type" : "input-text" }, { "name" : "UNITID", "label" : "单位", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "name" : "UNITEMAIL", "label" : "单位邮箱", "hidden" : true, "type" : "input-text" }, { "name" : "UNITURL", "label" : "网址", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATE", "label" : "法人代表", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATEPHONE", "label" : "法人代表电话", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATEFAX", "label" : "法人代表传真", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATEEMAIL", "label" : "法人代表邮箱", "hidden" : true, "type" : "input-text" }, { "name" : "VALIDDATE", "label" : "有效期至", "type" : "input-date-range" }, { "name" : "IFSECURITYNUM", "label" : "是否有安全许可证", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO" } ] }, "columns" : [ { "name" : "VIEW_PM_MACHINESUPPLIER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "UNITNO", "label" : "企业编码", "width" : 100 }, { "name" : "UNITNAME", "label" : "企业名称", "width" : 200 }, { "name" : "SUPPLIER_TYPE", "label" : "供应商分类", "width" : 80, "type" : "mapping", "map" : { "1" : "采购供应商", "2" : "租赁供应商" } }, { "name" : "APTITUDE", "label" : "资质等级", "width" : 80 }, { "name" : "MAJORPRODUCTS", "label" : "主要供应产品", "width" : 200 }, { "name" : "ABC_CLASSIFY", "label" : "ABC分类", "width" : 100, "type" : "mapping", "map" : { "1" : "A", "2" : "B", "3" : "C" } }, { "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" : 200 }, { "name" : "REMARK", "label" : "备注", "width" : 200 }, { "name" : "UNITPHONE", "label" : "单位电话", "width" : 100 }, { "name" : "ELIGIBILITY", "label" : "状态", "width" : 60, "type" : "mapping", "map" : { "1" : "待调查", "2" : "未评审", "3" : "评审中", "4" : "合格", "5" : "不合格", "6" : "黑名" } }, { "name" : "UNITABBREVIATION", "label" : "企业简称", "width" : 200, "toggled" : false }, { "name" : "UNITPROPERTY", "label" : "单位性质", "width" : 200, "type" : "mapping", "map" : { "1" : "外资", "2" : "合资", "3" : "国有", "4" : "民营", "5" : "个体", "6" : "其它" }, "toggled" : false }, { "name" : "UNITFOUNDDATE", "label" : "企业成立日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "REGISTERCAPITAL", "label" : "注册子表(万元)", "width" : 200, "toggled" : false }, { "name" : "REGISTERDATE", "label" : "登记日期", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ", "toggled" : false }, { "name" : "UNITFAX", "label" : "传真", "width" : 200, "toggled" : false }, { "name" : "UNITZIPCODE", "label" : "邮编", "width" : 200, "toggled" : false }, { "name" : "UNITID_DISPLAY__", "label" : "单位", "width" : 200, "toggled" : false }, { "name" : "UNITEMAIL", "label" : "单位邮箱", "width" : 200, "toggled" : false }, { "name" : "UNITURL", "label" : "网址", "width" : 200, "toggled" : false }, { "name" : "CORPORATE", "label" : "法人代表", "width" : 80 }, { "name" : "CORPORATEPHONE", "label" : "法人代表电话", "width" : 200, "toggled" : false }, { "name" : "CORPORATEFAX", "label" : "法人代表传真", "width" : 200, "toggled" : false }, { "name" : "CORPORATEEMAIL", "label" : "法人代表邮箱", "width" : 200, "toggled" : false }, { "name" : "BANKS", "label" : "银行账户信息", "width" : 200, "toggled" : false }, { "name" : "PERSONS", "label" : "联系人信息", "width" : 200, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/891f6242-c1cb-46c9-ae58-a239e4fbcc06?format=amis", "api" : { "method" : "get", "url" : "/api/form/VIEW_PM_MACHINESUPPLIER/defaults?templateId=891f6242-c1cb-46c9-ae58-a239e4fbcc06" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_PM_MACHINESUPPLIER_ADD?__egtpl=891f6242-c1cb-46c9-ae58-a239e4fbcc06", "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/891f6242-c1cb-46c9-ae58-a239e4fbcc06?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MACHINESUPPLIER_LOAD?__egtpl=891f6242-c1cb-46c9-ae58-a239e4fbcc06", "data" : { "VIEW_PM_MACHINESUPPLIER_ID" : "${VIEW_PM_MACHINESUPPLIER_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/VIEW_PM_MACHINESUPPLIER_UPDATE?__egtpl=891f6242-c1cb-46c9-ae58-a239e4fbcc06", "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_MACHINESUPPLIER_DELETE", "data" : { "ids" : "${selectedItems|pick:VIEW_PM_MACHINESUPPLIER_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/891f6242-c1cb-46c9-ae58-a239e4fbcc06?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MACHINESUPPLIER_LOAD?__egtpl=891f6242-c1cb-46c9-ae58-a239e4fbcc06", "data" : { "VIEW_PM_MACHINESUPPLIER_ID" : "${VIEW_PM_MACHINESUPPLIER_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "加入黑名单", "label" : "加入黑名单", "actionType" : "ajax", "disabled" : true, "confirmText" : "确定要将此供应商加入黑名单吗?", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MACHINESUPPLIER_ADDINTO_BLACKLIST", "data" : { "VIEW_PM_MACHINESUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MACHINESUPPLIER_ID}" } } }, { "type" : "button", "id" : "复评", "label" : "复评", "actionType" : "ajax", "disabled" : true, "confirmText" : "确定对此供应商进行复评吗?", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MACHINESUPPLIER_REVIEW", "data" : { "VIEW_PM_MACHINESUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MACHINESUPPLIER_ID}" } } }, { "type" : "button", "id" : "合同明细", "label" : "合同明细", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "合同明细", "size" : "lg", "data" : { "VIEW_PM_MACHINESUPPLIER_ID" : "${selectedItems[0].VIEW_PM_MACHINESUPPLIER_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/ba6f9d3a-1ea9-4c95-a6f6-f5d13ebe99fa?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_PM_MACHINESUPPLIER_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" : "d1f64d77-87fa-4196-9fa1-e4b2f225a4ac" } }, "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" : "d1f64d77-87fa-4196-9fa1-e4b2f225a4ac" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } } }