From 4337fb7d1f169b4ce0eedf5a12f5d1ed738ca381 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 24 Sep 2024 16:40:22 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix:=E5=85=89=E8=8A=AF=E8=BD=A6=E9=97=B4?= =?UTF-8?q?=E5=87=BA=E5=85=A5=E5=BA=93=E6=94=B9=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/inm.vue | 3 + src/views/wpm_gx/inm_record.vue | 128 ++++++++++- src/views/wpm_gx/inm_record_form.vue | 84 +++---- src/views/wpm_gx/inmrecord.vue | 322 +++++++++++++++++++++++++++ 4 files changed, 488 insertions(+), 49 deletions(-) create mode 100644 src/views/wpm_gx/inmrecord.vue diff --git a/src/views/wpm_gx/inm.vue b/src/views/wpm_gx/inm.vue index 4c8ad176..6edb9014 100644 --- a/src/views/wpm_gx/inm.vue +++ b/src/views/wpm_gx/inm.vue @@ -157,6 +157,7 @@ v-if="dialog.inmRecord" ref="inmRecordDialog" :cate = "cate_type" + :process = "process" :mgroupId = "params.mgroupx" :deptId = " params.belong_dept" @success="handleinmSuccess" @@ -208,6 +209,7 @@ export default { material: "", }, cate_type:'', + process:'', materialType: "wm", visibleDrawer: false, }; @@ -240,6 +242,7 @@ export default { } that.mgroupId = res[0].id; that.$TOOL.data.set('gx_deptID',res[0].belong_dept) + that.process = res[0].process; that.params.mgroupx = res[0].id; that.params.belong_dept = res[0].belong_dept; that.apiObj = that.$API.wpm.wmaterial.list; diff --git a/src/views/wpm_gx/inm_record.vue b/src/views/wpm_gx/inm_record.vue index 79389c70..66d90688 100644 --- a/src/views/wpm_gx/inm_record.vue +++ b/src/views/wpm_gx/inm_record.vue @@ -2,11 +2,11 @@ - + 提交 + + + + {{form.number}} + + + {{typeDict[form.type]}} + + + {{stateDict[form.state]}} + + + {{form.belong_dept_name}}-{{ form.mgroup_name }} + + + {{form.do_user_name}} + + + {{form.create_time}} + + +
+ + + + + + + + + + + + + + + + + + + +
@@ -191,19 +280,20 @@ From 8118bec402caf2b87e18311a7d2cac036deb8911 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 24 Sep 2024 16:46:14 +0800 Subject: [PATCH 02/10] =?UTF-8?q?fix:=E5=B7=A5=E6=AE=B5=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=87=BA=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/baipianpao.vue | 8 +++++--- src/views/wpm_gx/chaoxi.vue | 8 +++++--- src/views/wpm_gx/chaoxi2.vue | 9 ++++++--- src/views/wpm_gx/chaoxi3.vue | 8 +++++--- src/views/wpm_gx/chengpinpao.vue | 9 ++++++--- src/views/wpm_gx/daojiao.vue | 8 +++++--- src/views/wpm_gx/heihua.vue | 9 ++++++--- src/views/wpm_gx/jianbo.vue | 8 +++++--- src/views/wpm_gx/jianbob.vue | 9 ++++++--- src/views/wpm_gx/jingdiao.vue | 8 +++++--- src/views/wpm_gx/pingmo.vue | 8 +++++--- src/views/wpm_gx/qiepian.vue | 8 +++++--- src/views/wpm_gx/saobian.vue | 8 +++++--- src/views/wpm_gx/saobianb.vue | 8 +++++--- src/views/wpm_gx/tuihuo.vue | 8 +++++--- src/views/wpm_gx/yicipao.vue | 8 +++++--- 16 files changed, 84 insertions(+), 48 deletions(-) diff --git a/src/views/wpm_gx/baipianpao.vue b/src/views/wpm_gx/baipianpao.vue index 310eb320..8a7955ba 100644 --- a/src/views/wpm_gx/baipianpao.vue +++ b/src/views/wpm_gx/baipianpao.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + +
@@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "白片抛", mgroupId: "", diff --git a/src/views/wpm_gx/chaoxi.vue b/src/views/wpm_gx/chaoxi.vue index fa8248dc..261cffb8 100644 --- a/src/views/wpm_gx/chaoxi.vue +++ b/src/views/wpm_gx/chaoxi.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "一次超洗", mgroupId: "", diff --git a/src/views/wpm_gx/chaoxi2.vue b/src/views/wpm_gx/chaoxi2.vue index 34a26727..298fa95b 100644 --- a/src/views/wpm_gx/chaoxi2.vue +++ b/src/views/wpm_gx/chaoxi2.vue @@ -25,7 +25,9 @@ :mgroupName="mgroupName" > - + + + @@ -35,12 +37,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "二次超洗", mgroupId: "", diff --git a/src/views/wpm_gx/chaoxi3.vue b/src/views/wpm_gx/chaoxi3.vue index 8e8e53b9..89831588 100644 --- a/src/views/wpm_gx/chaoxi3.vue +++ b/src/views/wpm_gx/chaoxi3.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "三次超洗", mgroupId: "", diff --git a/src/views/wpm_gx/chengpinpao.vue b/src/views/wpm_gx/chengpinpao.vue index 5eefabab..c456d1b0 100644 --- a/src/views/wpm_gx/chengpinpao.vue +++ b/src/views/wpm_gx/chengpinpao.vue @@ -25,7 +25,9 @@ :mgroupName="mgroupName" > - + + + @@ -35,12 +37,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "成品抛", mgroupId: "", diff --git a/src/views/wpm_gx/daojiao.vue b/src/views/wpm_gx/daojiao.vue index 04c6b039..57e99b77 100644 --- a/src/views/wpm_gx/daojiao.vue +++ b/src/views/wpm_gx/daojiao.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "倒角", mgroupId: "", diff --git a/src/views/wpm_gx/heihua.vue b/src/views/wpm_gx/heihua.vue index 1a708034..c925c624 100644 --- a/src/views/wpm_gx/heihua.vue +++ b/src/views/wpm_gx/heihua.vue @@ -25,7 +25,9 @@ :mgroupName="mgroupName" > - + + + @@ -35,12 +37,13 @@ import inm from "./inm.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "黑化", mgroupId: "", diff --git a/src/views/wpm_gx/jianbo.vue b/src/views/wpm_gx/jianbo.vue index c2b85a8a..ad15dbd0 100644 --- a/src/views/wpm_gx/jianbo.vue +++ b/src/views/wpm_gx/jianbo.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "减薄A", mgroupId: "", diff --git a/src/views/wpm_gx/jianbob.vue b/src/views/wpm_gx/jianbob.vue index b7624b56..568cc088 100644 --- a/src/views/wpm_gx/jianbob.vue +++ b/src/views/wpm_gx/jianbob.vue @@ -25,7 +25,9 @@ :mgroupName="mgroupName" > - + + + @@ -35,12 +37,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "减薄B", mgroupId: "", diff --git a/src/views/wpm_gx/jingdiao.vue b/src/views/wpm_gx/jingdiao.vue index cacf4ada..5fe66764 100644 --- a/src/views/wpm_gx/jingdiao.vue +++ b/src/views/wpm_gx/jingdiao.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover ,record}, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "精雕", mgroupId: "", diff --git a/src/views/wpm_gx/pingmo.vue b/src/views/wpm_gx/pingmo.vue index 1ef49570..a0d75931 100644 --- a/src/views/wpm_gx/pingmo.vue +++ b/src/views/wpm_gx/pingmo.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "平磨", mgroupId: "", diff --git a/src/views/wpm_gx/qiepian.vue b/src/views/wpm_gx/qiepian.vue index 1c1d319a..7050f11d 100644 --- a/src/views/wpm_gx/qiepian.vue +++ b/src/views/wpm_gx/qiepian.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "切片", mgroupId: "", diff --git a/src/views/wpm_gx/saobian.vue b/src/views/wpm_gx/saobian.vue index b6304bf0..488d9a6b 100644 --- a/src/views/wpm_gx/saobian.vue +++ b/src/views/wpm_gx/saobian.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "扫边A", mgroupId: "", diff --git a/src/views/wpm_gx/saobianb.vue b/src/views/wpm_gx/saobianb.vue index dfd613b9..aac80990 100644 --- a/src/views/wpm_gx/saobianb.vue +++ b/src/views/wpm_gx/saobianb.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./fmlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "扫边B", mgroupId: "", diff --git a/src/views/wpm_gx/tuihuo.vue b/src/views/wpm_gx/tuihuo.vue index cf62c481..b8fdf617 100644 --- a/src/views/wpm_gx/tuihuo.vue +++ b/src/views/wpm_gx/tuihuo.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "退火", mgroupId: "", diff --git a/src/views/wpm_gx/yicipao.vue b/src/views/wpm_gx/yicipao.vue index 5ec87317..f829510d 100644 --- a/src/views/wpm_gx/yicipao.vue +++ b/src/views/wpm_gx/yicipao.vue @@ -25,7 +25,8 @@ :mgroupName="mgroupName" > - + + @@ -35,12 +36,13 @@ import inm from "./inm.vue"; import mlogs from "./mlogs.vue"; import mtask from "./mtask.vue"; import handover from "./handover.vue"; +import record from "./inmrecord.vue"; export default { - components: { inm, mlogs, mtask, handover }, + components: { inm, mlogs, mtask, handover,record }, data() { return { tableHieght: 200, - options: ["日志", "交接记录", "库存"], + options: ["日志", "交接记录", "库存","入库记录"], values: "日志", mgroupName: "一次抛", mgroupId: "", From 25ef072e048df9b7d9461a55c48201dac80a8c4d Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 25 Sep 2024 14:09:34 +0800 Subject: [PATCH 03/10] =?UTF-8?q?feat:utask=E5=A4=A7=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/pm.js | 8 ++++++++ src/views/pm/utask.vue | 20 ++++++++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/api/model/pm.js b/src/api/model/pm.js index f7fd7f5a..698b0421 100644 --- a/src/api/model/pm.js +++ b/src/api/model/pm.js @@ -245,5 +245,13 @@ export default { ); } }, + submit:{ + name: "提交", + req: async function(id){ + return await http.post( + `${config.API_URL}/pm/utask/${id}/submit/`, + ); + } + }, } } \ No newline at end of file diff --git a/src/views/pm/utask.vue b/src/views/pm/utask.vue index 55ef5709..bb1e9b41 100644 --- a/src/views/pm/utask.vue +++ b/src/views/pm/utask.vue @@ -153,6 +153,15 @@ > 编辑 + + 提交 +