fix: clean for remove warning console
This commit is contained in:
parent
d1e6239a1f
commit
20e12b407a
6 changed files with 346 additions and 347 deletions
|
|
@ -16,6 +16,7 @@ defineProps<{
|
||||||
}>();
|
}>();
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
<div class="row col-12">
|
||||||
<div class="col-3 app-text-muted">• {{ $t(`${title}`) }}</div>
|
<div class="col-3 app-text-muted">• {{ $t(`${title}`) }}</div>
|
||||||
<div class="col-9 row q-col-gutter-md">
|
<div class="col-9 row q-col-gutter-md">
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -86,4 +87,5 @@ defineProps<{
|
||||||
class="col-12 q-mt-xl q-mb-md"
|
class="col-12 q-mt-xl q-mb-md"
|
||||||
style="padding-block: 0.5px"
|
style="padding-block: 0.5px"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,7 @@ function deleteFile(name: string) {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
<div class="row col-12">
|
||||||
<div v-if="userType" class="col-3 app-text-muted">
|
<div v-if="userType" class="col-3 app-text-muted">
|
||||||
• {{ $t('formDialogTitleByType') }}
|
• {{ $t('formDialogTitleByType') }}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -325,4 +326,5 @@ function deleteFile(name: string) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ function reset() {
|
||||||
@submit.prevent
|
@submit.prevent
|
||||||
@validation-success="submit"
|
@validation-success="submit"
|
||||||
>
|
>
|
||||||
<AppBox
|
<div
|
||||||
class="column justify-between full-height"
|
class="column justify-between full-height"
|
||||||
style="padding: 0; border-radius: var(--radius-2)"
|
style="padding: 0; border-radius: var(--radius-2)"
|
||||||
>
|
>
|
||||||
|
|
@ -194,7 +194,7 @@ function reset() {
|
||||||
@click="close"
|
@click="close"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</AppBox>
|
</div>
|
||||||
</q-form>
|
</q-form>
|
||||||
</q-drawer>
|
</q-drawer>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -274,8 +274,6 @@ async function triggerEdit(
|
||||||
openDialog();
|
openDialog();
|
||||||
}
|
}
|
||||||
if (openFormType === 'drawer') {
|
if (openFormType === 'drawer') {
|
||||||
console.log(code);
|
|
||||||
|
|
||||||
formType.value = 'view';
|
formType.value = 'view';
|
||||||
openDrawer();
|
openDrawer();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -128,7 +128,17 @@ const formDataEmployeeSameAddr = ref(true);
|
||||||
const formDataEmployeeTab = ref('personalInfo');
|
const formDataEmployeeTab = ref('personalInfo');
|
||||||
const infoDrawerEmployee = ref(false);
|
const infoDrawerEmployee = ref(false);
|
||||||
const infoDrawerEmployeeEdit = ref(false);
|
const infoDrawerEmployeeEdit = ref(false);
|
||||||
const infoEmployeePersonCard = ref();
|
const infoEmployeePersonCard = ref<
|
||||||
|
{
|
||||||
|
id: string;
|
||||||
|
img: string;
|
||||||
|
name: string;
|
||||||
|
male: boolean;
|
||||||
|
female: boolean;
|
||||||
|
badge: string;
|
||||||
|
disabled: boolean;
|
||||||
|
}[]
|
||||||
|
>();
|
||||||
const statsEmployee = ref(0);
|
const statsEmployee = ref(0);
|
||||||
const statsEmployeeGender = ref<{ male: number; female: number }>();
|
const statsEmployeeGender = ref<{ male: number; female: number }>();
|
||||||
const formDataEmployeeOwner = ref<{
|
const formDataEmployeeOwner = ref<{
|
||||||
|
|
@ -272,8 +282,8 @@ const inputFile = (() => {
|
||||||
if (infoDrawerEdit.value && currentCustomer.value)
|
if (infoDrawerEdit.value && currentCustomer.value)
|
||||||
currentCustomer.value.imageUrl = profileUrl.value as string;
|
currentCustomer.value.imageUrl = profileUrl.value as string;
|
||||||
|
|
||||||
if (infoDrawerEmployeeEdit.value)
|
if (infoDrawerEmployeeEdit.value && infoEmployeePersonCard.value)
|
||||||
infoEmployeePersonCard.value[0].img = profileUrl.value;
|
infoEmployeePersonCard.value[0].img = profileUrl.value as string;
|
||||||
});
|
});
|
||||||
|
|
||||||
element.addEventListener('change', () => {
|
element.addEventListener('change', () => {
|
||||||
|
|
@ -1855,7 +1865,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
bordered
|
|
||||||
separator
|
separator
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -1998,7 +2007,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
v-if="formDataEmployeeTab === 'personalInfo'"
|
v-if="formDataEmployeeTab === 'personalInfo'"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
employee
|
|
||||||
separator
|
separator
|
||||||
v-model:passport-type="formDataEmployee.passportType"
|
v-model:passport-type="formDataEmployee.passportType"
|
||||||
v-model:passport-number="formDataEmployee.passportNumber"
|
v-model:passport-number="formDataEmployee.passportNumber"
|
||||||
|
|
@ -2020,7 +2028,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
v-if="formDataEmployeeTab === 'personalInfo'"
|
v-if="formDataEmployeeTab === 'personalInfo'"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
employee
|
|
||||||
v-model:visa-type="formDataEmployee.visaType"
|
v-model:visa-type="formDataEmployee.visaType"
|
||||||
v-model:visa-number="formDataEmployee.visaNumber"
|
v-model:visa-number="formDataEmployee.visaNumber"
|
||||||
v-model:visa-issue-date="formDataEmployee.visaIssueDate"
|
v-model:visa-issue-date="formDataEmployee.visaIssueDate"
|
||||||
|
|
@ -2131,7 +2138,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
bordered
|
|
||||||
separator
|
separator
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -2263,7 +2269,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
bordered
|
|
||||||
separator
|
separator
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -2465,7 +2470,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
bordered
|
|
||||||
separator
|
separator
|
||||||
:readonly="!infoDrawerEdit"
|
:readonly="!infoDrawerEdit"
|
||||||
/>
|
/>
|
||||||
|
|
@ -2677,7 +2681,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
bordered
|
|
||||||
separator
|
separator
|
||||||
:readonly="!infoDrawerEdit"
|
:readonly="!infoDrawerEdit"
|
||||||
/>
|
/>
|
||||||
|
|
@ -2771,7 +2774,7 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
no-action
|
no-action
|
||||||
no-detail
|
no-detail
|
||||||
no-bg
|
no-bg
|
||||||
:list="infoEmployeePersonCard"
|
:list="infoEmployeePersonCard ? infoEmployeePersonCard : []"
|
||||||
:gridColumns="1"
|
:gridColumns="1"
|
||||||
@edit-profile="
|
@edit-profile="
|
||||||
() => {
|
() => {
|
||||||
|
|
@ -2860,7 +2863,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
v-if="formDataEmployeeTab === 'personalInfo'"
|
v-if="formDataEmployeeTab === 'personalInfo'"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
employee
|
|
||||||
separator
|
separator
|
||||||
:readonly="!infoDrawerEmployeeEdit"
|
:readonly="!infoDrawerEmployeeEdit"
|
||||||
v-model:passport-type="formDataEmployee.passportType"
|
v-model:passport-type="formDataEmployee.passportType"
|
||||||
|
|
@ -2883,7 +2885,6 @@ watch([inputSearch, currentStatus], async () => {
|
||||||
v-if="formDataEmployeeTab === 'personalInfo'"
|
v-if="formDataEmployeeTab === 'personalInfo'"
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
employee
|
|
||||||
:readonly="!infoDrawerEmployeeEdit"
|
:readonly="!infoDrawerEmployeeEdit"
|
||||||
v-model:visa-type="formDataEmployee.visaType"
|
v-model:visa-type="formDataEmployee.visaType"
|
||||||
v-model:visa-number="formDataEmployee.visaNumber"
|
v-model:visa-number="formDataEmployee.visaNumber"
|
||||||
|
|
|
||||||
|
|
@ -2018,21 +2018,17 @@ watch(inputSearchProductAndService, async () => {
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div v-if="currentServiceTab === 'serviceInformation'" class="col-10">
|
<div
|
||||||
|
v-if="currentServiceTab === 'serviceInformation'"
|
||||||
|
class="col-md-10 col-sm-12"
|
||||||
|
>
|
||||||
<div class="surface-1 rounded bordered q-pa-lg full-width row">
|
<div class="surface-1 rounded bordered q-pa-lg full-width row">
|
||||||
<BasicInformation
|
<BasicInformation
|
||||||
dense
|
dense
|
||||||
service
|
service
|
||||||
@service-properties="
|
|
||||||
() => {
|
|
||||||
tempValueProperties = formDataProductService.attributes;
|
|
||||||
openPropertiesDialog('service');
|
|
||||||
}
|
|
||||||
"
|
|
||||||
v-model:service-code="formDataProductService.code"
|
v-model:service-code="formDataProductService.code"
|
||||||
v-model:service-description="formDataProductService.detail"
|
v-model:service-description="formDataProductService.detail"
|
||||||
v-model:service-name-th="formDataProductService.name"
|
v-model:service-name-th="formDataProductService.name"
|
||||||
@input-file="inputFile.click()"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="surface-1 rounded bordered q-mt-md q-pa-lg row">
|
<div class="surface-1 rounded bordered q-mt-md q-pa-lg row">
|
||||||
|
|
@ -2050,7 +2046,7 @@ watch(inputSearchProductAndService, async () => {
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="currentServiceTab === 'workInformation'"
|
v-if="currentServiceTab === 'workInformation'"
|
||||||
class="surface-1 rounded bordered col-10 q-pa-lg"
|
class="surface-1 rounded bordered col-md-10 col-sm-12 q-pa-lg"
|
||||||
>
|
>
|
||||||
<FormServiceWork
|
<FormServiceWork
|
||||||
v-model:work-items="workItems"
|
v-model:work-items="workItems"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue