fix ตำแหน่งเงินเดือน
This commit is contained in:
parent
139437d793
commit
e5b9299ee9
6 changed files with 842 additions and 966 deletions
|
|
@ -51,6 +51,7 @@ const {
|
|||
onSearchDataTable,
|
||||
formatDatePosition,
|
||||
findOrgName,
|
||||
convertDateToAPI
|
||||
} = useCounterMixin();
|
||||
|
||||
const empType = ref<string>(pathRegistryEmp(route.name?.toString() ?? ""));
|
||||
|
|
@ -419,8 +420,6 @@ async function fetchDataOption() {
|
|||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
|
||||
console.log(data);
|
||||
|
||||
const seen = new Set();
|
||||
const seen2 = new Set();
|
||||
|
||||
|
|
@ -566,7 +565,12 @@ async function onClickOpenDialog(
|
|||
} else {
|
||||
await fetchOptionGroup();
|
||||
}
|
||||
|
||||
commandCodeOptions.value = store.commandCodeData;
|
||||
posTypeOptions.value = store.posTypeData;
|
||||
posLevelOptions.value = store.posLevelData;
|
||||
posLineOptions.value = store.posLineData;
|
||||
posPathSideOptions.value = store.posPathSideData;
|
||||
posExecutiveOptions.value = store.posExecutiveData;
|
||||
// หาระดับตำแหน่ง
|
||||
statusEdit && (await updateSelectType(data.positionType, true));
|
||||
isStatusEdit.value = statusEdit;
|
||||
|
|
@ -601,27 +605,6 @@ async function onClickOpenDialog(
|
|||
/** function ปิด dialog ตำแหน่งเงินเดือน*/
|
||||
function onClickCloseDialog() {
|
||||
modalDialogSalary.value = false;
|
||||
formData.commandCode = "";
|
||||
formData.commandNo = "";
|
||||
formData.commandYear = null;
|
||||
formData.commandDateAffect = null;
|
||||
formData.commandDateSign = null;
|
||||
formData.posNoAbb = "";
|
||||
formData.posNo = "";
|
||||
formData.positionName = "";
|
||||
formData.positionType = "";
|
||||
formData.positionLevel = "";
|
||||
formData.positionLine = "";
|
||||
formData.positionPathSide = "";
|
||||
formData.positionExecutive = "";
|
||||
formData.amount = null;
|
||||
formData.amountSpecial = null;
|
||||
formData.orgRoot = "";
|
||||
formData.orgChild1 = "";
|
||||
formData.orgChild2 = "";
|
||||
formData.orgChild3 = "";
|
||||
formData.orgChild4 = "";
|
||||
formData.remark = "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -704,6 +687,8 @@ function onSubmit() {
|
|||
? profileId.value
|
||||
: undefined,
|
||||
...formData,
|
||||
commandDateAffect: convertDateToAPI(formData.commandDateAffect),
|
||||
commandDateSign: convertDateToAPI(formData.commandDateSign),
|
||||
amount: Number(String(formData.amount)?.replace(/,/g, "")),
|
||||
amountSpecial: Number(
|
||||
String(formData.amountSpecial)?.replace(/,/g, "")
|
||||
|
|
@ -921,9 +906,7 @@ onMounted(async () => {
|
|||
<q-card style="min-width: 40vw">
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmit">
|
||||
<DialogHeader
|
||||
:tittle="
|
||||
isStatusEdit ? 'แก้ไขตำแหน่ง/เงินเดือน' : 'เพิ่มตำแหน่ง/เงินเดือน'
|
||||
"
|
||||
:tittle="isStatusEdit ? 'แก้ไขตำแหน่ง' : 'เพิ่มตำแหน่ง'"
|
||||
:close="onClickCloseDialog"
|
||||
/>
|
||||
<q-separator color="grey-4" />
|
||||
|
|
@ -1417,6 +1400,7 @@ onMounted(async () => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<q-input
|
||||
:class="classInput(true)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue