สอบคัดเลือกรวมวันทำงาน
This commit is contained in:
parent
acbec63df7
commit
c62c745f5e
4 changed files with 25 additions and 20 deletions
|
|
@ -12,6 +12,7 @@
|
|||
:add="clickAdd"
|
||||
:edit="clickEdit"
|
||||
:addData="false"
|
||||
:bottom="true"
|
||||
:editData="status == 'checkRegister' || status == 'payment'"
|
||||
name="ประวัติการทำงาน (ตั้งแต่เริ่มปฏิบัติงานกับกรุงเทพมหานคร - ปัจจุบัน)"
|
||||
icon="mdi-briefcase"
|
||||
|
|
@ -550,13 +551,13 @@ const fetchData = async () => {
|
|||
yearDiff = yearDiff + d.yearDiff;
|
||||
monthDiff = monthDiff + d.monthDiff;
|
||||
dayDiff = dayDiff + d.dayDiff;
|
||||
if (dayDiff > 30) {
|
||||
dayDiff = dayDiff % 30;
|
||||
if (dayDiff >= 30) {
|
||||
monthDiff = monthDiff + parseInt((dayDiff / 30).toString());
|
||||
dayDiff = dayDiff % 30;
|
||||
}
|
||||
if (monthDiff > 12) {
|
||||
monthDiff = monthDiff % 12;
|
||||
if (monthDiff >= 12) {
|
||||
yearDiff = yearDiff + parseInt((monthDiff / 12).toString());
|
||||
monthDiff = monthDiff % 12;
|
||||
}
|
||||
total.value = `${yearDiff > 0 ? yearDiff + " ปี " : ""}${
|
||||
monthDiff > 0 ? monthDiff + " เดือน " : ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue