{ "type" : "page", "title" : "集采报价列表", "body" : { "type" : "crud", "api" : "/api/flow/PM_JICQUOTATION_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "SUPPLIERID", "label" : "供应商", "type" : "picker", "clearable" : true, "source" : "/api/picker/0b2c7a3f-4a8c-48b7-9f4d-239e36a29c72/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "MATERIALNAME", "label" : "材料名称", "type" : "input-text" }, { "name" : "PROVINCE", "label" : "省", "type" : "input-text" }, { "name" : "CITY", "label" : "市", "type" : "input-text" } ] }, "columns" : [ { "name" : "PM_JICQUOTATION_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "SUPPLIERID_DISPLAY__", "label" : "供应商", "width" : 200 }, { "name" : "MATERIALNAME", "label" : "材料名称", "width" : 200 }, { "name" : "MATERIALSPEC", "label" : "规格型号", "width" : 200 }, { "name" : "BRAND", "label" : "品牌", "width" : 200 }, { "name" : "UNIT", "label" : "单位", "width" : 200 }, { "name" : "EXCLUDETAXPRICE", "label" : "除税价", "width" : 200 }, { "name" : "TAXRATE", "label" : "税率(%)", "width" : 200 }, { "name" : "TAXPRICE", "label" : "含税价", "width" : 200 }, { "name" : "FREIGHT", "label" : "运费", "width" : 200 }, { "name" : "REGION", "label" : "地区", "width" : 200 }, { "name" : "QUOTATIONDATE", "label" : "报价时间", "width" : 200, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "REMARK", "label" : "备注", "width" : 200 }, { "name" : "CURRENTVERSION", "label" : "版本", "width" : 200 }, { "name" : "QUOTESTATUS", "label" : "报价状态", "width" : 200, "toggled" : false }, { "name" : "PROVINCE", "label" : "省", "width" : 200, "toggled" : false }, { "name" : "CITY", "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/cf2713aa-018c-4fed-84ac-02dfaf39138c?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_JICQUOTATION/defaults?templateId=cf2713aa-018c-4fed-84ac-02dfaf39138c" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_JICQUOTATION_ADD?__egtpl=cf2713aa-018c-4fed-84ac-02dfaf39138c", "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/cf2713aa-018c-4fed-84ac-02dfaf39138c?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_JICQUOTATION_LOAD?__egtpl=cf2713aa-018c-4fed-84ac-02dfaf39138c", "data" : { "PM_JICQUOTATION_ID" : "${PM_JICQUOTATION_ID}" }, "responseData" : { "&" : "${result}" } }, "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "a6fe88a4-fdf7-4e9e-8d38-33c24767c2e2" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } } ] } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_JICQUOTATION_UPDATE?__egtpl=cf2713aa-018c-4fed-84ac-02dfaf39138c", "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_JICQUOTATION_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_JICQUOTATION_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/cf2713aa-018c-4fed-84ac-02dfaf39138c?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_JICQUOTATION_LOAD?__egtpl=cf2713aa-018c-4fed-84ac-02dfaf39138c", "data" : { "PM_JICQUOTATION_ID" : "${PM_JICQUOTATION_ID}" }, "responseData" : { "&" : "${result}" } } } } }, { "type" : "button", "id" : "历史报价", "label" : "历史报价", "actionType" : "dialog", "disabledOn" : "${!selectedItems || selectedItems.length === 0}", "dialog" : { "type" : "dialog", "title" : "集采报价历史", "size" : "lg", "data" : { "PM_JICQUOTATION_ID" : "${selectedItems[0].PM_JICQUOTATION_ID}" }, "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/f0102416-bb74-42b4-aa3a-06512790c9d4?format=amis" }, "actions" : [ { "type" : "button", "label" : "关闭", "actionType" : "close" } ] } }, { "type" : "button", "id" : "报价导入", "label" : "报价导入", "disabled" : true, "tooltip" : "动作待接服务流(报价导入)" }, "pagination" ], "primaryField" : "PM_JICQUOTATION_ID", "onEvent" : { "inited" : { "actions" : [ { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 2, "item" : "${&}", "templateId" : "a6fe88a4-fdf7-4e9e-8d38-33c24767c2e2" } }, "outputVar" : "scriptResult2" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult2.commands}" } }, { "actionType" : "ajax", "api" : { "method" : "post", "url" : "/api/script/execute-template", "data" : { "seq" : 1, "item" : "${&}", "templateId" : "a6fe88a4-fdf7-4e9e-8d38-33c24767c2e2" } }, "outputVar" : "scriptResult1" }, { "actionType" : "replayScriptCommands", "args" : { "commands" : "${event.data.scriptResult1.commands}" } } ] } } } }