From c63a5f87a4e16df535b6acfa943276f39669909d Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 14 Apr 2026 13:53:42 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(mes):=20?= =?UTF-8?q?=E9=87=8D=E6=9E=84=20approveFeedback=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E7=94=A8=E6=88=B7=20ID=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简化 approveFeedback 方法,移除不必要的用户 ID 参数,改为使用表单保存的报工人和时间。此变更提高了代码的可读性和维护性,同时确保审批状态更新逻辑的清晰性。 --- src/views/mes/pro/feedback/FeedbackForm.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/mes/pro/feedback/FeedbackForm.vue b/src/views/mes/pro/feedback/FeedbackForm.vue index d56cdd8ed..427893cce 100644 --- a/src/views/mes/pro/feedback/FeedbackForm.vue +++ b/src/views/mes/pro/feedback/FeedbackForm.vue @@ -485,8 +485,9 @@ const open = async (type: string, id?: number) => { formLoading.value = false } } else { - // 创建模式:默认报工人为当前用户 + // 创建模式:默认报工人为当前用户,报工时间为当前时间 formData.value.feedbackUserId = useUserStore().getUser.id + formData.value.feedbackTime = new Date() // 自动生成报工单号 await generateCode() } From 05f43f91ab04c11bd24755e560a83d263e3a9651 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 15 Apr 2026 14:29:24 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E2=9C=A8=20feat(mes):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=AE=A1=E9=87=8F=E5=8D=95=E4=BD=8D=E5=90=8D=E7=A7=B0=E5=88=B0?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E4=BB=BB=E5=8A=A1=E5=93=8D=E5=BA=94=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/pro/feedback/FeedbackForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/mes/pro/feedback/FeedbackForm.vue b/src/views/mes/pro/feedback/FeedbackForm.vue index 427893cce..0a8485f6d 100644 --- a/src/views/mes/pro/feedback/FeedbackForm.vue +++ b/src/views/mes/pro/feedback/FeedbackForm.vue @@ -424,7 +424,7 @@ const handleTaskChange = async (task: any) => { productInfo.value = { itemCode: task.itemCode || '', itemName: task.itemName || '', - unitMeasureName: '', + unitMeasureName: task.unitMeasureName || '', itemSpecification: task.itemSpecification || '' } await loadCheckFlag(task.routeId, task.processId) From 378965d82f82ead9f0ab19710c744aa5cc7ff513 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 15 Apr 2026 19:22:14 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=8E=A8=20style(mes):=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=A8=A1=E6=9D=BF=E6=A0=BC=E5=BC=8F=E5=92=8C=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=8E=92=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/wm/barcode/config/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/mes/wm/barcode/config/index.vue b/src/views/mes/wm/barcode/config/index.vue index 7a28a3146..52744e025 100644 --- a/src/views/mes/wm/barcode/config/index.vue +++ b/src/views/mes/wm/barcode/config/index.vue @@ -1,5 +1,8 @@