| | |
| | | <el-radio-button label="ValueTable1"> 产量工时 </el-radio-button> |
| | | </el-radio-group> |
| | | <div style="display: flex; align-items: center"> |
| | | <p style="font-size: 14px; margin-right: 30px"> |
| | | 总工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{ |
| | | totalInfo["产量工时汇总"] + totalInfo["辅助工时汇总"] |
| | | ? Number( |
| | | totalInfo["产量工时汇总"] + totalInfo["辅助工时汇总"] |
| | | ).tofixed(4) |
| | | : 0 |
| | | }}</span> 产量工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{ |
| | | totalInfo["产量工时汇总"] |
| | | ? Number(totalInfo["产量工时汇总"]).tofixed(4) |
| | | : 0 |
| | | }}</span> 辅助工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{ |
| | | totalInfo["辅助工时汇总"] |
| | | ? Number(totalInfo["辅助工时汇总"]).tofixed(4) |
| | | : 0 |
| | | }}</span> |
| | | </p> |
| | | <!-- <p style="font-size: 14px; margin-right: 30px">--> |
| | | <!-- 总工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{--> |
| | | <!-- totalInfo["产量工时汇总"] + totalInfo["辅助工时汇总"]--> |
| | | <!-- ? Number(--> |
| | | <!-- totalInfo["产量工时汇总"] + totalInfo["辅助工时汇总"]--> |
| | | <!-- ).tofixed(4)--> |
| | | <!-- : 0--> |
| | | <!-- }}</span> 产量工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{--> |
| | | <!-- totalInfo["产量工时汇总"]--> |
| | | <!-- ? Number(totalInfo["产量工时汇总"]).tofixed(4)--> |
| | | <!-- : 0--> |
| | | <!-- }}</span> 辅助工时汇总:<span v-if="totalInfo" style="font-size: 16px; color: #3a7bfa">{{--> |
| | | <!-- totalInfo["辅助工时汇总"]--> |
| | | <!-- ? Number(totalInfo["辅助工时汇总"]).tofixed(4)--> |
| | | <!-- : 0--> |
| | | <!-- }}</span>--> |
| | | <!-- </p>--> |
| | | <el-button v-show="currentTable == 'ValueTable0' && |
| | | checkPermi(['performance:manHour:workTimeManagement:add']) |
| | | " size="small" type="primary" @click="openAdd">录入数据</el-button> |
| | |
| | | }, |
| | | mounted() { |
| | | this.getCurrentWeekNumber(); |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | this.selectshiftByUser(); |
| | | this.searchList() |
| | | }, |
| | |
| | | this.page0.current = 1; |
| | | this.getList0(entity); |
| | | } |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | }, |
| | | refresh() { |
| | | this.entity = {}; |
| | |
| | | this.formData.auxiliaryProject = ""; |
| | | this.addVisible = false; |
| | | this.refreshTable("page"); |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | }); |
| | | } else { |
| | | updateAuxiliaryWorkingHoursDay(this.formData).then((res) => { |
| | |
| | | this.formData.nonproductiveTime = ""; |
| | | this.formData.auxiliaryProject = ""; |
| | | this.refreshTable("page"); |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | submitBatchCheckDialog() { |
| | | this.batchCheckDialog = false; |
| | | this.refreshTable("page"); |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | }, |
| | | submitCheck(e) { |
| | | if (!this.formData0.number) { |
| | |
| | | this.$message.success("操作成功"); |
| | | this.checkVisible = false; |
| | | this.refreshTable("page"); |
| | | this.collectWorkingHours(); |
| | | // this.collectWorkingHours(); |
| | | }); |
| | | }, |
| | | getCurrentWeekNumber(now = new Date()) { |