|
@@ -107,7 +107,7 @@
|
|
<el-option v-for="item in qjType" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
<el-option v-for="item in qjType" :key="item.id" :label="item.name" :value="item.id"></el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="addForm.leaveType == 6">
|
|
<template v-if="addForm.leaveType == 6">
|
|
- <span style="margin-left:18px;color:#777;">{{ $t('restcanbeadjusted') }} {{addForm.ownerId != '' ? txselnum : '~'}} {{ $t('time.day') }}</span>
|
|
|
|
|
|
+ <span style="margin-left:18px;color:#777;">{{ $t('restcanbeadjusted') }} {{addForm.ownerId != '' ? txselnum : '~'}} {{ addForm.timeType == 0 ? '天' : '小时' }}</span>
|
|
<el-tooltip effect="dark" :content="$t('overtimhourscabeusedforoffsetting')" placement="top-start">
|
|
<el-tooltip effect="dark" :content="$t('overtimhourscabeusedforoffsetting')" placement="top-start">
|
|
<i class="el-icon-question" style="color:#606266;"></i>
|
|
<i class="el-icon-question" style="color:#606266;"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
@@ -1936,9 +1936,15 @@ export default {
|
|
this.addForm.timeType = '1'
|
|
this.addForm.timeType = '1'
|
|
this.addForm.timeHours = 1,
|
|
this.addForm.timeHours = 1,
|
|
this.addForm.timeDays = 1
|
|
this.addForm.timeDays = 1
|
|
- this.txselnum = this.txselnumTwo.toFixed(1)
|
|
|
|
|
|
+ this.txselnum = this.dayToHourConversion(this.txselnumTwo)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ dayToHourConversion(val) {
|
|
|
|
+ let value = +val;
|
|
|
|
+ let workHours = 8;
|
|
|
|
+ let result = value * workHours;
|
|
|
|
+ return result.toFixed(1);
|
|
|
|
+ },
|
|
// 计算日期
|
|
// 计算日期
|
|
datas() {
|
|
datas() {
|
|
// this.addForm.timeDays = this.DateDiff(this.addForm.startDate, this.addForm.endDate)
|
|
// this.addForm.timeDays = this.DateDiff(this.addForm.startDate, this.addForm.endDate)
|