บันทึกตำแหน่ง
This commit is contained in:
parent
ee80528296
commit
7d4be05a9a
2 changed files with 40 additions and 10 deletions
|
|
@ -1681,7 +1681,7 @@ const fetchData = async () => {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let data = res.data.result;
|
let data = res.data.result;
|
||||||
rows.value = [];
|
rows.value = [];
|
||||||
data.map((e: ResponseObject) => {
|
data.map((e: any) => {
|
||||||
rows.value.push({
|
rows.value.push({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
date: new Date(e.date),
|
date: new Date(e.date),
|
||||||
|
|
@ -1691,6 +1691,7 @@ const fetchData = async () => {
|
||||||
oc: e.oc,
|
oc: e.oc,
|
||||||
ocId: e.ocId,
|
ocId: e.ocId,
|
||||||
position: e.position,
|
position: e.position,
|
||||||
|
positionName: e.positionName,
|
||||||
positionId:
|
positionId:
|
||||||
e.positionId !== "00000000-0000-0000-0000-000000000000"
|
e.positionId !== "00000000-0000-0000-0000-000000000000"
|
||||||
? e.positionId
|
? e.positionId
|
||||||
|
|
@ -1701,15 +1702,18 @@ const fetchData = async () => {
|
||||||
? e.posNoId
|
? e.posNoId
|
||||||
: "",
|
: "",
|
||||||
positionLine: e.positionLine,
|
positionLine: e.positionLine,
|
||||||
|
positionLineName: e.positionLineName,
|
||||||
positionLineId: e.positionLineId,
|
positionLineId: e.positionLineId,
|
||||||
positionPathSide: e.positionPathSide,
|
positionPathSide: e.positionPathSide,
|
||||||
positionPathSideId: e.positionPathSideId,
|
positionPathSideId: e.positionPathSideId,
|
||||||
|
positionPathSideName: e.positionPathSideName,
|
||||||
positionType: e.positionType,
|
positionType: e.positionType,
|
||||||
positionTypeId: e.positionTypeId,
|
positionTypeId: e.positionTypeId,
|
||||||
positionLevel: e.positionLevel,
|
positionLevel: e.positionLevel,
|
||||||
positionLevelId: e.positionLevelId,
|
positionLevelId: e.positionLevelId,
|
||||||
positionExecutive: e.positionExecutive,
|
positionExecutive: e.positionExecutive,
|
||||||
positionExecutiveId: e.positionExecutiveId,
|
positionExecutiveId: e.positionExecutiveId,
|
||||||
|
positionExecutiveName: e.positionExecutiveName,
|
||||||
positionExecutiveSide: e.positionExecutiveSide,
|
positionExecutiveSide: e.positionExecutiveSide,
|
||||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||||
salaryClass: e.salaryClass,
|
salaryClass: e.salaryClass,
|
||||||
|
|
@ -1717,6 +1721,9 @@ const fetchData = async () => {
|
||||||
salaryStatus: e.salaryStatus,
|
salaryStatus: e.salaryStatus,
|
||||||
refCommandNo: e.refCommandNo,
|
refCommandNo: e.refCommandNo,
|
||||||
createdFullName: e.createdFullName,
|
createdFullName: e.createdFullName,
|
||||||
|
orgName: e.orgName,
|
||||||
|
agencyName: e.agencyName,
|
||||||
|
cLevel: e.cLevel,
|
||||||
createdAt: new Date(e.createdAt),
|
createdAt: new Date(e.createdAt),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -1804,14 +1811,14 @@ const getData = async () => {
|
||||||
mouthSalaryAmount.value = row.mouthSalaryAmount;
|
mouthSalaryAmount.value = row.mouthSalaryAmount;
|
||||||
await onSelected(row.ocId);
|
await onSelected(row.ocId);
|
||||||
selected.value = row.ocId;
|
selected.value = row.ocId;
|
||||||
positionName.value = row.positionId;
|
positionName.value = row.positionName;
|
||||||
posNoId.value = row.posNoId;
|
posNoId.value = row.posNoId;
|
||||||
posNo.value = row.posNo;
|
posNo.value = row.posNo;
|
||||||
positionLineName.value = row.positionLineId;
|
positionLineName.value = row.positionLineName;
|
||||||
positionPathSideName.value = row.positionPathSideId;
|
positionPathSideName.value = row.positionPathSideName;
|
||||||
positionTypeId.value = row.positionTypeId;
|
positionTypeId.value = row.positionTypeId;
|
||||||
positionLevelId.value = row.positionLevelId;
|
positionLevelId.value = row.positionLevelId;
|
||||||
positionExecutiveName.value = row.positionExecutiveId;
|
positionExecutiveName.value = row.positionExecutiveName;
|
||||||
positionExecutiveSideId.value = row.positionExecutiveSideId;
|
positionExecutiveSideId.value = row.positionExecutiveSideId;
|
||||||
salaryClass.value = row.salaryClass;
|
salaryClass.value = row.salaryClass;
|
||||||
salaryRef.value = row.salaryRef;
|
salaryRef.value = row.salaryRef;
|
||||||
|
|
@ -1980,6 +1987,9 @@ const saveData = async () => {
|
||||||
// salaryClass: salaryClass.value,
|
// salaryClass: salaryClass.value,
|
||||||
salaryRef: salaryRef.value,
|
salaryRef: salaryRef.value,
|
||||||
refCommandNo: refCommandNo.value,
|
refCommandNo: refCommandNo.value,
|
||||||
|
orgName: orgName.value,
|
||||||
|
agencyName: agencyName.value,
|
||||||
|
cLevel: cLevel.value,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
|
@ -2018,6 +2028,9 @@ const editData = async () => {
|
||||||
// salaryClass: salaryClass.value,
|
// salaryClass: salaryClass.value,
|
||||||
salaryRef: salaryRef.value,
|
salaryRef: salaryRef.value,
|
||||||
refCommandNo: refCommandNo.value,
|
refCommandNo: refCommandNo.value,
|
||||||
|
orgName: orgName.value,
|
||||||
|
agencyName: agencyName.value,
|
||||||
|
cLevel: cLevel.value,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
|
@ -2101,19 +2114,22 @@ const selectData = async (props: DataProps) => {
|
||||||
mouthSalaryAmount.value = props.row.mouthSalaryAmount;
|
mouthSalaryAmount.value = props.row.mouthSalaryAmount;
|
||||||
// await onSelected(props.row.ocId);
|
// await onSelected(props.row.ocId);
|
||||||
selected.value = props.row.ocId;
|
selected.value = props.row.ocId;
|
||||||
positionName.value = props.row.positionId;
|
positionName.value = props.row.positionName;
|
||||||
posNoId.value = props.row.posNoId;
|
posNoId.value = props.row.posNoId;
|
||||||
posNo.value = props.row.posNo;
|
posNo.value = props.row.posNo;
|
||||||
positionLineName.value = props.row.positionLineId;
|
positionLineName.value = props.row.positionLineName;
|
||||||
positionPathSideName.value = props.row.positionPathSideId;
|
positionPathSideName.value = props.row.positionPathSideName;
|
||||||
positionTypeId.value = props.row.positionTypeId;
|
positionTypeId.value = props.row.positionTypeId;
|
||||||
positionLevelId.value = props.row.positionLevelId;
|
positionLevelId.value = props.row.positionLevelId;
|
||||||
positionExecutiveName.value = props.row.positionExecutiveId;
|
positionExecutiveName.value = props.row.positionExecutiveName;
|
||||||
positionExecutiveSideId.value = props.row.positionExecutiveSideId;
|
positionExecutiveSideId.value = props.row.positionExecutiveSideId;
|
||||||
salaryClass.value = props.row.salaryClass;
|
salaryClass.value = props.row.salaryClass;
|
||||||
salaryRef.value = props.row.salaryRef;
|
salaryRef.value = props.row.salaryRef;
|
||||||
refCommandNo.value = props.row.refCommandNo;
|
refCommandNo.value = props.row.refCommandNo;
|
||||||
id.value = props.row.id;
|
id.value = props.row.id;
|
||||||
|
orgName.value = props.row.orgName;
|
||||||
|
agencyName.value = props.row.agencyName;
|
||||||
|
cLevel.value = props.row.cLevel;
|
||||||
await checkRowPage();
|
await checkRowPage();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -2200,7 +2216,7 @@ const clickHistory = async (row: RequestItemsObject) => {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let data = res.data.result;
|
let data = res.data.result;
|
||||||
rowsHistory.value = [];
|
rowsHistory.value = [];
|
||||||
data.map((e: ResponseObject) => {
|
data.map((e: any) => {
|
||||||
rowsHistory.value.push({
|
rowsHistory.value.push({
|
||||||
id: e.id,
|
id: e.id,
|
||||||
date: new Date(e.date),
|
date: new Date(e.date),
|
||||||
|
|
@ -2211,18 +2227,22 @@ const clickHistory = async (row: RequestItemsObject) => {
|
||||||
ocId: e.ocId,
|
ocId: e.ocId,
|
||||||
position: e.position,
|
position: e.position,
|
||||||
positionId: e.positionId,
|
positionId: e.positionId,
|
||||||
|
positionName: e.positionName,
|
||||||
posNo: e.posNo,
|
posNo: e.posNo,
|
||||||
posNoId: e.posNoId,
|
posNoId: e.posNoId,
|
||||||
positionLine: e.positionLine,
|
positionLine: e.positionLine,
|
||||||
|
positionLineName: e.positionLineName,
|
||||||
positionLineId: e.positionLineId,
|
positionLineId: e.positionLineId,
|
||||||
positionPathSide: e.positionPathSide,
|
positionPathSide: e.positionPathSide,
|
||||||
positionPathSideId: e.positionPathSideId,
|
positionPathSideId: e.positionPathSideId,
|
||||||
|
positionPathSideName: e.positionPathSideName,
|
||||||
positionType: e.positionType,
|
positionType: e.positionType,
|
||||||
positionTypeId: e.positionTypeId,
|
positionTypeId: e.positionTypeId,
|
||||||
positionLevel: e.positionLevel,
|
positionLevel: e.positionLevel,
|
||||||
positionLevelId: e.positionLevelId,
|
positionLevelId: e.positionLevelId,
|
||||||
positionExecutive: e.positionExecutive,
|
positionExecutive: e.positionExecutive,
|
||||||
positionExecutiveId: e.positionExecutiveId,
|
positionExecutiveId: e.positionExecutiveId,
|
||||||
|
positionExecutiveName: e.positionExecutiveName,
|
||||||
positionExecutiveSide: e.positionExecutiveSide,
|
positionExecutiveSide: e.positionExecutiveSide,
|
||||||
positionExecutiveSideId: e.positionExecutiveSideId,
|
positionExecutiveSideId: e.positionExecutiveSideId,
|
||||||
salaryClass: e.salaryClass,
|
salaryClass: e.salaryClass,
|
||||||
|
|
@ -2230,6 +2250,9 @@ const clickHistory = async (row: RequestItemsObject) => {
|
||||||
salaryRef: e.salaryRef,
|
salaryRef: e.salaryRef,
|
||||||
refCommandNo: e.refCommandNo,
|
refCommandNo: e.refCommandNo,
|
||||||
createdFullName: e.createdFullName,
|
createdFullName: e.createdFullName,
|
||||||
|
orgName: e.orgName,
|
||||||
|
agencyName: e.agencyName,
|
||||||
|
cLevel: e.cLevel,
|
||||||
createdAt: new Date(e.createdAt),
|
createdAt: new Date(e.createdAt),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -18,24 +18,31 @@ interface RequestItemsObject {
|
||||||
oc: string;
|
oc: string;
|
||||||
ocId: string;
|
ocId: string;
|
||||||
position: string;
|
position: string;
|
||||||
|
positionName: string;
|
||||||
positionId: string;
|
positionId: string;
|
||||||
posNo: string;
|
posNo: string;
|
||||||
posNoId: string;
|
posNoId: string;
|
||||||
positionLine: string;
|
positionLine: string;
|
||||||
|
positionLineName: string;
|
||||||
positionLineId: string;
|
positionLineId: string;
|
||||||
positionPathSide: string;
|
positionPathSide: string;
|
||||||
positionPathSideId: string;
|
positionPathSideId: string;
|
||||||
|
positionPathSideName: string;
|
||||||
positionType: string;
|
positionType: string;
|
||||||
positionTypeId: string;
|
positionTypeId: string;
|
||||||
positionLevel: string;
|
positionLevel: string;
|
||||||
positionLevelId: string;
|
positionLevelId: string;
|
||||||
positionExecutive: string;
|
positionExecutive: string;
|
||||||
|
positionExecutiveName: string;
|
||||||
positionExecutiveId: string;
|
positionExecutiveId: string;
|
||||||
positionExecutiveSide: string;
|
positionExecutiveSide: string;
|
||||||
positionExecutiveSideId: string;
|
positionExecutiveSideId: string;
|
||||||
salaryClass: string;
|
salaryClass: string;
|
||||||
salaryRef: string;
|
salaryRef: string;
|
||||||
refCommandNo: string;
|
refCommandNo: string;
|
||||||
|
orgName: string;
|
||||||
|
agencyName: string;
|
||||||
|
cLevel: string;
|
||||||
// refCommandDate: Date | null;
|
// refCommandDate: Date | null;
|
||||||
salaryStatus: string | null;
|
salaryStatus: string | null;
|
||||||
createdFullName: string;
|
createdFullName: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue