diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue index cd62dc84..ba8443a5 100644 --- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue +++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue @@ -12,7 +12,7 @@ style="width:250px;margin-left: 5px;margin-top: 10px;margin-bottom: 10px" start-placeholder="开始日期" end-placeholder="结束日期"/> - 查询 + 查询 导出 @@ -82,7 +82,7 @@ {{ scope.row.操作时间 }} - + @@ -122,7 +122,7 @@ {{ scope.row.设计者 }} - + @@ -189,9 +189,10 @@ export default { this.loading = true searchTable(this.startTime[0], this.startTime[1], this.orderName, this.order, this.pageCurrent, this.pageSize).then(response => { response.data.rows.map(v => { - this.$set(v, '工时比值', v.计划工时 === 0 ? 0 : Math.round(v.扫码工时 / v.计划工时 * 100) / 100.00) + this.$set(v, '工时比值', parseInt(v.计划工时) === 0 ? 0 : (Math.round(parseInt(v.扫码工时) / parseInt(v.计划工时) * 100) / 100.00)) }) this.tableData = response.data.rows + console.log(this.tableData) this.total = response.data.total this.loading = false })