diff --git a/example/config/app.json b/example/config/app.json index 5307e79..2937813 100644 --- a/example/config/app.json +++ b/example/config/app.json @@ -1,5 +1,5 @@ { - "id": "7b1c0ebec5cc5b407bcd243c54d45d10", + "id": "a6467964bfe64def9cd247c226e6d49b", "label": "HoTime管理平台", "menus": [ { @@ -7,311 +7,10 @@ "label": "平台首页", "name": "HelloWorld" }, - { - "icon": "el-icon-setting", - "label": "出入库管理", - "menus": [ - { - "label": "出入库管理", - "table": "material_inout" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - }, - { - "label": "原材料管理", - "table": "material" - } - ], - "name": "sys:material" - }, - { - "icon": "el-icon-setting", - "label": "生产计划", - "menus": [ - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "消耗原材料", - "table": "produce_material" - }, - { - "label": "生产成品", - "table": "produce_product" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - }, - { - "label": "生产计划", - "table": "produce" - } - ], - "name": "sys:produce" - }, - { - "icon": "el-icon-setting", - "label": "质检管理", - "menus": [ - { - "label": "质检管理", - "table": "product_check" - }, - { - "label": "抽检管理", - "table": "product_spot_check" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "产线管理", - "table": "product_line" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - }, - { - "label": "成品管理", - "table": "product" - } - ], - "name": "sys:product" - }, { "icon": "el-icon-setting", "label": "系统管理", "menus": [ - { - "label": "客户管理", - "table": "user" - }, { "label": "人员管理", "table": "admin" @@ -324,16 +23,89 @@ "label": "炉温监控", "table": "furnace_temperature" }, + { + "label": "部门管理", + "table": "org" + }, { "label": "事项管理", "table": "category" }, { - "label": "部门管理", - "table": "org" + "label": "客户管理", + "table": "user" } ], "name": "sys" + }, + { + "icon": "el-icon-setting", + "label": "消耗原材料", + "menus": [ + { + "label": "消耗原材料", + "table": "produce_material" + }, + { + "label": "生产计划", + "table": "produce" + }, + { + "label": "生产成品", + "table": "produce_product" + }, + { + "label": "生产计划", + "table": "produce" + } + ], + "name": "sys:produce" + }, + { + "icon": "el-icon-setting", + "label": "产线管理", + "menus": [ + { + "label": "产线管理", + "table": "product_line" + }, + { + "label": "成品管理", + "table": "product" + }, + { + "label": "质检管理", + "table": "product_check" + }, + { + "label": "抽检管理", + "table": "product_spot_check" + }, + { + "label": "成品管理", + "table": "product" + } + ], + "name": "sys:product" + }, + { + "icon": "el-icon-setting", + "label": "原材料管理", + "menus": [ + { + "label": "原材料管理", + "table": "material" + }, + { + "label": "出入库管理", + "table": "material_inout" + }, + { + "label": "原材料管理", + "table": "material" + } + ], + "name": "sys:material" } ], "name": "admin", @@ -841,6 +613,12 @@ "sortable": true, "type": "number" }, + { + "label": "默认添加数量", + "name": "num", + "sortable": true, + "type": "number" + }, { "label": "经办人", "link": "admin", @@ -888,9 +666,11 @@ "type": "select" }, { - "label": "参数1", + "label": "基本信息", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" }, { "label": "有效期", @@ -930,12 +710,6 @@ "must": false, "name": "description", "type": "text" - }, - { - "label": "默认添加数量", - "name": "num", - "sortable": true, - "type": "number" } ], "label": "原材料管理", @@ -958,32 +732,6 @@ "type": "search", "value": null }, - { - "label": "状态", - "list": false, - "must": true, - "name": "state", - "options": [ - { - "name": "已启用", - "value": "0" - }, - { - "name": "未启用", - "value": "1" - }, - { - "name": "异常", - "value": "2" - }, - { - "name": "全部", - "value": null - } - ], - "type": "select", - "value": null - }, { "label": "有效期", "must": true, @@ -1013,6 +761,32 @@ "sortable": true, "type": "select", "value": null + }, + { + "label": "状态", + "list": false, + "must": true, + "name": "state", + "options": [ + { + "name": "已启用", + "value": "0" + }, + { + "name": "未启用", + "value": "1" + }, + { + "name": "异常", + "value": "2" + }, + { + "name": "全部", + "value": null + } + ], + "type": "select", + "value": null } ], "table": "material" @@ -1113,9 +887,11 @@ "type": "select" }, { - "label": "参数1", + "label": "基础信息", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" }, { "label": "关联生产计划", @@ -1357,7 +1133,7 @@ "type": "number" }, { - "label": "SN", + "label": "二维码起始编码", "name": "sn", "type": "text" }, @@ -1447,8 +1223,10 @@ }, { "label": "其他规则", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" }, { "label": "抽检覆盖量", @@ -1922,36 +1700,12 @@ ], "type": "select" }, - { - "label": "参数1", - "name": "rule", - "type": "text" - }, { "label": "抽检参数", + "list": false, + "must": false, "name": "rule_spot_check", - "type": "text" - }, - { - "label": "质检参数", - "name": "rule_check", - "type": "text" - }, - { - "label": "生产计划", - "link": "produce", - "name": "produce_id", - "sortable": true, - "type": "number", - "value": "name" - }, - { - "label": "生产产线", - "link": "product_line", - "name": "product_line_id", - "sortable": true, - "type": "number", - "value": "name" + "type": "form" }, { "label": "抽检百分比", @@ -1960,6 +1714,13 @@ "name": "spot_check_percentage", "sortable": true, "type": "number" + }, + { + "label": "质检参数", + "list": false, + "must": false, + "name": "rule_check", + "type": "form" } ], "label": "成品管理", @@ -2095,9 +1856,11 @@ "type": "select" }, { - "label": "参数1", + "label": "基本信息", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" }, { "label": "生产计划", @@ -2366,9 +2129,11 @@ "type": "select" }, { - "label": "参数1", + "label": "基本信息", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" }, { "label": "生产计划", @@ -2505,8 +2270,10 @@ }, { "label": "规则", + "list": false, + "must": false, "name": "rule", - "type": "text" + "type": "form" } ], "label": "角色管理",