feat: readonly mode
This commit is contained in:
parent
5d3aae0bb1
commit
f0be0b2147
2 changed files with 6 additions and 0 deletions
|
|
@ -1704,6 +1704,10 @@ function createCustomerForm(customerType: 'CORP' | 'PERS') {
|
||||||
style="height: 100%; max-height: 100%; overflow-y: auto"
|
style="height: 100%; max-height: 100%; overflow-y: auto"
|
||||||
>
|
>
|
||||||
<FormBasicInfo
|
<FormBasicInfo
|
||||||
|
:readonly="
|
||||||
|
customerFormState.dialogType === 'edit' &&
|
||||||
|
customerFormState.editReadonly === true
|
||||||
|
"
|
||||||
id="form-basic-info-customer"
|
id="form-basic-info-customer"
|
||||||
@save="customerFormState.saveMode = 'customer'"
|
@save="customerFormState.saveMode = 'customer'"
|
||||||
:customer-type="customerFormData.customerType"
|
:customer-type="customerFormData.customerType"
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
customerImageUrl: string;
|
customerImageUrl: string;
|
||||||
imageDialog: boolean;
|
imageDialog: boolean;
|
||||||
imageEdit: boolean;
|
imageEdit: boolean;
|
||||||
|
editReadonly: boolean;
|
||||||
editCustomerId?: string;
|
editCustomerId?: string;
|
||||||
editCustomerBranchId?: string;
|
editCustomerBranchId?: string;
|
||||||
}>({
|
}>({
|
||||||
|
|
@ -39,6 +40,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
dialogModal: false,
|
dialogModal: false,
|
||||||
imageDialog: false,
|
imageDialog: false,
|
||||||
branchIndex: 0,
|
branchIndex: 0,
|
||||||
|
editReadonly: true,
|
||||||
imageEdit: false,
|
imageEdit: false,
|
||||||
saveMode: 'customer',
|
saveMode: 'customer',
|
||||||
customerImageUrl: '',
|
customerImageUrl: '',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue