|
@@ -243,7 +243,7 @@
|
|
<template >
|
|
<template >
|
|
<div>
|
|
<div>
|
|
<span>用时占比</span>
|
|
<span>用时占比</span>
|
|
- <van-slider :disabled="!item.canEdit" :min="5" :step="5" style="width:120px;display:inline-block;margin-left:50px;" v-model="item.progress" :value="100" @change="item.workingTime = (reportTimeType.allday*item.progress/100).toFixed(1)" >
|
|
|
|
|
|
+ <van-slider :disabled="!item.canEdit" :min="5" :step="5" style="width:120px;display:inline-block;margin-left:50px;" v-model="item.progress" :value="100" @change="item.workingTime = (reportTimeType.allday*item.progress/100).toFixed(1), setTotalReportHours()" >
|
|
<template #button>
|
|
<template #button>
|
|
<div class="custom-button">{{ item.progress }}%</div>
|
|
<div class="custom-button">{{ item.progress }}%</div>
|
|
</template>
|
|
</template>
|
|
@@ -1059,7 +1059,8 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
this.form.domains[this.clickTimeIndex].overtimeHours = allhour - this.user.timeType.allday
|
|
this.form.domains[this.clickTimeIndex].overtimeHours = allhour - this.user.timeType.allday
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ this.setTotalReportHours()
|
|
},
|
|
},
|
|
clickTimePicker(i,item) {
|
|
clickTimePicker(i,item) {
|
|
if (!item.canEdit) {
|
|
if (!item.canEdit) {
|
|
@@ -1338,6 +1339,8 @@ import timetoolVue from '../timetool/timetool.vue';
|
|
this.form.domains[0].basecostName = this.report.timeBasecostList[0].name;
|
|
this.form.domains[0].basecostName = this.report.timeBasecostList[0].name;
|
|
}
|
|
}
|
|
this.canEdit = true;
|
|
this.canEdit = true;
|
|
|
|
+
|
|
|
|
+ this.setTotalReportHours()
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|