This commit is contained in:
2023-06-28 14:35:08 +08:00
parent e987418b92
commit a4c36313b9
7 changed files with 465 additions and 568 deletions

View File

@@ -185,12 +185,24 @@ export default {
async _sortingAndPackaging () {
let res = await sortingAndPackaging()
if (res.code === 200) {
this.SortingDayList = [...res.result.SortingDayList]
this.PackingAreaTaskList = [...res.result.PackingAreaTaskList]
this.HalfSupportCacheList = [...res.result.HalfSupportCacheList]
this.CPDayList = [...res.result.CPDayList]
this.setEchart1()
this.setEchart2()
if (res.result.hasOwnProperty('SortingDayList')) {
this.SortingDayList = [...res.result.SortingDayList]
if (this.SortingDayList.length) {
this.setEchart1()
}
}
if (res.result.hasOwnProperty('PackingAreaTaskList')) {
this.PackingAreaTaskList = [...res.result.PackingAreaTaskList]
}
if (res.result.hasOwnProperty('HalfSupportCacheList')) {
this.HalfSupportCacheList = [...res.result.HalfSupportCacheList]
}
if (res.result.hasOwnProperty('CPDayList')) {
this.CPDayList = [...res.result.CPDayList]
if (this.CPDayList.length) {
this.setEchart2()
}
}
}
},
setEchart1 () {