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 @@ - - - - - - - - - - - - - - - - - {{typeOptions[scope.row.type]}} - - - - - - - - - - - - 编辑 - - - - 删除 - - - - + + + + + + + + + + + - - - - - - - - {{typeOptions[scope.row.type]}} - - - - - - - - - - - - 编辑 - - - - 删除 - - - - - - - - - - - - - {{typeOptions[scope.row.type]}} - - - - - - - - - - - - 编辑 - - - - 删除 - - - - - - - - - - - - - {{typeOptions[scope.row.type]}} - - - - - - - - - - - - 编辑 - - - - 删除 - - - - - - - - - - - - - {{typeOptions[scope.row.type]}} - - - - - - - - - - - - 编辑 - - - - 删除 - - - - - - - - - + + + + + + + + + + + + + {{ typeOptions[scope.row.type] }} + 组 + {{ scope.row.process_name }} + 隐 + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + + \ 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 @@ + + + - - - - + - + + - 编辑 + 编辑 @@ -34,93 +36,84 @@ - + diff --git a/src/views/mtm/mgroup_form.vue b/src/views/mtm/mgroup_form.vue index c3cdfd52..eb958236 100644 --- a/src/views/mtm/mgroup_form.vue +++ b/src/views/mtm/mgroup_form.vue @@ -1,173 +1,137 @@ - - - - + + + + - - + + - - + + + + + - - - 保存 - 取消 - - - - + + + 保存 + 取消 + + + + - + + //设置过滤项 + 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 @@ + + + + + + 产品 + + + + + + + + + + {{ selectedProduct.name }} + + + + + + + + + + + + + + + + + + + + + + + + + + {{ scope.row.process_cate }} - {{ scope.row.process_name }} + + + + + + + + + + + + {{ scope.row.material_in_name }} / {{ scope.row.material_out_name }} + + + + + + 编辑 + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + {{ item.process_name }}-隐 + + + + + + {{ item.name }} + {{ item.process_name }}-隐 + + + + + 保存 + 取消 + + + + \ 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 @@ - - - - 新增 - 任务下达 - 导出 + + + + 新增 + 任务下达 + + + + + + + + + + {{ mtaskStateOptions[scope.row.state] }} + + + + + + + + + + + + + + + + + + 编辑 + + + + 删除 + + + + + + + + + + 排产 + 合并任务 + + + + + + + + {{ scope.row.order_.number }} + + + + + {{ scope.row.material_.name }} + + + + + {{ scope.row.material_.specification }} + + + + + + + {{ scope.row.order_.delivery_date }} + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - 编辑 - - - - 删除 - - - - - - - - - - 排产 - 合并任务 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + +