diff --git a/src/common/detail.js b/src/common/detail.js index ad26df7b..59722ec2 100644 --- a/src/common/detail.js +++ b/src/common/detail.js @@ -84,6 +84,9 @@ export function getThreeDataSource(data) { items = data.subList return items; } + + + export function getDataSource(subList) { let items = []; subList.forEach(detail => { diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue index f3aade3f..ddcc65ea 100644 --- a/src/pages/issue/job/issueDetailBatch.vue +++ b/src/pages/issue/job/issueDetailBatch.vue @@ -66,10 +66,6 @@ compareAsc, } from '@/common/basic.js'; - import { - getDataSource - } from '@/pages/issue/js/issue.js'; - import { getManagementPrecisions } from '@/common/balance.js'; @@ -79,6 +75,7 @@ import { + getDataSourceBatch, getTreeDataSource, calcTreeHandleQty, getScanCount, @@ -221,7 +218,7 @@ that.jobContent = res.data; that.jobStatus = res.data.status that.subList = res.data.subList; - that.detailSource = getThreeDataSource(that.jobContent) + that.detailSource = getDataSourceBatch(that.subList) that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode that.toLocationCode= res.data.subList[0].toLocationCode that.fromLocationCode = that.subList[0].fromLocationCode