{ "type" : "page", "title" : "大型设备管理", "body" : { "type" : "crud", "api" : "/api/flow/PM_BIGEQUIPMENT_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "MACHID", "label" : "设备名称", "type" : "picker", "clearable" : true, "source" : "/api/template/treegrid?treeRef=814d3da1-b354-4cd7-9ca5-e54e74849358&gridTable=PM_MACHINEREPOSITORY&rcol=RESOURCETYPEID&node=${RESOURCETYPEID}&MACHINECODE=${MACHINECODE}&page=${page}&perPage=${perPage}", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "filter" : { "title" : "", "body" : [ { "type" : "tree-select", "name" : "RESOURCETYPEID", "label" : "分类", "source" : "/api/template/814d3da1-b354-4cd7-9ca5-e54e74849358/tree", "searchable" : true, "clearable" : true }, { "type" : "input-text", "name" : "MACHINECODE", "label" : "名称", "clearable" : true } ] }, "columns" : [ { "name" : "MACHINECODE", "label" : "机械编码", "width" : 200 }, { "name" : "MACHINENAME", "label" : "机械名称", "width" : 200 }, { "name" : "SPECIFICATIONS", "label" : "规格", "width" : 200 }, { "name" : "UNIT_DISPLAY__", "label" : "计量单位", "width" : 200 }, { "name" : "RESOURCETYPEID_DISPLAY__", "label" : "机械分类", "width" : 200 } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "MODEL", "label" : "设备型号", "type" : "input-text" }, { "name" : "APPLYUSER", "label" : "申请人", "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "TEXT", "label" : "内容", "type" : "input-text" }, { "name" : "STAGE", "label" : "阶段", "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/BIG_EN_STAGE", "value" : "1" } ] }, "columns" : [ { "name" : "PM_BIGEQUIPMENT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "COMPANY_DISPLAY__", "label" : "分公司", "width" : 200 }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 200 }, { "name" : "MACHID_DISPLAY__", "label" : "设备名称", "width" : 200 }, { "name" : "MODEL", "label" : "设备型号", "width" : 200 }, { "name" : "APPLYUSER_DISPLAY__", "label" : "申请人", "width" : 200, "toggled" : false }, { "name" : "TEXT", "label" : "内容", "width" : 200, "toggled" : false }, { "name" : "STAGE", "label" : "阶段", "width" : 200, "type" : "mapping", "map" : { "1" : "申请", "2" : "基础方案", "3" : "拆装方案", "4" : "基础验收", "5" : "安装与验收", "6" : "设备检测" }, "toggled" : false } ], "headerToolbar" : [ { "type" : "button", "id" : "打印", "label" : "打印", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "大型设备管理打印", "size" : "lg", "data" : { "PM_BIGEQUIPMENT_ID" : "${selectedItems[0].PM_BIGEQUIPMENT_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/73ecbd14-41f1-4fa1-a830-18e7e20ef50b?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, "pagination" ], "primaryField" : "PM_BIGEQUIPMENT_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "ee4b1f40-7d5a-4c66-b342-2574a10ffbfd" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }