This commit is contained in:
liushuai
2020-01-01 20:21:48 +08:00
parent aadc7dadb4
commit cbe64d102b
3 changed files with 8 additions and 7 deletions

View File

@@ -33,9 +33,9 @@
{{ scope.row.理论加工时间段 }}
</template>
</el-table-column>
<el-table-column label="加工工时" align="center">
<el-table-column label="实际工时" align="center">
<template slot-scope="scope">
{{ scope.row.实际加工时间段 }}
{{ scope.row.设备工时 }}
</template>
</el-table-column>
<el-table-column label="比例" align="center">
@@ -175,7 +175,7 @@ export default {
}
searchtable(this.workerName_ckeck, this.workerName, this.timeCheck, this.startTime, this.endTime).then(response => {
response.data.map(v => {
this.$set(v, '比例', v.理论加工时间段 === 0 ? 0 : Math.round(v.实际加工时间段 / v.理论加工时间段 * 100) / 100.00)
this.$set(v, '比例', v.理论加工时间段 === 0 ? 0 : Math.round(v.设备工时 / v.理论加工时间段 * 100) / 100.00)
})
this.tableData = response.data
this.loading = false