From a080d9f4c55a8c5b2241947b7fa16e6433cb22fd Mon Sep 17 00:00:00 2001 From: hwj Date: Thu, 25 Jun 2026 11:25:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=9B=98=E7=82=B9=E6=89=A7?= =?UTF-8?q?=E8=A1=8C-=E5=AE=9E=E7=9B=98=E6=95=B0=E9=87=8F=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/StockCheckExecutionForm.vue | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/views/erp/stock/checkExecution/components/StockCheckExecutionForm.vue b/src/views/erp/stock/checkExecution/components/StockCheckExecutionForm.vue index 2a4f8924..e5a54432 100644 --- a/src/views/erp/stock/checkExecution/components/StockCheckExecutionForm.vue +++ b/src/views/erp/stock/checkExecution/components/StockCheckExecutionForm.vue @@ -105,10 +105,22 @@ - + formType.value === 'detail') const isInventoryCheck = computed(() => formType.value === 'check') +const showActualCountColumn = computed(() => isInventoryCheck.value || isDetail.value || formType.value === 'update') const formDisabled = computed(() => isDetail.value || isInventoryCheck.value) const selectionDisabled = computed(() => isDetail.value) @@ -394,6 +407,7 @@ const formRules = reactive({ const getCurrentTime = () => formatDate(new Date()) const isActualCountEmpty = (value: unknown) => value === undefined || value === null || value === '' +const formatActualCount = (value: unknown) => (isActualCountEmpty(value) ? '-' : value) const hasIncompleteActualCount = computed(() => (formData.value.items || []).some((item) => isActualCountEmpty(item.actualCount)) )