@7365admin1/layer-common 3.0.31-staging.21 → 3.0.31-staging.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<v-col cols="12">
|
|
137
137
|
<InputLabel class="text-capitalize" title="Company Name" />
|
|
138
138
|
<v-combobox v-model="visitor.company" v-model:search="companyNameInput" ref="companyCombo"
|
|
139
|
-
autocomplete="off" :hide-no-data="
|
|
139
|
+
autocomplete="off" :hide-no-data="true" :items="companyNames" item-value="value"
|
|
140
140
|
@update:model-value="handleSelectCompanyName" variant="outlined" density="comfortable" persistent-hint
|
|
141
141
|
small-chips>
|
|
142
142
|
<!-- <template v-slot:no-data>
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
</p>
|
|
347
347
|
|
|
348
348
|
<div class="text-subtitle-1 mb-8">
|
|
349
|
-
<div>NRIC: {{ visitor.nric || "N/A" }}</div>
|
|
349
|
+
<div v-if="!skipNonCheckedOutNric">NRIC: {{ visitor.nric || "N/A" }}</div>
|
|
350
350
|
<div>Phone Number: {{ visitor.contact || "N/A" }}</div>
|
|
351
351
|
</div>
|
|
352
352
|
|
|
@@ -871,8 +871,10 @@ watch(fetchPersonByNRICReq, (obj) => {
|
|
|
871
871
|
|
|
872
872
|
watch(
|
|
873
873
|
() => visitor.nric,
|
|
874
|
-
(value) => {
|
|
875
|
-
skipNonCheckedOutNric.value
|
|
874
|
+
(value, oldValue) => {
|
|
875
|
+
if (skipNonCheckedOutNric.value && value !== oldValue) {
|
|
876
|
+
skipNonCheckedOutNric.value = false;
|
|
877
|
+
}
|
|
876
878
|
if (!value || value.length < 4) {
|
|
877
879
|
nricSearchMenu.value = false;
|
|
878
880
|
nricSearchResults.value = [];
|
|
@@ -883,7 +885,6 @@ watch(
|
|
|
883
885
|
watch(
|
|
884
886
|
() => visitor.contact,
|
|
885
887
|
(value) => {
|
|
886
|
-
skipNonCheckedOutNric.value = false;
|
|
887
888
|
if (!value || value.length < 4) {
|
|
888
889
|
phoneSearchMenu.value = false;
|
|
889
890
|
phoneSearchResults.value = [];
|
|
@@ -1134,11 +1135,12 @@ async function checkNonCheckedOutVisitorsBeforeSubmit(
|
|
|
1134
1135
|
}
|
|
1135
1136
|
|
|
1136
1137
|
async function handleSkipNricNonCheckedOut() {
|
|
1138
|
+
skipNonCheckedOutNric.value = true;
|
|
1139
|
+
|
|
1137
1140
|
const canSubmit = await checkNonCheckedOutVisitorsBeforeSubmit({
|
|
1138
1141
|
skipNric: true,
|
|
1139
1142
|
});
|
|
1140
1143
|
if (!canSubmit) return;
|
|
1141
|
-
skipNonCheckedOutNric.value = true;
|
|
1142
1144
|
dialog.showNonCheckedOutDialog = false;
|
|
1143
1145
|
}
|
|
1144
1146
|
|