diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index 1b06e0fe..0cbf1b5a 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -2800,6 +2800,7 @@ const emptyCreateDialog = ref(false); customerFormState.readonly === true) || customerFormState.dialogType === 'info' " + :hide-action="customerFormData.status === 'INACTIVE'" :action-disabled="customerFormState.branchIndex !== -1" id="form-basic-info-customer" :create="customerFormState.dialogType === 'create'" @@ -2862,7 +2863,8 @@ const emptyCreateDialog = ref(false); @click="customerFormStore.addCurrentCustomerBranch()" v-if=" customerFormState.branchIndex === -1 && - !!customerFormState.editCustomerId + !!customerFormState.editCustomerId && + customerFormData.status !== 'INACTIVE' " :disabled="!customerFormState.readonly" /> @@ -2959,6 +2961,7 @@ const emptyCreateDialog = ref(false); -
+
(); -defineProps<{ - index: number; - customerName: string; - readonly?: boolean; - prefixId?: string; - actionDisabled?: boolean; - customerType?: 'CORP' | 'PERS'; -}>(); +withDefaults( + defineProps<{ + index: number; + customerName: string; + readonly?: boolean; + prefixId?: string; + actionDisabled?: boolean; + customerType?: 'CORP' | 'PERS'; + hideAction?: boolean; + }>(), + { + hideAction: false, + }, +);