This commit is contained in:
liushuai
2020-04-09 18:35:58 +08:00
parent dc0b9cc5d9
commit 476a105bda
18 changed files with 408 additions and 443 deletions

View File

@@ -210,7 +210,7 @@ export default {
this.check ? check2 = 1 : check2 = 0
searchTable(check2, this.startTime[0], this.startTime[1], this.orderName, this.order, check, this.name, check1, this.partNumber, this.pageCurrent, this.pageSize).then(response => {
response.data.rows.map(v => {
this.$set(v, '工时比值', parseInt(v.计划工时) === 0 ? 0 : (Math.round(parseInt(v.完成工时) / parseInt(v.计划工时) * 100) / 100.00))
this.$set(v, '工时比值', parseInt(v.计划工时) === 0 ? 0 : (Math.round((parseInt(v.完成工时) + parseInt(v.修补工时)) / parseInt(v.计划工时) * 100) / 100.00))
})
this.tableData = response.data.rows
this.total = response.data.total