feat: passport type option
This commit is contained in:
parent
98e44c7935
commit
f6c98b4936
2 changed files with 68 additions and 3 deletions
|
|
@ -823,6 +823,37 @@
|
|||
"value": "type90Days",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
|
||||
"passportType": [
|
||||
{
|
||||
"label": "Ordinary Passport",
|
||||
"value": "ordinary"
|
||||
},
|
||||
{
|
||||
"label": "Official Passport",
|
||||
"value": "official"
|
||||
},
|
||||
{
|
||||
"label": "Diplomatic Passport",
|
||||
"value": "diplomatic"
|
||||
},
|
||||
{
|
||||
"label": "Temporary Passport",
|
||||
"value": "temporary"
|
||||
},
|
||||
{
|
||||
"label": "Monk Passport",
|
||||
"value": "monk"
|
||||
},
|
||||
{
|
||||
"label": "Hajj Passport",
|
||||
"value": "hajj"
|
||||
},
|
||||
{
|
||||
"label": "Certificate of Identity",
|
||||
"value": "ci"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
|
|
@ -1650,6 +1681,37 @@
|
|||
"value": "type90Days",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
|
||||
"passportType": [
|
||||
{
|
||||
"label": "หนังสือเดินทางธรรมดา",
|
||||
"value": "ordinary"
|
||||
},
|
||||
{
|
||||
"label": "หนังสือเดินทางราชการ",
|
||||
"value": "official"
|
||||
},
|
||||
{
|
||||
"label": "หนังสือเดินทางทูต",
|
||||
"value": "diplomatic"
|
||||
},
|
||||
{
|
||||
"label": "หนังสือเดินทางชั่วคราว",
|
||||
"value": "temporary"
|
||||
},
|
||||
{
|
||||
"label": "หนังสือเดินทางพระ",
|
||||
"value": "monk"
|
||||
},
|
||||
{
|
||||
"label": "หนังสือเดินทางเพื่อไปประกอบพิธีฮัจญ์",
|
||||
"value": "hajj"
|
||||
},
|
||||
{
|
||||
"label": "เอกสารสำคัญประจำตัวเพื่อใช้แทนหนังสือเดินทาง",
|
||||
"value": "ci"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,9 +49,12 @@ let passportIssuingCountryFilter: (
|
|||
) => void;
|
||||
|
||||
onMounted(() => {
|
||||
if (optionStore.globalOption?.nationality) {
|
||||
if (
|
||||
optionStore.globalOption?.nationality &&
|
||||
optionStore.globalOption?.passportType
|
||||
) {
|
||||
passportTypeFilter = selectFilterOptionRefMod(
|
||||
ref(optionStore.globalOption.nationality),
|
||||
ref(optionStore.globalOption.passportType),
|
||||
passportTypeOptions,
|
||||
'label',
|
||||
);
|
||||
|
|
@ -67,7 +70,7 @@ watch(
|
|||
() => optionStore.globalOption,
|
||||
() => {
|
||||
passportTypeFilter = selectFilterOptionRefMod(
|
||||
ref(optionStore.globalOption.nationality),
|
||||
ref(optionStore.globalOption.passportType),
|
||||
passportTypeOptions,
|
||||
'label',
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue