修改发泡线生产统计数据表格

master
夜笙歌 2 years ago committed by Gitee
parent b473f47ba0
commit f9d9afb223
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -503,13 +503,13 @@
let dataInit = []
let dataRes = []
data.forEach(e => {
if (!Object.keys(name).includes(e.orderType)) {
name[e.orderType] = [e.deviceID]
if (!Object.keys(name).includes(e.deviceID)) {
name[e.deviceID] = [e.orderType]
} else {
let arr = name[e.orderType]
if (!arr.includes(e.deviceID)) {
arr.push(e.deviceID)
name[e.orderType] = arr
let arr = name[e.deviceID]
if (!arr.includes(e.orderType)) {
arr.push(e.orderType)
name[e.deviceID] = arr
}
}
})
@ -517,7 +517,7 @@
name[e].forEach(val => {
let arr = []
data.forEach(item => {
if (item.orderType === e && item.deviceID === val) {
if (item.deviceID === e && item.orderType === val) {
arr.push(item)
}
})

Loading…
Cancel
Save