+ {{
+ {
+ ['CORP']: {
+ ['eng']: data.registerNameEN,
+ ['tha']: data.registerName,
+ }[$i18n.locale],
+ ['PERS']:
+ {
+ ['eng']: `${optionStore.mapOption(data.namePrefix)} ${data.firstNameEN} ${data.lastNameEN}`,
+ ['tha']: `${optionStore.mapOption(data.namePrefix)} ${data.firstName} ${data.lastName}`,
+ }[$i18n.locale] || '-',
+ }[data.customer.customerType]
+ }}
+ ({{ data.code }})
+
+
+
+
+ {{
+ data.customer.customerType === 'CORP'
+ ? $t('customer.form.registerName')
+ : $t('customer.form.ownerName')
+ }}:
+
+ {{
+ {
+ ['CORP']: {
+ ['eng']: data.registerNameEN,
+ ['tha']: data.registerName,
+ }[$i18n.locale],
+ ['PERS']:
+ {
+ ['eng']: `${optionStore.mapOption(data.namePrefix)} ${data.firstNameEN} ${data.lastNameEN}`,
+ ['tha']: `${optionStore.mapOption(data.namePrefix)} ${data.firstName} ${data.lastName}`,
+ }[$i18n.locale] || '-',
+ }[data.customer.customerType]
+ }}
+ ({{ data.code }})
+
+
+ {{
+ $t(
+ `branch.form.title.${data.code.endsWith('-00') ? 'branchHQLabel' : 'branchLabel'}`,
+ )
+ }}
+
+ {{ !data.code.endsWith('-00') ? +data.code.split('-')[1] : '' }}
+
+
+ {{ $t('general.address') }}
+ {{
+ {
+ ['eng']: formatAddress({ ...data, en: true }),
+ ['tha']: formatAddress({ ...data, en: false }),
+ }[$i18n.locale]
+ }}
+
+ {{ $t('customerBranch.form.title') }}:
+
+ {{ $t('general.address') }}
+ {{
+ {
+ ['eng']: formatAddress({ ...data, en: true }),
+ ['tha']: formatAddress({ ...data, en: false }),
+ }[$i18n.locale]
+ }}
+
+
+
+