{
messageError($q, e);
})
.finally(() => {
- store.isLoad++
+ store.isLoad++;
});
}
};
@@ -916,18 +914,18 @@ const clickAddLeave = async () => {
numLeave.value = 0;
numUsedLeave.value = 0;
await clickTotal();
- if (rowsTotal.value.length > 0) {
- let data: DataOptionLeave[] = [];
- rowsTotal.value.map((e: ResponseTotalObject) => {
- data.push({
- id: e.typeLeaveId,
- name: e.typeLeave,
- totalLeave: e.totalLeave,
- });
- });
- typeLeaveOption.value = data;
- typeLeaveOptionFilter.value = data;
- }
+ // if (rowsTotal.value.length > 0) {
+ // let data: DataOptionLeave[] = [];
+ // rowsTotal.value.map((e: ResponseTotalObject) => {
+ // data.push({
+ // id: e.typeLeaveId,
+ // name: e.typeLeave,
+ // totalLeave: e.totalLeave,
+ // });
+ // });
+ // typeLeaveOption.value = data;
+ // typeLeaveOptionFilter.value = data;
+ // }
// await addData();
};
@@ -1137,18 +1135,18 @@ const selectData = async (props: DataProps) => {
numLeave.value = props.row.numLeave;
numUsedLeave.value = props.row.sumLeave;
await clickTotal();
- if (rowsTotal.value.length > 0) {
- let data: DataOptionLeave[] = [];
- rowsTotal.value.map((e: ResponseTotalObject) => {
- data.push({
- id: e.typeLeaveId,
- name: e.typeLeave,
- totalLeave: e.totalLeave,
- });
- });
- typeLeaveOption.value = data;
- typeLeaveOptionFilter.value = data;
- }
+ // if (rowsTotal.value.length > 0) {
+ // let data: DataOptionLeave[] = [];
+ // rowsTotal.value.map((e: ResponseTotalObject) => {
+ // data.push({
+ // id: e.typeLeaveId,
+ // name: e.typeLeave,
+ // totalLeave: e.totalLeave,
+ // });
+ // });
+ // typeLeaveOption.value = data;
+ // typeLeaveOptionFilter.value = data;
+ // }
await checkRowPage();
};
@@ -1203,6 +1201,8 @@ const clickTotal = async () => {
.get(config.API.profileLeaveTotalId(profileId.value))
.then((res) => {
let data = res.data.result;
+ typeLeaveOption.value = data;
+ typeLeaveOptionFilter.value = data;
data.map((e: ResponseTotalObject) => {
rowsTotal.value.push({
typeLeaveId: e.typeLeaveId,
diff --git a/src/modules/04_registry/components/Salary.vue b/src/modules/04_registry/components/Salary.vue
index 6da94eb80..0e352cf31 100644
--- a/src/modules/04_registry/components/Salary.vue
+++ b/src/modules/04_registry/components/Salary.vue
@@ -190,7 +190,7 @@
- filterSelector(inputValue, doneFn, '1'
)"
- />
+ /> -->
+
+
+
+
();
const positionExecutiveId = ref();
const positionExecutiveSideId = ref();
const posNoId = ref();
+const posNo = ref();
const refCommandNo = ref();
const refCommandDate = ref(new Date());
const ocOptions = ref([]);
@@ -1706,6 +1721,7 @@ const getData = async () => {
selected.value = row.ocId;
positionId.value = row.positionId;
posNoId.value = row.posNoId;
+ posNo.value = row.posNo;
positionLineId.value = row.positionLineId;
positionPathSideId.value = row.positionPathSideId;
positionTypeId.value = row.positionTypeId;
@@ -1768,12 +1784,12 @@ const templateDetail = async () => {
salaryClass.value = salaryClass.value + `ตำแหน่ง${positionF[0].name} `;
}
- const posNoF = posNoOptions.value.filter(
- (r: DataOption) => r.id == posNoId.value
- );
- if (posNoF.length > 0) {
- salaryClass.value = salaryClass.value + `ตำแหน่งเลขที่${posNoF[0].name} `;
- }
+ // const posNoF = posNoOptions.value.filter(
+ // (r: DataOption) => r.id == posNoId.value
+ // );
+ // if (posNoF.length > 0) {
+ // salaryClass.value = salaryClass.value + `ตำแหน่งเลขที่${posNoF[0].name} `;
+ // }
const positionLineF = positionLineOptions.value.filter(
(r: DataOption) => r.id == positionLineId.value
@@ -1866,6 +1882,7 @@ const saveData = async () => {
ocId: selected.value,
positionId: positionId.value,
posNoId: posNoId.value,
+ posNo: posNo.value,
positionLineId: positionLineId.value,
positionPathSideId: positionPathSideId.value,
positionTypeId: positionTypeId.value,
@@ -1903,6 +1920,7 @@ const editData = async () => {
ocId: selected.value,
positionId: positionId.value,
posNoId: posNoId.value,
+ posNo: posNo.value,
positionLineId: positionLineId.value,
positionPathSideId: positionPathSideId.value,
positionTypeId: positionTypeId.value,
@@ -1993,10 +2011,11 @@ const selectData = async (props: DataProps) => {
amount.value = props.row.amount;
positionSalaryAmount.value = props.row.positionSalaryAmount;
mouthSalaryAmount.value = props.row.mouthSalaryAmount;
- await onSelected(props.row.ocId);
+ // await onSelected(props.row.ocId);
selected.value = props.row.ocId;
positionId.value = props.row.positionId;
posNoId.value = props.row.posNoId;
+ posNo.value = props.row.posNo;
positionLineId.value = props.row.positionLineId;
positionPathSideId.value = props.row.positionPathSideId;
positionTypeId.value = props.row.positionTypeId;
@@ -2026,6 +2045,7 @@ const addData = () => {
ocId.value = "";
positionId.value = "";
posNoId.value = "";
+ posNo.value = "";
positionLineId.value = "";
positionPathSideId.value = "";
positionTypeId.value = "";