|
@@ -340,7 +340,7 @@
|
|
@change="iptChang()">
|
|
@change="iptChang()">
|
|
</el-time-picker>
|
|
</el-time-picker>
|
|
</span>
|
|
</span>
|
|
- <div class="overtime" v-if="user.timeType.fillOvertime || isWeekend">
|
|
|
|
|
|
+ <div class="overtime" v-if="user.timeType.fillOvertime || (isWeekend && user.timeType.lockWorktime != 1)">
|
|
<el-checkbox :disabled="!domain.canEdit" v-model="domain.isOvertime">{{$t('other.IncludingOvertime')}}</el-checkbox>
|
|
<el-checkbox :disabled="!domain.canEdit" v-model="domain.isOvertime">{{$t('other.IncludingOvertime')}}</el-checkbox>
|
|
<el-input :disabled="!domain.canEdit || domain.isOvertime==null || domain.isOvertime==0 || !domain.isOvertime" v-model="domain.overtimeHours" @blur="triggerCalculateOT(index)" @input="domain.overtimeHours=domain.overtimeHours.replace(/[^\d.]/g,'')" style="width: 100px;"></el-input><span style="margin-left:5px">{{$t('time.hour')}}</span>
|
|
<el-input :disabled="!domain.canEdit || domain.isOvertime==null || domain.isOvertime==0 || !domain.isOvertime" v-model="domain.overtimeHours" @blur="triggerCalculateOT(index)" @input="domain.overtimeHours=domain.overtimeHours.replace(/[^\d.]/g,'')" style="width: 100px;"></el-input><span style="margin-left:5px">{{$t('time.hour')}}</span>
|
|
</div>
|
|
</div>
|
|
@@ -354,7 +354,7 @@
|
|
<!-- <el-option v-for="item in projectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName" :value="item.id"></el-option> -->
|
|
<!-- <el-option v-for="item in projectList" :disabled="item.status>=2" :key="item.id" :label="item.projectName" :value="item.id"></el-option> -->
|
|
<el-option v-for="item in fillProjectList" :disabled="item.status!=1 && item.status!=4" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
<el-option v-for="item in fillProjectList" :disabled="item.status!=1 && item.status!=4" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
- <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
|
|
|
+ <span style="float: right;">{{ item.projectName }}</span>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
@@ -463,7 +463,7 @@
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" popper-class="projectSelectPopperClass">
|
|
:disabled="workForm.domains.length==0?true:(workForm.domains[index].state>=2?false:true)" popper-class="projectSelectPopperClass">
|
|
<el-option v-for="item in fillProjectList" :disabled="item.status!=1 && item.status!=4" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
<el-option v-for="item in fillProjectList" :disabled="item.status!=1 && item.status!=4" :key="item.id" :label="item.projectName + '\u3000' + item.projectCode" :value="item.id">
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
<span style="float: left; color: #8492a6; font-size: 13px;">{{ item.projectCode }}</span>
|
|
- <span style="float: right;margin-left: 20px">{{ item.projectName }}</span>
|
|
|
|
|
|
+ <span style="float: right;">{{ item.projectName }}</span>
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
<template v-if="user.timeType.mainProjectState != 1">
|
|
@@ -482,7 +482,7 @@
|
|
<i class="fa fa-trash" style="color: red;;font-size:18px;"></i>
|
|
<i class="fa fa-trash" style="color: red;;font-size:18px;"></i>
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
- <div class="overtime" v-if="user.timeType.fillOvertime || isWeekend"><el-checkbox :disabled="!domain.canEdit" v-model="domain.isOvertime">{{$t('other.IncludingOvertime')}}</el-checkbox>
|
|
|
|
|
|
+ <div class="overtime" v-if="user.timeType.fillOvertime"><el-checkbox :disabled="!domain.canEdit" v-model="domain.isOvertime">{{$t('other.IncludingOvertime')}}</el-checkbox>
|
|
<el-input :disabled="!domain.canEdit || domain.isOvertime==null || domain.isOvertime==0 || !domain.isOvertime" v-model="domain.overtimeHours" @blur="triggerCalculateOT(index)" @input="domain.overtimeHours=domain.overtimeHours.replace(/[^\d.]/g,'')" style="width: 100px;"></el-input><span style="margin-left:5px">{{$t('time.hour')}}</span>
|
|
<el-input :disabled="!domain.canEdit || domain.isOvertime==null || domain.isOvertime==0 || !domain.isOvertime" v-model="domain.overtimeHours" @blur="triggerCalculateOT(index)" @input="domain.overtimeHours=domain.overtimeHours.replace(/[^\d.]/g,'')" style="width: 100px;"></el-input><span style="margin-left:5px">{{$t('time.hour')}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -4000,7 +4000,7 @@
|
|
userNames:null,
|
|
userNames:null,
|
|
time: this.report.time
|
|
time: this.report.time
|
|
}
|
|
}
|
|
- if(this.isWeekend){
|
|
|
|
|
|
+ if(this.isWeekend && this.user.timeType.lockWorktime != 1){
|
|
this.$set(this.workForm.domains[0],'isOvertime',true)
|
|
this.$set(this.workForm.domains[0],'isOvertime',true)
|
|
if(this.reportTimeType.type != 2){
|
|
if(this.reportTimeType.type != 2){
|
|
this.$set(this.workForm.domains[0],'overtimeHours',this.reportTimeType.allday.toFixed(0))
|
|
this.$set(this.workForm.domains[0],'overtimeHours',this.reportTimeType.allday.toFixed(0))
|
|
@@ -4991,7 +4991,7 @@
|
|
canEdit: true
|
|
canEdit: true
|
|
// degreeId: '',
|
|
// degreeId: '',
|
|
};
|
|
};
|
|
- if(this.isWeekend){
|
|
|
|
|
|
+ if(this.isWeekend && this.user.timeType.lockWorktime != 1){
|
|
this.$set(addItem,'isOvertime',true)
|
|
this.$set(addItem,'isOvertime',true)
|
|
if(this.reportTimeType.type == 3){
|
|
if(this.reportTimeType.type == 3){
|
|
this.$set(addItem,'overtimeHours',(leftProgress*this.reportTimeType.allday/100).toFixed(0))
|
|
this.$set(addItem,'overtimeHours',(leftProgress*this.reportTimeType.allday/100).toFixed(0))
|
|
@@ -5755,9 +5755,9 @@
|
|
.chooseDate {
|
|
.chooseDate {
|
|
position: absolute;
|
|
position: absolute;
|
|
bottom: -3px;
|
|
bottom: -3px;
|
|
- width: 34px;
|
|
|
|
|
|
+ width: 37px;
|
|
height: 2px;
|
|
height: 2px;
|
|
- left: 12px;
|
|
|
|
|
|
+ left: 14px;
|
|
background: #20a0ff;
|
|
background: #20a0ff;
|
|
}
|
|
}
|
|
}
|
|
}
|