{ "type" : "page", "title" : "物资供应商基础配置", "body" : { "type" : "crud", "api" : "/api/flow/PM_SUPPLIER_BASICCONFIG_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "CONFIGITEM", "label" : "配置项", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_Suppliesr_BasicConfig_configItem" }, { "name" : "RESEARCHAPPRAISALITEM", "label" : "调查项", "type" : "input-text" }, { "name" : "OPTIONS", "label" : "操作选项", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_Suppliesr_BasicConfig_options" }, { "name" : "STATE", "label" : "状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_Suppliesr_BasicConfig_status" } ] }, "columns" : [ { "name" : "PM_SUPPLIER_BASICCONFIG_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SORTID", "label" : "排序号", "width" : 50 }, { "name" : "CONFIGITEM", "label" : "配置项", "width" : 100, "type" : "mapping", "map" : { "1" : "物资供应商调查", "2" : "物资供应商评价" } }, { "name" : "RESEARCHAPPRAISALITEM", "label" : "调查项", "width" : 400 }, { "name" : "OPTIONS", "label" : "操作选项", "width" : 80, "type" : "mapping", "map" : { "1" : "单选", "2" : "多选" } }, { "name" : "STATE", "label" : "状态", "width" : 80, "type" : "mapping", "map" : { "1" : "启用", "2" : "停用" } }, { "name" : "DESCRIPTION", "label" : "描述", "width" : 200 } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/fdece875-3857-4df2-9401-82f17334ca7c?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_SUPPLIER_BASICCONFIG/defaults?templateId=fdece875-3857-4df2-9401-82f17334ca7c" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SUPPLIER_BASICCONFIG_ADD?__egtpl=fdece875-3857-4df2-9401-82f17334ca7c", "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/fdece875-3857-4df2-9401-82f17334ca7c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_SUPPLIER_BASICCONFIG_LOAD?__egtpl=fdece875-3857-4df2-9401-82f17334ca7c", "data" : { "PM_SUPPLIER_BASICCONFIG_ID" : "${PM_SUPPLIER_BASICCONFIG_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_SUPPLIER_BASICCONFIG_UPDATE?__egtpl=fdece875-3857-4df2-9401-82f17334ca7c", "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_SUPPLIER_BASICCONFIG_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_SUPPLIER_BASICCONFIG_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/fdece875-3857-4df2-9401-82f17334ca7c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SUPPLIER_BASICCONFIG_LOAD?__egtpl=fdece875-3857-4df2-9401-82f17334ca7c", "data" : { "PM_SUPPLIER_BASICCONFIG_ID" : "${PM_SUPPLIER_BASICCONFIG_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "启用", "label" : "启用", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SUPPLIER_BASICCONFIG_ENABLE_BASICCONFIG", "data" : { "PM_SUPPLIER_BASICCONFIG_ID" : "${selectedItems[0].PM_SUPPLIER_BASICCONFIG_ID}" } } }, { "type" : "button", "id" : "停用", "label" : "停用", "actionType" : "ajax", "disabled" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_SUPPLIER_BASICCONFIG_DISABLE_BASICCONFIG", "data" : { "PM_SUPPLIER_BASICCONFIG_ID" : "${selectedItems[0].PM_SUPPLIER_BASICCONFIG_ID}" } } }, "pagination" ], "primaryField" : "PM_SUPPLIER_BASICCONFIG_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" : "2d163b22-48e0-46c3-b148-3d991fdfbaa3" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }