@@ -218,136 +172,108 @@ watch(
class="row col-12 q-col-gutter-sm"
style="margin-left: 0px; padding-left: 0px"
>
- (typeof v === 'string' ? (sourceNationality = v) : '')
"
- @clear="sourceNationality = ''"
- >
-
-
-
- {{ $t('general.noData') }}
-
-
-
-
-
+ (typeof v === 'string' ? (importNationality = v) : '')
"
- @clear="importNationality = ''"
- >
-
-
-
- {{ $t('general.noData') }}
-
-
-
-
-
+ (typeof v === 'string' ? (trainingPlace = v) : '')
"
- @clear="trainingPlace = ''"
- >
-
-
-
- {{ $t('general.noData') }}
-
-
-
-
-
+ (typeof v === 'string' ? (checkpoint = v) : '')
"
- @clear="checkpoint = ''"
+ />
+ (typeof v === 'string' ? (checkpoint = v) : '')
+ "
+ />
+
+ (typeof v === 'string' ? (agencyStatus = v) : '')
+ "
/>
(typeof v === 'string' ? (checkpointEN = v) : '')
+ (v) => (typeof v === 'string' ? (remark = v) : '')
"
- @clear="checkpointEN = ''"
+ @clear="remark = ''"
/>
diff --git a/src/pages/02_personnel-management/MainPage.vue b/src/pages/02_personnel-management/MainPage.vue
index b4e8c863..e99fb65e 100644
--- a/src/pages/02_personnel-management/MainPage.vue
+++ b/src/pages/02_personnel-management/MainPage.vue
@@ -151,6 +151,8 @@ const defaultFormData = {
citizenExpire: null,
citizenIssue: null,
citizenId: '',
+ remark: '',
+ agencyStatus: null,
};
const formData = ref({
@@ -199,6 +201,8 @@ const formData = ref({
citizenExpire: null,
citizenIssue: null,
citizenId: '',
+ remark: '',
+ agencyStatus: null,
});
const fieldSelectedOption = ref<{ label: string; value: string }[]>([
@@ -419,6 +423,7 @@ async function onSubmit(excludeDialog?: boolean) {
: '';
const formDataEdit = {
...formData.value,
+ checkpointEN: formData.value.checkpoint,
status: !statusToggle.value ? 'INACTIVE' : 'ACTIVE',
} as const;
@@ -450,6 +455,7 @@ async function onSubmit(excludeDialog?: boolean) {
: hqId.value
? hqId.value
: '';
+ formData.value.checkpointEN = formData.value.checkpoint;
const result = await userStore.create(
formData.value,
onCreateImageList.value,
@@ -603,6 +609,8 @@ async function assignFormData(idEdit: string) {
(foundUser.citizenIssue && new Date(foundUser.citizenIssue)) || null,
citizenExpire:
(foundUser.citizenExpire && new Date(foundUser.citizenExpire)) || null,
+ remark: foundUser.remark,
+ agencyStatus: foundUser.agencyStatus,
};
formData.value.status === 'ACTIVE' || 'CREATED'
@@ -1781,10 +1789,11 @@ watch(
v-model:import-nationality="formData.importNationality"
v-model:training-place="formData.trainingPlace"
v-model:checkpoint="formData.checkpoint"
- v-model:checkpoint-en="formData.checkpointEN"
v-model:agency-file="agencyFile"
v-model:agency-file-list="agencyFileList"
v-model:user-id="currentUser.id"
+ v-model:remark="formData.remark"
+ v-model:agency-status="formData.agencyStatus"
/>
@@ -1854,7 +1863,6 @@ watch(