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)) )