feat: add default customemr image url
This commit is contained in:
parent
a7683c2640
commit
293b109e7c
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
dialogModal: boolean;
|
dialogModal: boolean;
|
||||||
branchIndex: number;
|
branchIndex: number;
|
||||||
customerImageUrl: string;
|
customerImageUrl: string;
|
||||||
|
defaultCustomerImageUrl: string;
|
||||||
imageDialog: boolean;
|
imageDialog: boolean;
|
||||||
imageEdit: boolean;
|
imageEdit: boolean;
|
||||||
readonly: boolean;
|
readonly: boolean;
|
||||||
|
|
@ -52,6 +53,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
customerImageUrl: '',
|
customerImageUrl: '',
|
||||||
editCustomerId: '',
|
editCustomerId: '',
|
||||||
editCustomerBranchId: '',
|
editCustomerBranchId: '',
|
||||||
|
defaultCustomerImageUrl: '',
|
||||||
});
|
});
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
|
@ -105,6 +107,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
state.value.editCustomerId = id;
|
state.value.editCustomerId = id;
|
||||||
state.value.editCustomerCode = data.code;
|
state.value.editCustomerCode = data.code;
|
||||||
state.value.customerImageUrl = `${apiBaseUrl}/customer/${id}/image`;
|
state.value.customerImageUrl = `${apiBaseUrl}/customer/${id}/image`;
|
||||||
|
state.value.defaultCustomerImageUrl = `${apiBaseUrl}/customer/${id}/image`;
|
||||||
|
|
||||||
resetFormData.registeredBranchId = data.registeredBranchId;
|
resetFormData.registeredBranchId = data.registeredBranchId;
|
||||||
resetFormData.code = data.code;
|
resetFormData.code = data.code;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue