diff --git a/src/api/model/pm.js b/src/api/model/pm.js index 22c058ff..a473f22f 100644 --- a/src/api/model/pm.js +++ b/src/api/model/pm.js @@ -79,10 +79,9 @@ export default { }, submit:{ name: "提交任务后不可更新日志", - req: async function(data){ + req: async function(id){ return await http.post( - `${config.API_URL}/pm/mtask/submit/`, - data + `${config.API_URL}/pm/mtask/${id}/submit/`, ); } }, diff --git a/src/api/model/wpm.js b/src/api/model/wpm.js index 20bbb242..17dd4cfb 100644 --- a/src/api/model/wpm.js +++ b/src/api/model/wpm.js @@ -261,6 +261,14 @@ export default { `${config.API_URL}/wpm/handover/gen_by_wm/`, data); } + }, + submit: { + name: "提交", + req: async function(id){ + return await http.post( + `${config.API_URL}/wpm/handover/${id}/submit/`, + ); + } } }, //车间库存 diff --git a/src/config/route.js b/src/config/route.js index d9fe72c3..231f8995 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -703,24 +703,60 @@ const routes = [ }, "children": [ { - "name": "mtask", - "path": "/pm/mtask", + "name": "utask_1b", + "path": "/pm/utask", "meta": { - "title": "生产计划-生产一部", + "title": "生产一部", + "type": "menu", "icon": "el-icon-cellphone", - "perms": ["pm"] + "perms": ["utask_1b"] }, - "component": "pm/mtask" + // "component": "pm/mtask" + "children": [ + { + "name": "utask_dept7", + "path": "/pm/utask_dept7", + "meta": { + "title": "7车间", + "icon": "el-icon-cellphone", + "perms": ["utask_dept7"] + }, + "component": "pm/utask_dept7" + }, + { + "name": "utask_dept10", + "path": "/pm/utask_dept10", + "meta": { + "title": "10车间", + "icon": "el-icon-cellphone", + "perms": ["utask_dept10"] + }, + "component": "pm/utask_dept10" + }, + ] }, { - "name": "mtask2", - "path": "/pm/mtask2", + "name": "utask_2b", + "path": "/pm/utask", "meta": { - "title": "生产计划-生产二部", + "title": "生产二部", "icon": "el-icon-cellphone", - "perms": ["inm"] + "type": "menu", + "perms": ["utask_2b"] }, - "component": "pm/mtask2" + "children": [ + { + "name": "utask_dept6", + "path": "/pm/utask_dept6", + "meta": { + "title": "6车间", + "icon": "el-icon-cellphone", + "perms": ["utask_dept6"] + }, + "component": "pm/utask_dept6" + }, + ] + // "component": "pm/mtask2" }, // { // "name": "gantt", @@ -741,19 +777,61 @@ const routes = [ "meta": { "title": "生产执行", "icon": "el-icon-grid", - "type": "menu", - "perms": ["wpm"] + "type": "menu" }, "children": [ { - "name": "worktask", - "path": "/wpm/worktask", + "name": "mlog_1b", + "path": "/wpm/mlog_1b", "meta": { "title": "生产一部", "icon": "el-icon-cellphone", - "perms": ["wpm"] + "type": "menu", + "perms": ["mlog_1b"] }, - "component": "wpm/worktask" + "children": [ + { + "name": "mlog_hun", + "path": "/wpm/mlog_hun", + "meta": { + "title": "混料", + "icon": "el-icon-cellphone", + "perms": ["mlog_hun"] + }, + "component": "wpm/mlog_hun" + }, + { + "name": "mlog_tui", + "path": "/wpm/mlog_tui", + "meta": { + "title": "退火", + "icon": "el-icon-cellphone", + "perms": ["mlog_tui"] + }, + "component": "wpm/mlog_tui" + }, + { + "name": "mlog_dept7", + "path": "/wpm/mlog_dept7", + "meta": { + "title": "7车间", + "icon": "el-icon-cellphone", + "perms": ["mlog_dept7"] + }, + "component": "wpm/mlog_dept7" + }, + { + "name": "mlog_dept10", + "path": "/wpm/mlog_dept10", + "meta": { + "title": "10车间", + "icon": "el-icon-cellphone", + "perms": ["mlog_dept10"] + }, + "component": "wpm/mlog_dept10" + }, + ] + // "component": "wpm/worktask" }, { "name": "worktaskFlog", @@ -767,14 +845,26 @@ const routes = [ "component": "wpm/worktaskFlog" }, { - "name": "worktask2", - "path": "/wpm/worktask2", + "name": "mlog_2b", + "path": "/wpm/mlog_2b", "meta": { "title": "生产二部", "icon": "el-icon-cellphone", "perms": ["wpm"] }, - "component": "wpm/worktask2" + // "component": "wpm/worktask2" + "children": [ + { + "name": "mlog_dept6", + "path": "/pm/mlog_dept6", + "meta": { + "title": "6车间", + "icon": "el-icon-cellphone", + "perms": ["mlog_dept6"] + }, + "component": "wpm/mlog_dept6" + }, + ] }, { "name": "otherlog", @@ -872,6 +962,46 @@ const routes = [ }, "component": "inm/warehouse" }, + { + "name": "good", + "path": "/inm/good", + "meta": { + "title": "成品库", + "icon": "el-icon-cellphone", + "perms": ["good"] + }, + "component": "inm/good" + }, + { + "name": "halfgood", + "path": "/inm/halfgood", + "meta": { + "title": "半成品库", + "icon": "el-icon-cellphone", + "perms": ["halfgood"] + }, + "component": "inm/halfgood" + }, + { + "name": "mainso", + "path": "/inm/mainso", + "meta": { + "title": "原料库", + "icon": "el-icon-cellphone", + "perms": ["mainso"] + }, + "component": "inm/mainso" + }, + { + "name": "helpso", + "path": "/inm/helpso", + "meta": { + "title": "辅料库", + "icon": "el-icon-cellphone", + "perms": ["helpso"] + }, + "component": "inm/helpso" + }, { "name": "materialbatch", "path": "/inm/materialbatch", @@ -917,6 +1047,16 @@ const routes = [ "perms": ["pum"] }, "children": [ + { + "name": "supplier", + "path": "/pum/supplier", + "meta": { + "title": "供应商", + "icon": "el-icon-cellphone", + "perms": ["pum"] + }, + "component": "pum/supplier" + }, { "name": "plan", "path": "/pum/plan", @@ -958,17 +1098,7 @@ const routes = [ "hidden": true, }, "component": "pum/orderitem" - }, - { - "name": "supplier", - "path": "/pum/supplier", - "meta": { - "title": "供应商", - "icon": "el-icon-cellphone", - "perms": ["pum"] - }, - "component": "pum/supplier" - }, + }, ] }, //销售 sam diff --git a/src/style/app.scss b/src/style/app.scss index 06ae5118..1599b3d5 100644 --- a/src/style/app.scss +++ b/src/style/app.scss @@ -6,6 +6,11 @@ a:link {text-decoration: none;} a:-webkit-any-link {text-decoration: none;} a,button,input,textarea{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing: border-box;outline:none !important; -webkit-appearance: none;} * {margin: 0;padding: 0;box-sizing: border-box;outline: none;} +.card-header { + display: flex; + justify-content: space-between; + align-items: center; + } /* 大布局样式 */ .aminui {display: flex;flex-flow: column;} diff --git a/src/views/em/equipment.vue b/src/views/em/equipment.vue index bfce55ca..06d61340 100644 --- a/src/views/em/equipment.vue +++ b/src/views/em/equipment.vue @@ -3,9 +3,15 @@
新增 + + + + + +
- +
@@ -40,8 +46,11 @@ - - + + + + + @@ -57,14 +66,14 @@ 巡检 - 编辑 - - - 删除 - + + + @@ -184,6 +193,12 @@ export default { 30: '在修', 40: '禁用', }, + stateOptions: [ + { label: '完好', value: 10 }, + { label: '限用', value: 20 }, + { label: '在修', value: 30 }, + { label: '禁用', value: 40 }, + ], results_: { 'pass': '合格', 'fail': '不合格', diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue new file mode 100644 index 00000000..276fc757 --- /dev/null +++ b/src/views/inm/good.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/src/views/inm/halfgood.vue b/src/views/inm/halfgood.vue new file mode 100644 index 00000000..9fc61147 --- /dev/null +++ b/src/views/inm/halfgood.vue @@ -0,0 +1,138 @@ + + \ No newline at end of file diff --git a/src/views/inm/helpso.vue b/src/views/inm/helpso.vue new file mode 100644 index 00000000..dcb72b75 --- /dev/null +++ b/src/views/inm/helpso.vue @@ -0,0 +1,66 @@ + + \ No newline at end of file diff --git a/src/views/inm/mainso.vue b/src/views/inm/mainso.vue new file mode 100644 index 00000000..d0e5f9ab --- /dev/null +++ b/src/views/inm/mainso.vue @@ -0,0 +1,66 @@ + + \ No newline at end of file diff --git a/src/views/mtm/materials_form.vue b/src/views/mtm/materials_form.vue index 347ff627..203fa0c9 100644 --- a/src/views/mtm/materials_form.vue +++ b/src/views/mtm/materials_form.vue @@ -4,6 +4,13 @@ + + + + + + + @@ -30,16 +37,16 @@ - - - + + + - - - + + + @@ -50,26 +57,14 @@ - + - + @@ -114,12 +109,18 @@ export default { selectionFilters: [], materialOptions: [], setFiltersVisible: false, + processOptions: [], }; }, mounted() { - + this.getProcessOptions() }, methods: { + getProcessOptions() { + this.$API.mtm.process.list.req({ page: 0 }).then(res => { + this.processOptions = res + }) + }, //显示 open(mode = "add", type) { this.mode = mode; diff --git a/src/views/mtm/route.vue b/src/views/mtm/route.vue index 6a18f7e0..12fb9533 100644 --- a/src/views/mtm/route.vue +++ b/src/views/mtm/route.vue @@ -29,7 +29,8 @@
- 新增 + 新增
@@ -53,7 +54,7 @@
- + \ No newline at end of file diff --git a/src/views/pm/mtask.vue b/src/views/pm/mtask.vue index 3fbf3363..5b09b87b 100644 --- a/src/views/pm/mtask.vue +++ b/src/views/pm/mtask.vue @@ -1,18 +1,10 @@ @@ -168,24 +135,12 @@ - + - + @@ -220,7 +175,7 @@ @@ -229,36 +184,16 @@ 查看 - - + + 编辑 - - 终止 - - + + 终止 + + 删除 @@ -273,53 +208,21 @@ 生产进度
- - 查询 + + 查询
- + - + - + - + @@ -352,12 +255,7 @@ fixed="left" > --> - +
{{ item.count1 }}
{{ item.count2 }}
@@ -367,46 +265,20 @@ - - + +
- +
- + - + @@ -428,7 +300,7 @@
diff --git a/src/views/pm/utask_dept10.vue b/src/views/pm/utask_dept10.vue new file mode 100644 index 00000000..e39a87c0 --- /dev/null +++ b/src/views/pm/utask_dept10.vue @@ -0,0 +1,306 @@ + + + \ No newline at end of file diff --git a/src/views/pm/utask_dept6.vue b/src/views/pm/utask_dept6.vue new file mode 100644 index 00000000..bfb8f129 --- /dev/null +++ b/src/views/pm/utask_dept6.vue @@ -0,0 +1,332 @@ + + + \ No newline at end of file diff --git a/src/views/pm/utask_dept7.vue b/src/views/pm/utask_dept7.vue new file mode 100644 index 00000000..4eed730e --- /dev/null +++ b/src/views/pm/utask_dept7.vue @@ -0,0 +1,296 @@ + + + \ No newline at end of file diff --git a/src/views/pm/utask_form.vue b/src/views/pm/utask_form.vue new file mode 100644 index 00000000..73e96d45 --- /dev/null +++ b/src/views/pm/utask_form.vue @@ -0,0 +1,137 @@ + + + diff --git a/src/views/pm/utask_form_2.vue b/src/views/pm/utask_form_2.vue new file mode 100644 index 00000000..aa06c439 --- /dev/null +++ b/src/views/pm/utask_form_2.vue @@ -0,0 +1,118 @@ + + + diff --git a/src/views/pum/order.vue b/src/views/pum/order.vue index 9eaf4659..94ca2fff 100644 --- a/src/views/pum/order.vue +++ b/src/views/pum/order.vue @@ -5,7 +5,7 @@ 新增
- +
@@ -16,32 +16,42 @@
+ + + + +
@@ -69,10 +79,10 @@ export default { }, selection: [], stateOption: { - 10: {"label": "创建中", "color": ""}, - 20: {"label": "已提交", "color": ""}, - 30: {"label": "到货中", "color": ""}, - 40: {"label": "已完成", "color": "success"}, + 10: { "label": "创建中", "color": "" }, + 20: { "label": "已提交", "color": "" }, + 30: { "label": "到货中", "color": "" }, + 40: { "label": "已完成", "color": "success" }, }, }; diff --git a/src/views/pum/order_form.vue b/src/views/pum/order_form.vue index 3239a967..8f865061 100644 --- a/src/views/pum/order_form.vue +++ b/src/views/pum/order_form.vue @@ -1,63 +1,25 @@