feat(01): webUrl contract
This commit is contained in:
parent
c44dc9aaf3
commit
7caf0dfdd9
5 changed files with 25 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ const telephoneNo = defineModel<string>('telephoneNo');
|
||||||
const contact = defineModel<string>('contact');
|
const contact = defineModel<string>('contact');
|
||||||
const email = defineModel<string>('email');
|
const email = defineModel<string>('email');
|
||||||
const contactName = defineModel<string>('contactName');
|
const contactName = defineModel<string>('contactName');
|
||||||
|
const webUrl = defineModel<string>('webUrl');
|
||||||
// const operatingHours = defineModel<string>('operatingHours');
|
// const operatingHours = defineModel<string>('operatingHours');
|
||||||
const lineId = defineModel<string>('lineId');
|
const lineId = defineModel<string>('lineId');
|
||||||
const typeBranch = defineModel<string>('typeBranch');
|
const typeBranch = defineModel<string>('typeBranch');
|
||||||
|
|
@ -127,6 +128,23 @@ defineProps<{
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
|
|
||||||
|
<q-input
|
||||||
|
lazy-rules="ondemand"
|
||||||
|
:dense="dense"
|
||||||
|
outlined
|
||||||
|
:readonly="readonly"
|
||||||
|
hide-bottom-space
|
||||||
|
class="col-6 col-md-4"
|
||||||
|
:label="$t('branch.form.webUrl')"
|
||||||
|
for="input-web-url"
|
||||||
|
:model-value="readonly ? webUrl || '-' : webUrl"
|
||||||
|
@update:model-value="(v) => (typeof v === 'string' ? (webUrl = v) : '')"
|
||||||
|
>
|
||||||
|
<template #prepend>
|
||||||
|
<q-icon color="primary" name="mdi-web" size="xs" class="q-mr-xs" />
|
||||||
|
</template>
|
||||||
|
</q-input>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ export default {
|
||||||
bankAccountType: 'Bank Account Type',
|
bankAccountType: 'Bank Account Type',
|
||||||
latitude: 'Latitude',
|
latitude: 'Latitude',
|
||||||
longitude: 'Longitude',
|
longitude: 'Longitude',
|
||||||
|
webUrl: 'Website URL',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -204,6 +204,7 @@ export default {
|
||||||
bankAccountType: 'ประเภทบัญชี',
|
bankAccountType: 'ประเภทบัญชี',
|
||||||
latitude: 'ละติจูด',
|
latitude: 'ละติจูด',
|
||||||
longitude: 'ลองจิจูด',
|
longitude: 'ลองจิจูด',
|
||||||
|
webUrl: 'ที่อยู่เว็บไซต์',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -291,6 +291,7 @@ const defaultFormData = {
|
||||||
districtId: '',
|
districtId: '',
|
||||||
provinceId: '',
|
provinceId: '',
|
||||||
lineId: '',
|
lineId: '',
|
||||||
|
webUrl: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
const formDialogRef = ref();
|
const formDialogRef = ref();
|
||||||
|
|
@ -357,6 +358,7 @@ async function fetchBranchById(id: string) {
|
||||||
provinceId: res.provinceId,
|
provinceId: res.provinceId,
|
||||||
lineId: res.lineId,
|
lineId: res.lineId,
|
||||||
status: res.status,
|
status: res.status,
|
||||||
|
webUrl: res.webUrl,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1528,6 +1530,7 @@ watch(currentHq, () => {
|
||||||
v-model:email="formData.email"
|
v-model:email="formData.email"
|
||||||
v-model:contact-name="formData.contactName"
|
v-model:contact-name="formData.contactName"
|
||||||
v-model:line-id="formData.lineId"
|
v-model:line-id="formData.lineId"
|
||||||
|
v-model:web-url="formData.webUrl"
|
||||||
:separator="true"
|
:separator="true"
|
||||||
title="branch.form.group.contact"
|
title="branch.form.group.contact"
|
||||||
:dense="true"
|
:dense="true"
|
||||||
|
|
@ -1759,6 +1762,7 @@ watch(currentHq, () => {
|
||||||
v-model:email="formData.email"
|
v-model:email="formData.email"
|
||||||
v-model:contact-name="formData.contactName"
|
v-model:contact-name="formData.contactName"
|
||||||
v-model:line-id="formData.lineId"
|
v-model:line-id="formData.lineId"
|
||||||
|
v-model:web-url="formData.webUrl"
|
||||||
:readonly="formType === 'view'"
|
:readonly="formType === 'view'"
|
||||||
:view="formType === 'view'"
|
:view="formType === 'view'"
|
||||||
:separator="true"
|
:separator="true"
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@ export type BranchCreate = {
|
||||||
qrCodeImage?: File;
|
qrCodeImage?: File;
|
||||||
imageUrl?: File;
|
imageUrl?: File;
|
||||||
lineId: string;
|
lineId: string;
|
||||||
|
webUrl?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BranchUserStats = {
|
export type BranchUserStats = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue