Forráskód Böngészése

提交日报的问题

Lijy 2 éve
szülő
commit
f526524d29

+ 5 - 2
fhKeeper/formulahousekeeper/timesheet_h5/src/views/edit/index.vue

@@ -243,7 +243,7 @@
                         <template >
                             <div>
                         <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>
                             <div class="custom-button">{{ item.progress }}%</div>
                         </template>
@@ -1059,7 +1059,8 @@ import timetoolVue from '../timetool/timetool.vue';
                         this.form.domains[this.clickTimeIndex].overtimeHours = allhour - this.user.timeType.allday
                     }
                 }
-      
+
+                this.setTotalReportHours()
             },
             clickTimePicker(i,item) {
                 if (!item.canEdit) {
@@ -1338,6 +1339,8 @@ import timetoolVue from '../timetool/timetool.vue';
                                 this.form.domains[0].basecostName = this.report.timeBasecostList[0].name;
                             }
                             this.canEdit = true;
+
+                            this.setTotalReportHours()
                         }
                     } else {
                         this.$toast.clear();