{ "type" : "page", "title" : "单位信息确认(内部定制)", "body" : { "type" : "crud", "api" : "/api/flow/OA_UNITINFO_SEARCH_BUILDCOMPANY", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "UNITNAME", "label" : "单位名称", "type" : "input-text" }, { "name" : "UNITPROPERTY", "label" : "单位性质", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/UNITPROPERTY" }, { "name" : "UNITNO", "label" : "单位编码", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATE", "label" : "法人代表", "hidden" : true, "type" : "input-text" }, { "name" : "CORPORATEPHONE", "label" : "法人代表电话", "hidden" : true, "type" : "input-text" }, { "name" : "UNITABBREVIATION", "label" : "单位简称", "hidden" : true, "type" : "input-text" }, { "name" : "UNITPHONE", "label" : "单位电话", "hidden" : true, "type" : "input-text" }, { "name" : "UNITTYPE", "label" : "单位分类", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/UNITTYPE" }, { "name" : "ISCONFIRM", "label" : "是否确认", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" } ] }, "columns" : [ { "name" : "OA_UNITINFO_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "UNITNAME", "label" : "单位名称", "width" : 300 }, { "name" : "UNITTYPE", "label" : "单位分类", "width" : 120, "type" : "mapping", "map" : { "1" : "其它单位", "2" : "物资供应商", "3" : "机械供应商", "4" : "专业分包商", "5" : "劳务队组", "6" : "其它供应商", "7" : "建设单位", "8" : "监理单位", "9" : "勘察单位", "10" : "设计单位", "11" : "审计单位", "12" : "施工单位", "13" : "劳务公司", "14" : "代理单位", "15" : "本公司组织" } }, { "name" : "UNITNO", "label" : "单位编码", "width" : 150 }, { "name" : "UNITPROPERTY", "label" : "单位性质", "width" : 100, "type" : "mapping", "map" : { "1" : "外资", "2" : "合资", "3" : "国有", "4" : "民营", "5" : "个体", "6" : "其它" } }, { "name" : "UNITABBREVIATION", "label" : "单位简称", "width" : 100 }, { "name" : "UNITPHONE", "label" : "单位电话", "width" : 200 }, { "name" : "CORPORATE", "label" : "法人代表", "width" : 100 }, { "name" : "ISCONFIRM", "label" : "是否确认", "width" : 60, "type" : "mapping", "map" : { "0" : "否", "1" : "是", "false" : "否", "true" : "是" }, "toggled" : false } ], "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/b9d8da33-f939-4cf9-9bf7-737b5d118884?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/OA_UNITINFO_LOAD?__egtpl=b9d8da33-f939-4cf9-9bf7-737b5d118884", "data" : { "OA_UNITINFO_ID" : "${OA_UNITINFO_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/4da65dcf-b739-4ee6-8037-061854a3d680?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_UNITINFO_LOAD?__egtpl=4da65dcf-b739-4ee6-8037-061854a3d680", "data" : { "OA_UNITINFO_ID" : "${OA_UNITINFO_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_UNITINFO_CONFIRM?__egtpl=4da65dcf-b739-4ee6-8037-061854a3d680", "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/b32f77ae-4494-490e-bf68-5e856d056fca?format=amis", "api" : { "method" : "post", "url" : "/api/flow/OA_UNITINFO_LOAD?__egtpl=b32f77ae-4494-490e-bf68-5e856d056fca", "data" : { "OA_UNITINFO_ID" : "${OA_UNITINFO_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/OA_UNITINFO_CONFIRM2?__egtpl=b32f77ae-4494-490e-bf68-5e856d056fca", "close" : true }, { "type" : "button", "label" : "取消", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "OA_UNITINFO_ID" } }