diff --git a/src/config/route.js b/src/config/route.js index 50570415..0f7df788 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -692,16 +692,6 @@ const routes = [ }, "component": "mtm/materials" }, - { - "name": "products", - "path": "/mtm/products", - "meta": { - "title": "产品管理", - "icon": "el-icon-cellphone", - "perms": ["mtm"] - }, - "component": "mtm/products" - }, { "name": "mgruops", "path": "/mtm/mgruops", @@ -712,6 +702,16 @@ const routes = [ }, "component": "mtm/mgroup" }, + { + "name": "route", + "path": "/mtm/route", + "meta": { + "title": "加工路线", + "icon": "el-icon-share", + "perms": ["mtm"] + }, + "component": "mtm/route" + }, // { // "name": "process", // "path": "/mtm/process", @@ -930,16 +930,6 @@ const routes = [ "perms": ["sam"] }, "children": [ - { - "name": "contract", - "path": "/sam/contract", - "meta": { - "title": "合同信息", - "icon": "el-icon-cellphone", - "perms": ["sam"] - }, - "component": "sam/contract" - }, { "name": "customer", "path": "/sam/customer", @@ -950,6 +940,16 @@ const routes = [ }, "component": "sam/customer" }, + { + "name": "contract", + "path": "/sam/contract", + "meta": { + "title": "合同信息", + "icon": "el-icon-cellphone", + "perms": ["sam"] + }, + "component": "sam/contract" + }, { "name": "samOrder", "path": "/sam/samOrder", diff --git a/src/views/mtm/materials.vue b/src/views/mtm/materials.vue index 2e5d7d6e..cea51d26 100644 --- a/src/views/mtm/materials.vue +++ b/src/views/mtm/materials.vue @@ -1,360 +1,171 @@ \ No newline at end of file + + //本地更新数据 + handleSaveSuccess(data, mode) { + if (mode == "add") { + this.$refs.table.refresh(); + } else if (mode == "edit") { + this.$refs.table.refresh(); + } + }, + handleQuery() { + this.$refs.table.queryData(this.query) + }, + resetQuery() { + this.query = {}; + }, + hiddenChange(val) { + if (val) { + this.query.is_hidden = '' + } + else { + this.query.is_hidden = false + } + this.$refs.table.queryData(this.query) + } + }, +}; + \ No newline at end of file diff --git a/src/views/mtm/mgroup.vue b/src/views/mtm/mgroup.vue index 8468765e..7e8a7f4c 100644 --- a/src/views/mtm/mgroup.vue +++ b/src/views/mtm/mgroup.vue @@ -2,27 +2,29 @@
+ +
+
-
- -
- + - + + - + + //设置过滤项 + setFilters(filters) { + this.selectionFilters = filters; + this.setFiltersVisible = true; + }, + }, +}; + - + \ No newline at end of file diff --git a/src/views/mtm/route.vue b/src/views/mtm/route.vue new file mode 100644 index 00000000..7732c6e0 --- /dev/null +++ b/src/views/mtm/route.vue @@ -0,0 +1,237 @@ + + \ No newline at end of file diff --git a/src/views/pm/mtask2.vue b/src/views/pm/mtask2.vue index 54c76dbe..896ea3b0 100644 --- a/src/views/pm/mtask2.vue +++ b/src/views/pm/mtask2.vue @@ -1,112 +1,100 @@ +