{ "type" : "page", "title" : "物资供应商检查记录", "body" : { "type" : "crud", "api" : "/api/flow/PM_MATERIALSUPPLIER_INSPECT_SEARCH", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "picker", "clearable" : true, "source" : "/api/picker/8fbf5298-4588-42e9-ab52-698fc9b380d3/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" }, { "name" : "SUPPLIERID", "label" : "物资供应商", "type" : "picker", "clearable" : true, "source" : "/api/picker/30b8f8fb-26be-4a07-87cf-2d66053acfb0/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "AVAILABILITYTYPE", "label" : "供应物资种类", "type" : "input-text" }, { "name" : "INSPECTDATE", "label" : "检查日期", "type" : "input-date-range" } ] }, "columns" : [ { "name" : "PM_MATERIALSUPPLIER_INSPECT_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "PROJECTID_DISPLAY__", "label" : "工程名称", "width" : 400 }, { "name" : "SUPPLIERID_DISPLAY__", "label" : "物资供应商", "width" : 200 }, { "name" : "AVAILABILITYTYPE", "label" : "供应物资种类", "width" : 200 }, { "name" : "QUALITYSCORE", "label" : "质量评分", "width" : 100 }, { "name" : "SUPPLYPROSCORE", "label" : "供货进度评分", "width" : 100 }, { "name" : "QUALITYASSDATASCORE", "label" : "质保资料评分", "width" : 100 }, { "name" : "INSPECTUSER_DISPLAY__", "label" : "检查人", "width" : 100 }, { "name" : "INSPECTDATE", "label" : "检查日期", "width" : 100, "type" : "date", "format" : "YYYY-MM-DD", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" } ], "headerToolbar" : [ { "type" : "button", "id" : "添加", "label" : "添加", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "title" : "添加", "size" : "lg", "body" : { "type" : "service", "schemaApi" : "get:/api/page/schema/da114222-8e61-4c7e-a752-e7b120f6bbb1?format=amis", "api" : { "method" : "get", "url" : "/api/form/PM_MATERIALSUPPLIER_INSPECT/defaults?templateId=da114222-8e61-4c7e-a752-e7b120f6bbb1" } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_MATERIALSUPPLIER_INSPECT_ADD?__egtpl=da114222-8e61-4c7e-a752-e7b120f6bbb1", "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/da114222-8e61-4c7e-a752-e7b120f6bbb1?format=amis", "api" : { "method" : "post", "url" : "/api/flow/PM_MATERIALSUPPLIER_INSPECT_LOAD?__egtpl=da114222-8e61-4c7e-a752-e7b120f6bbb1", "data" : { "PM_MATERIALSUPPLIER_INSPECT_ID" : "${PM_MATERIALSUPPLIER_INSPECT_ID}" }, "responseData" : { "&" : "${result}" } } }, "actions" : [ { "type" : "button", "label" : "保存", "level" : "primary", "actionType" : "submit", "api" : "POST:/api/flow/PM_MATERIALSUPPLIER_INSPECT_UPDATE?__egtpl=da114222-8e61-4c7e-a752-e7b120f6bbb1", "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_MATERIALSUPPLIER_INSPECT_DELETE", "data" : { "ids" : "${selectedItems|pick:PM_MATERIALSUPPLIER_INSPECT_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/da114222-8e61-4c7e-a752-e7b120f6bbb1?format=amis", "static" : true, "api" : { "method" : "post", "url" : "/api/flow/PM_MATERIALSUPPLIER_INSPECT_LOAD?__egtpl=da114222-8e61-4c7e-a752-e7b120f6bbb1", "data" : { "PM_MATERIALSUPPLIER_INSPECT_ID" : "${PM_MATERIALSUPPLIER_INSPECT_ID}" }, "responseData" : { "&" : "${result}" } } } } }, "pagination" ], "primaryField" : "PM_MATERIALSUPPLIER_INSPECT_ID" } }