Переглянути джерело

人员工时统计表工时截取小数点后一位

Lijy 2 роки тому
батько
коміт
93791c0d07

+ 3 - 3
fhKeeper/formulahousekeeper/timesheet/src/views/corpreport/list.vue

@@ -472,18 +472,18 @@
                 <el-table-column prop="planHours" label="计划工时" min-width="200" align="center">
                   <template slot-scope="scope">
                     <div v-if="scope.row.planHours">
-                      {{scope.row.planHours}}h
+                      {{scope.row.planHours == null ? 0 : scope.row.planHours.toFixed(1)}}h
                     </div>
                   </template>
                 </el-table-column>
                 <el-table-column prop="workingTime" label="实际工时" min-width="200" align="center">
                   <template slot-scope="scope">
                     <div v-if="scope.row.workingTime">
-                      {{scope.row.workingTime}}h
+                      {{scope.row.workingTime == null ? 0 : scope.row.workingTime.toFixed(1)}}h
                     </div>
                   </template>
                 </el-table-column>
-                <el-table-column prop="proportion" label="实际占比" min-width="200" align="center"></el-table-column>
+                <el-table-column prop="proportion" label="实际用时占比" min-width="200" align="center"></el-table-column>
             </el-table>