{ "type" : "page", "title" : "物资供应商临时合格设置", "body" : { "type" : "crud", "api" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "UNITNAME", "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" : "ABC_TYPE", "label" : "ABC分类", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/ABC_type" }, { "name" : "ELIGIBILITY", "label" : "供应商状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/eligibility", "value" : "3" } ] }, "columns" : [ { "name" : "VIEW_PM_MATERIALSUPPLIER_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "UNITNAME", "label" : "企业名称", "width" : 200 }, { "name" : "ABC_TYPE", "label" : "ABC分类", "width" : 50, "type" : "mapping", "map" : { "1" : "A", "2" : "B", "3" : "C" } }, { "name" : "ELIGIBILITY", "label" : "供应商状态", "width" : 200, "type" : "mapping", "map" : { "1" : "待调查", "2" : "未评审", "3" : "评审中", "4" : "合格", "5" : "不合格", "6" : "黑名" } } ], "headerToolbar" : [ { "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/6000d02f-2069-4e5b-9a7f-a5ba2b560828?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=6000d02f-2069-4e5b-9a7f-a5ba2b560828", "data" : { "VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "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/2ded7949-5669-49fd-af35-41d3a293023f?format=amis", "api" : { "method" : "post", "url" : "/api/flow/VIEW_PM_MATERIALSUPPLIER_LOAD?__egtpl=2ded7949-5669-49fd-af35-41d3a293023f", "data" : { "VIEW_PM_MATERIALSUPPLIER_ID" : "${VIEW_PM_MATERIALSUPPLIER_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_MATERIALSUPPLIER_UPDATE?__egtpl=2ded7949-5669-49fd-af35-41d3a293023f", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "VIEW_PM_MATERIALSUPPLIER_ID" } }