This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-11-19 17:23:27 +07:00
parent c55c5a5ac1
commit e81b47bbe4

View file

@ -408,21 +408,24 @@ async function checkSave() {
/** body สำหรับ save ข้อมูล */ /** body สำหรับ save ข้อมูล */
function sendData() { function sendData() {
console.log(rowsPosition.value);
const positionData: RequestPosition[] = []; const positionData: RequestPosition[] = [];
rowsPosition.value.map((r: ResponsePosition) => { rowsPosition.value.map((r: ResponsePosition) => {
positionData.push({ positionData.push({
id: r.id, id: r.id,
positionId: r.position.id, positionId: r.position ? r.position.id : "",
positionName: r.position.name, positionName: r.position ? r.position.name : "",
positionLevelId: r.level.id, positionLevelId: r.level ? r.level.id : "",
positionLevelName: r.level.name, positionLevelName: r.level ? r.level.name : "",
typeId: r.type.id, typeId: r.type ? r.type.id : "",
typeName: r.type.name, typeName: r.type ? r.type.name : "",
code: r.code, code: r.code,
highDegree: r.highDegree == "1" ? true : false, highDegree: r.highDegree == "1" ? true : false,
educationLevel: r.educationLevel, educationLevel: r.educationLevel,
}); });
}); });
if (fee.value == 0) { if (fee.value == 0) {
datePayment.value = null; datePayment.value = null;
} }