diff --git a/src/views/wpm/mlog_dept10.vue b/src/views/wpm/mlog_dept10.vue index 0c7f8e3c..19860b1a 100644 --- a/src/views/wpm/mlog_dept10.vue +++ b/src/views/wpm/mlog_dept10.vue @@ -353,6 +353,7 @@ export default { if (res.length == 1) { this.currentDept = res[0] this.paramsMtask.mgroup__belong_dept = this.currentDept.id + this.paramsMtask.state__in = '20,40' this.apiMtask = this.$API.pm.mtask.list this.paramsHandover.recive_dept = this.currentDept.id diff --git a/src/views/wpm/mlog_dept6.vue b/src/views/wpm/mlog_dept6.vue index 92a652a0..350a8451 100644 --- a/src/views/wpm/mlog_dept6.vue +++ b/src/views/wpm/mlog_dept6.vue @@ -7,13 +7,13 @@
- + 查询
- + @@ -185,12 +185,7 @@ export default { save: false, }, apiObj: null, - query: { - page: 1, - page_size: 20, - belong_dept_name: '6车间', - date: '2023-10-24' - }, + query: {}, processList: [],//工序进度 state_: { 10: '创建中', @@ -210,12 +205,18 @@ export default { paramsWm: { belong_dept__name: '6车间' }, + paramsMtask: { + mgroup__belong_dept__name: '6车间', + is_count_utask: true, + state__in: "20,40" + }, + queryMtask: {} } }, mounted() { let NowDate = new Date(); - this.query.date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate(); - this.apiObj = this.$API.pm.mtask.daylist; + // this.queryMtask.start_date = NowDate.getFullYear() + '-' + (NowDate.getMonth() + 1) + '-' + NowDate.getDate(); + this.apiObj = this.$API.pm.mtask.list; }, methods: { tomio() { @@ -244,13 +245,7 @@ export default { }); }, handleQueryMtask() { - this.$refs.table.refresh(); - }, - handleQuery() { - this.$refs.table.queryData(this.query) - }, - resetQuery() { - this.query = {}; + this.$refs.table.refresh(this.queryMtask); }, table_submit(row) { this.$API.pm.mtask.submit.req(row.id).then(res => { diff --git a/src/views/wpm/mlog_dept6_detail.vue b/src/views/wpm/mlog_dept6_detail.vue index 7d455eb7..5750e3aa 100644 --- a/src/views/wpm/mlog_dept6_detail.vue +++ b/src/views/wpm/mlog_dept6_detail.vue @@ -10,11 +10,8 @@ {{ currentMtask.number }} - - {{ currentMtask.material_out_.name }} - - - {{ currentMtask.material_out_.specification }} + + {{ currentMtask.material_out_name }} {{ currentMtask.count }} {{ currentMtask.start_date }} diff --git a/src/views/wpm/mlog_dept7.vue b/src/views/wpm/mlog_dept7.vue index d6a1b92a..27a41cf7 100644 --- a/src/views/wpm/mlog_dept7.vue +++ b/src/views/wpm/mlog_dept7.vue @@ -357,6 +357,7 @@ export default { if (res.length == 1) { this.currentDept = res[0] this.paramsMtask.mgroup__belong_dept = this.currentDept.id + this.paramsMtask.state__in = '20,40' this.apiMtask = this.$API.pm.mtask.list this.paramsHandover.recive_dept = this.currentDept.id