From 5b6e86844264adb6f8c1546ff166eecd0e027ff6 Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 22 Jun 2026 11:32:08 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E5=85=A5=E5=BA=93/=E5=87=BA?= =?UTF-8?q?=E5=BA=93-=E5=AE=A1=E6=A0=B8=E6=B5=81=E7=A8=8B=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/erp/stock/in/index.vue | 15 ++++++--------- src/views/erp/stock/out/index.vue | 15 ++++++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/src/views/erp/stock/in/index.vue b/src/views/erp/stock/in/index.vue index bc58977a..ec135e60 100644 --- a/src/views/erp/stock/in/index.vue +++ b/src/views/erp/stock/in/index.vue @@ -500,14 +500,7 @@ const handleSubmitStockIn = async () => { } actionLoading.value = true try { - const data: { id: string; auditUserId?: string; remark?: string } = { - id: submitFormData.id, - remark: submitFormData.remark - } - if (!isAuditDisabled.value) { - data.auditUserId = submitFormData.auditUserId - } - if (isAuditDisabled.value && submitFormData.status === '1') { + if (isAuditDisabled.value) { await StockInApi.auditStockIn({ id: submitFormData.id, status: '20', @@ -515,7 +508,11 @@ const handleSubmitStockIn = async () => { }) message.success(t('ErpStock.In.auditApproveSuccess')) } else { - await StockInApi.submitStockIn(data as { id: string; auditUserId: string; remark?: string }) + await StockInApi.submitStockIn({ + id: submitFormData.id, + auditUserId: submitFormData.auditUserId, + remark: submitFormData.remark + }) message.success(t('ErpStock.In.submitSuccess')) } submitDialogVisible.value = false diff --git a/src/views/erp/stock/out/index.vue b/src/views/erp/stock/out/index.vue index 5ec878c6..8943e35e 100644 --- a/src/views/erp/stock/out/index.vue +++ b/src/views/erp/stock/out/index.vue @@ -498,14 +498,7 @@ const handleSubmitStockOut = async () => { } actionLoading.value = true try { - const data: { id: string; auditUserId?: string; remark?: string } = { - id: submitFormData.id, - remark: submitFormData.remark - } - if (!isAuditDisabled.value) { - data.auditUserId = submitFormData.auditUserId - } - if (isAuditDisabled.value && submitFormData.status === '1') { + if (isAuditDisabled.value) { await StockOutApi.auditStockOut({ id: submitFormData.id, status: '20', @@ -513,7 +506,11 @@ const handleSubmitStockOut = async () => { }) message.success(t('ErpStock.Out.auditApproveSuccess')) } else { - await StockOutApi.submitStockOut(data as { id: string; auditUserId: string; remark?: string }) + await StockOutApi.submitStockOut({ + id: submitFormData.id, + auditUserId: submitFormData.auditUserId, + remark: submitFormData.remark + }) message.success(t('ErpStock.Out.submitSuccess')) } submitDialogVisible.value = false