Merge branch 'develop' into dev-tee
This commit is contained in:
commit
79ef6f87e0
9 changed files with 148 additions and 66 deletions
|
|
@ -32,7 +32,7 @@ export default {
|
||||||
listExitInterview: () => `${retirement}/resign/questionnaire`,
|
listExitInterview: () => `${retirement}/resign/questionnaire`,
|
||||||
ExitInterviewByid: (id: string) => `${retirement}/resign/questionnaire/${id}`,
|
ExitInterviewByid: (id: string) => `${retirement}/resign/questionnaire/${id}`,
|
||||||
ExitInterviewReport: `${retirement}/resign/questionnaire/report`,
|
ExitInterviewReport: `${retirement}/resign/questionnaire/report`,
|
||||||
AppointInterview:(id: string) =>`${retirement}/resign/questionnaire/appoint/${id}`,
|
AppointInterview: (id: string) => `${retirement}/resign/questionnaire/appoint/${id}`,
|
||||||
// ปลดออก
|
// ปลดออก
|
||||||
retirementDischarge,
|
retirementDischarge,
|
||||||
listDischarge: () => `${retirement}/discharge`,
|
listDischarge: () => `${retirement}/discharge`,
|
||||||
|
|
@ -52,5 +52,9 @@ export default {
|
||||||
outReport: `${retirement}/out/report`,
|
outReport: `${retirement}/out/report`,
|
||||||
|
|
||||||
fileRetirement: (id: string) => `${retirement}/upload/${id}`,
|
fileRetirement: (id: string) => `${retirement}/upload/${id}`,
|
||||||
checkfileupload: (id: string) => `${retirement}/upload/check/${id}`
|
checkfileupload: (id: string) => `${retirement}/upload/check/${id}`,
|
||||||
|
|
||||||
|
editDetail: (retireId: string) => `${retirement}/detail/${retireId}`
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,8 @@
|
||||||
:borderless="!edit"
|
:borderless="!edit"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
>
|
>
|
||||||
<template v-for="(_, slot) in slots" v-slot:[slot]="scope">
|
<template v-for="slot in slots">
|
||||||
<slot :name="slot" v-bind="scope || {}" />
|
<slot :name="slot" />
|
||||||
</template>
|
</template>
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -37,9 +37,9 @@ const props = defineProps({
|
||||||
});
|
});
|
||||||
|
|
||||||
const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
||||||
locale: "en-US",
|
locale: "th-TH",
|
||||||
currency: "EUR",
|
currency: "THB",
|
||||||
// currencyDisplay: "hidden",
|
currencyDisplay: "hidden" as any,
|
||||||
hideCurrencySymbolOnFocus: true,
|
hideCurrencySymbolOnFocus: true,
|
||||||
hideGroupingSeparatorOnFocus: true,
|
hideGroupingSeparatorOnFocus: true,
|
||||||
hideNegligibleDecimalDigitsOnFocus: true,
|
hideNegligibleDecimalDigitsOnFocus: true,
|
||||||
|
|
@ -50,7 +50,7 @@ const { inputRef, formattedValue, setValue } = useCurrencyInput({
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
() => props.modelValue,
|
() => props.modelValue,
|
||||||
(value) => {
|
(value: any) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
import { ref, watch } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
|
||||||
const reason = ref<string>("");
|
const reason = ref<string | undefined>("");
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
modal: {
|
modal: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|
@ -18,16 +18,21 @@ const props = defineProps({
|
||||||
},
|
},
|
||||||
clickClose: {
|
clickClose: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => { },
|
default: () => {},
|
||||||
},
|
},
|
||||||
savaForm: {
|
savaForm: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => { },
|
default: () => {},
|
||||||
|
},
|
||||||
|
textReport: {
|
||||||
|
type: String,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
watch(props, () => {
|
watch(props, () => {
|
||||||
if (props.modal === true) {
|
if (props.modal === true && props.textReport == "") {
|
||||||
reason.value = "";
|
reason.value = "";
|
||||||
|
} else {
|
||||||
|
reason.value = props.textReport;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -51,18 +56,31 @@ const submit = () => {
|
||||||
<div class="row col-12 q-col-gutter-sm">
|
<div class="row col-12 q-col-gutter-sm">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<div class="col-12 row q-py-sm items-center q-col-gutter-sm">
|
<div class="col-12 row q-py-sm items-center q-col-gutter-sm">
|
||||||
|
<q-input
|
||||||
<q-input type="textarea" class="full-width inputgreen cursor-pointer" hide-bottom-space outlined dense
|
type="textarea"
|
||||||
lazy-rules :rules="[(val) => !!val || `กรุณากรอก${label}`]" v-model="reason" :label="`${label}`" />
|
class="full-width inputgreen cursor-pointer"
|
||||||
|
hide-bottom-space
|
||||||
|
outlined
|
||||||
|
dense
|
||||||
|
lazy-rules
|
||||||
|
:rules="[(val) => !!val || `กรุณากรอก${label}`]"
|
||||||
|
v-model="reason"
|
||||||
|
:label="`${label}`"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
<q-separator />
|
<q-separator />
|
||||||
<q-card-actions align="right">
|
<q-card-actions align="right">
|
||||||
<q-btn dense unelevated label="บันทึก" color="public" @click="submit" class="q-px-md">
|
<q-btn
|
||||||
|
dense
|
||||||
|
unelevated
|
||||||
|
label="บันทึก"
|
||||||
|
color="public"
|
||||||
|
@click="submit"
|
||||||
|
class="q-px-md"
|
||||||
|
>
|
||||||
<!-- icon="mdi-content-save-outline" -->
|
<!-- icon="mdi-content-save-outline" -->
|
||||||
<q-tooltip>บันทึก</q-tooltip>
|
<q-tooltip>บันทึก</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
|
||||||
|
|
@ -643,10 +643,10 @@ const {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const id = ref<string>("");
|
const id = ref<string>("");
|
||||||
const date = ref<Date>(new Date());
|
const date = ref<Date>(new Date());
|
||||||
const amount = ref<number | null>(0);
|
const amount = ref<number | undefined>(0);
|
||||||
// const salary = ref<number | null>(null);
|
// const salary = ref<number | null>(null);
|
||||||
const positionSalaryAmount = ref<number | null>(0);
|
const positionSalaryAmount = ref<number | undefined>(0);
|
||||||
const mouthSalaryAmount = ref<number | null>(0);
|
const mouthSalaryAmount = ref<number | undefined>(0);
|
||||||
const ocId = ref<string>();
|
const ocId = ref<string>();
|
||||||
const positionId = ref<string>();
|
const positionId = ref<string>();
|
||||||
const positionLineId = ref<string>();
|
const positionLineId = ref<string>();
|
||||||
|
|
@ -1816,13 +1816,13 @@ const templateDetail = async () => {
|
||||||
* กดบันทึกใน dialog
|
* กดบันทึกใน dialog
|
||||||
*/
|
*/
|
||||||
const clickSave = async () => {
|
const clickSave = async () => {
|
||||||
if (amount.value == 0) {
|
// if (amount.value == 0) {
|
||||||
amount.value = null;
|
// amount.value = null;
|
||||||
} else if (positionSalaryAmount.value == 0) {
|
// } else if (positionSalaryAmount.value == 0) {
|
||||||
positionSalaryAmount.value = null;
|
// positionSalaryAmount.value = null;
|
||||||
} else if (mouthSalaryAmount.value == 0) {
|
// } else if (mouthSalaryAmount.value == 0) {
|
||||||
mouthSalaryAmount.value = null;
|
// mouthSalaryAmount.value = null;
|
||||||
}
|
// }
|
||||||
|
|
||||||
myForm.value.validate().then(async (result: boolean) => {
|
myForm.value.validate().then(async (result: boolean) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|
@ -2018,9 +2018,9 @@ const addData = () => {
|
||||||
edit.value = true;
|
edit.value = true;
|
||||||
date.value = new Date();
|
date.value = new Date();
|
||||||
date.value = new Date();
|
date.value = new Date();
|
||||||
amount.value = 0;
|
amount.value = undefined;
|
||||||
positionSalaryAmount.value = 0;
|
positionSalaryAmount.value = undefined;
|
||||||
mouthSalaryAmount.value = 0;
|
mouthSalaryAmount.value = undefined;
|
||||||
ocId.value = "";
|
ocId.value = "";
|
||||||
positionId.value = "";
|
positionId.value = "";
|
||||||
posNoId.value = "";
|
posNoId.value = "";
|
||||||
|
|
|
||||||
|
|
@ -617,9 +617,9 @@ const {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const id = ref<string>("");
|
const id = ref<string>("");
|
||||||
const date = ref<Date>(new Date());
|
const date = ref<Date>(new Date());
|
||||||
const amount = ref<number | null>(null);
|
const amount = ref<number | undefined>(0);
|
||||||
const positionSalaryAmount = ref<number | null>(null);
|
const positionSalaryAmount = ref<number | undefined>(0);
|
||||||
const mouthSalaryAmount = ref<number | null>(null);
|
const mouthSalaryAmount = ref<number | undefined>(0);
|
||||||
const search = ref<string>("");
|
const search = ref<string>("");
|
||||||
const refCommandNo = ref<any>();
|
const refCommandNo = ref<any>();
|
||||||
const expanded = ref<string[]>([]);
|
const expanded = ref<string[]>([]);
|
||||||
|
|
@ -1717,9 +1717,9 @@ const templateDetail = async () => {
|
||||||
* กดบันทึกใน dialog
|
* กดบันทึกใน dialog
|
||||||
*/
|
*/
|
||||||
const clickSave = async () => {
|
const clickSave = async () => {
|
||||||
if (amount.value === 0) {
|
// if (amount.value === 0) {
|
||||||
amount.value = null;
|
// amount.value = null;
|
||||||
}
|
// }
|
||||||
myForm.value.validate().then(async (result: boolean) => {
|
myForm.value.validate().then(async (result: boolean) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
if (modalEdit.value) {
|
if (modalEdit.value) {
|
||||||
|
|
@ -1919,9 +1919,9 @@ const addData = () => {
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
edit.value = true;
|
edit.value = true;
|
||||||
date.value = new Date();
|
date.value = new Date();
|
||||||
amount.value = 0;
|
amount.value = undefined;
|
||||||
positionSalaryAmount.value = null;
|
positionSalaryAmount.value = undefined;
|
||||||
mouthSalaryAmount.value = null;
|
mouthSalaryAmount.value = undefined;
|
||||||
|
|
||||||
posNoId.value = "";
|
posNoId.value = "";
|
||||||
posNoEmployee.value = "";
|
posNoEmployee.value = "";
|
||||||
|
|
|
||||||
|
|
@ -592,9 +592,9 @@ const {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const id = ref<string>("");
|
const id = ref<string>("");
|
||||||
const date = ref<Date>(new Date());
|
const date = ref<Date>(new Date());
|
||||||
const amount = ref<number | null>(null);
|
const amount = ref<number | undefined>(0);
|
||||||
const positionSalaryAmount = ref<number | null>(null);
|
const positionSalaryAmount = ref<number | undefined>(0);
|
||||||
const mouthSalaryAmount = ref<number | null>(null);
|
const mouthSalaryAmount = ref<number | undefined>(0);
|
||||||
const search = ref<string>("");
|
const search = ref<string>("");
|
||||||
const expanded = ref<string[]>([]);
|
const expanded = ref<string[]>([]);
|
||||||
const selected = ref<string>("");
|
const selected = ref<string>("");
|
||||||
|
|
@ -1746,9 +1746,9 @@ const templateDetail = async () => {
|
||||||
* กดบันทึกใน dialog
|
* กดบันทึกใน dialog
|
||||||
*/
|
*/
|
||||||
const clickSave = async () => {
|
const clickSave = async () => {
|
||||||
if (amount.value == 0) {
|
// if (amount.value == 0) {
|
||||||
amount.value = null;
|
// amount.value = null;
|
||||||
}
|
// }
|
||||||
myForm.value.validate().then(async (result: boolean) => {
|
myForm.value.validate().then(async (result: boolean) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
if (modalEdit.value) {
|
if (modalEdit.value) {
|
||||||
|
|
@ -1948,9 +1948,9 @@ const addData = () => {
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
edit.value = true;
|
edit.value = true;
|
||||||
date.value = new Date();
|
date.value = new Date();
|
||||||
amount.value = 0;
|
amount.value = undefined;
|
||||||
positionSalaryAmount.value = null;
|
positionSalaryAmount.value = undefined;
|
||||||
mouthSalaryAmount.value = null;
|
mouthSalaryAmount.value = undefined;
|
||||||
|
|
||||||
posNoId.value = "";
|
posNoId.value = "";
|
||||||
posNoEmployee.value = "";
|
posNoEmployee.value = "";
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,13 @@ import { useRouter } from "vue-router";
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
import DialogHeader from "@/components/DialogHeader.vue";
|
import DialogHeader from "@/components/DialogHeader.vue";
|
||||||
|
import DialogPopupReason from "@/components/Dialogs/PopupReason.vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const { showLoader, hideLoader, messageError, success } = mixin;
|
const { showLoader, hideLoader, messageError, success, dialogConfirm } = mixin;
|
||||||
// const type_params = route.params.type;
|
// const type_params = route.params.type;
|
||||||
// const year_params = route.params.year;
|
// const year_params = route.params.year;
|
||||||
const retireld_params = route.params.retirementId;
|
const retireld_params = route.params.retirementId;
|
||||||
|
|
@ -26,6 +27,8 @@ const retireld = ref<string>(retireld_params.toString());
|
||||||
const profileId = ref<string>("");
|
const profileId = ref<string>("");
|
||||||
const filter = ref<string>("");
|
const filter = ref<string>("");
|
||||||
const statusUpload = ref<boolean>();
|
const statusUpload = ref<boolean>();
|
||||||
|
const modalEdit = ref<boolean>(false);
|
||||||
|
const textReport = ref<string>("");
|
||||||
|
|
||||||
const columns = ref<any["columns"]>([
|
const columns = ref<any["columns"]>([
|
||||||
{
|
{
|
||||||
|
|
@ -177,6 +180,7 @@ const fecthlistprofile = async (id: string) => {
|
||||||
round.value = res.data.result.round;
|
round.value = res.data.result.round;
|
||||||
statusReport.value = res.data.result.json;
|
statusReport.value = res.data.result.json;
|
||||||
typeReport.value = res.data.result.typeReport;
|
typeReport.value = res.data.result.typeReport;
|
||||||
|
textReport.value = res.data.result.detail;
|
||||||
rows.value = res.data.result.profile.map((e: any) => ({
|
rows.value = res.data.result.profile.map((e: any) => ({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
profileId: e.profileId,
|
profileId: e.profileId,
|
||||||
|
|
@ -312,6 +316,7 @@ const uploadFile = async (event: any) => {
|
||||||
console.log(selectedFile);
|
console.log(selectedFile);
|
||||||
const formdata = new FormData();
|
const formdata = new FormData();
|
||||||
formdata.append("file", selectedFile);
|
formdata.append("file", selectedFile);
|
||||||
|
|
||||||
await http
|
await http
|
||||||
.put(config.API.fileRetirement(retireld.value.toString()), formdata)
|
.put(config.API.fileRetirement(retireld.value.toString()), formdata)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
@ -381,6 +386,36 @@ const downloadFile = (response: any, filename: string) => {
|
||||||
// return "color: #26a69a;";
|
// return "color: #26a69a;";
|
||||||
// } else return "";
|
// } else return "";
|
||||||
// };
|
// };
|
||||||
|
const saveEdiitReport = (reason: string) => {
|
||||||
|
const formdata = new FormData();
|
||||||
|
formdata.append("Detail", reason);
|
||||||
|
dialogConfirm(
|
||||||
|
$q,
|
||||||
|
async () => {
|
||||||
|
await http
|
||||||
|
.put(config.API.editDetail(retireld.value), formdata)
|
||||||
|
.then(() => {
|
||||||
|
success($q, "แก้ไขข้อความสำเร็จ");
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
messageError($q, err);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
fecthlistprofile(retireld.value);
|
||||||
|
closemodalEditReport();
|
||||||
|
});
|
||||||
|
},
|
||||||
|
"ยืนยันการแก้ไขข้อมูล",
|
||||||
|
"ต้องการยืนยันการแก้ไขข้อมูลนี้หรือไม่ ?"
|
||||||
|
);
|
||||||
|
};
|
||||||
|
const openmodalEditReport = () => {
|
||||||
|
modalEdit.value = true;
|
||||||
|
};
|
||||||
|
const closemodalEditReport = () => {
|
||||||
|
modalEdit.value = false;
|
||||||
|
};
|
||||||
|
|
||||||
const paging = ref<boolean>(true);
|
const paging = ref<boolean>(true);
|
||||||
const pagination = ref({
|
const pagination = ref({
|
||||||
sortBy: "order",
|
sortBy: "order",
|
||||||
|
|
@ -427,9 +462,22 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
||||||
<!-- <q-btn flat round style="color: #016987;" icon="save" @click="saveList">
|
<!-- <q-btn flat round style="color: #016987;" icon="save" @click="saveList">
|
||||||
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
<q-tooltip>บันทึกข้อมูล</q-tooltip>
|
||||||
</q-btn> -->
|
</q-btn> -->
|
||||||
<q-btn color="primary" flat round icon="download">
|
<q-btn color="primary" flat round icon="mdi-dots-vertical">
|
||||||
<q-menu>
|
<q-menu>
|
||||||
<q-list style="min-width: 100px">
|
<q-list style="min-width: 100px">
|
||||||
|
<q-item
|
||||||
|
clickable
|
||||||
|
v-close-popup
|
||||||
|
type="a"
|
||||||
|
@click="openmodalEditReport()"
|
||||||
|
target="_blank"
|
||||||
|
>
|
||||||
|
<q-item-section avatar
|
||||||
|
><q-icon color="primary" name="mdi-pencil"
|
||||||
|
/></q-item-section>
|
||||||
|
<q-item-section>แก้ไข มติ อ.ก.ก. </q-item-section>
|
||||||
|
</q-item>
|
||||||
|
<q-separator />
|
||||||
<q-item
|
<q-item
|
||||||
clickable
|
clickable
|
||||||
v-close-popup
|
v-close-popup
|
||||||
|
|
@ -743,6 +791,15 @@ const paginationLabel = (start: number, end: number, total: number) => {
|
||||||
</q-card-actions>
|
</q-card-actions>
|
||||||
</q-card>
|
</q-card>
|
||||||
</q-dialog>
|
</q-dialog>
|
||||||
|
|
||||||
|
<DialogPopupReason
|
||||||
|
:modal="modalEdit"
|
||||||
|
title="แก้ไขมติ อ.ก.ก."
|
||||||
|
label="มติ อ.ก.ก."
|
||||||
|
:click-close="closemodalEditReport"
|
||||||
|
:savaForm="saveEdiitReport"
|
||||||
|
:textReport="textReport"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scope>
|
<style lang="scss" scope>
|
||||||
|
|
|
||||||
|
|
@ -190,8 +190,9 @@ const sendToDirector = async () => {
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(async () => {
|
||||||
hideLoader();
|
await hideLoader();
|
||||||
|
await fecthStat(round.value);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
@ -257,8 +258,9 @@ const directorApproved = async () => {
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(async () => {
|
||||||
hideLoader();
|
await hideLoader();
|
||||||
|
await fecthStat(round.value);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
"ยืนยันการอนุมัติ",
|
"ยืนยันการอนุมัติ",
|
||||||
|
|
@ -288,8 +290,9 @@ const requestSendNote = async () => {
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
messageError($q, err);
|
messageError($q, err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(async () => {
|
||||||
hideLoader();
|
await hideLoader();
|
||||||
|
await fecthStat(round.value);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -625,9 +625,9 @@ const {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const id = ref<string>("");
|
const id = ref<string>("");
|
||||||
const date = ref<Date>(new Date());
|
const date = ref<Date>(new Date());
|
||||||
const amount = ref<number | null>(null);
|
const amount = ref<number | undefined>(0);
|
||||||
const positionSalaryAmount = ref<number | null>(null);
|
const positionSalaryAmount = ref<number | undefined>(0);
|
||||||
const mouthSalaryAmount = ref<number | null>(null);
|
const mouthSalaryAmount = ref<number | undefined>(0);
|
||||||
const search = ref<string>("");
|
const search = ref<string>("");
|
||||||
const refCommandNo = ref<any>();
|
const refCommandNo = ref<any>();
|
||||||
const expanded = ref<string[]>([]);
|
const expanded = ref<string[]>([]);
|
||||||
|
|
@ -1712,9 +1712,9 @@ const templateDetail = async () => {
|
||||||
*/
|
*/
|
||||||
const clickSave = async () => {
|
const clickSave = async () => {
|
||||||
// dialogConfirm($q, () => SaveData());
|
// dialogConfirm($q, () => SaveData());
|
||||||
if (amount.value == 0) {
|
// if (amount.value == 0) {
|
||||||
amount.value = null;
|
// amount.value = null;
|
||||||
}
|
// }
|
||||||
await myForm.value.validate().then(async (result: boolean) => {
|
await myForm.value.validate().then(async (result: boolean) => {
|
||||||
if (result && agencyId.value) {
|
if (result && agencyId.value) {
|
||||||
if (modalEdit.value) {
|
if (modalEdit.value) {
|
||||||
|
|
@ -1918,9 +1918,9 @@ const addData = () => {
|
||||||
modal.value = true;
|
modal.value = true;
|
||||||
edit.value = true;
|
edit.value = true;
|
||||||
date.value = new Date();
|
date.value = new Date();
|
||||||
amount.value = 0;
|
amount.value = undefined;
|
||||||
positionSalaryAmount.value = null;
|
positionSalaryAmount.value = undefined;
|
||||||
mouthSalaryAmount.value = null;
|
mouthSalaryAmount.value = undefined;
|
||||||
|
|
||||||
posNoId.value = "";
|
posNoId.value = "";
|
||||||
posNoEmployee.value = "";
|
posNoEmployee.value = "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue