Browse Source

修改发料任务显示问题

intex
lijuncheng 2 days ago
parent
commit
6cbb7586ad
  1. 3
      src/common/detail.js
  2. 7
      src/pages/issue/job/issueDetailBatch.vue

3
src/common/detail.js

@ -84,6 +84,9 @@ export function getThreeDataSource(data) {
items = data.subList items = data.subList
return items; return items;
} }
export function getDataSource(subList) { export function getDataSource(subList) {
let items = []; let items = [];
subList.forEach(detail => { subList.forEach(detail => {

7
src/pages/issue/job/issueDetailBatch.vue

@ -66,10 +66,6 @@
compareAsc, compareAsc,
} from '@/common/basic.js'; } from '@/common/basic.js';
import {
getDataSource
} from '@/pages/issue/js/issue.js';
import { import {
getManagementPrecisions getManagementPrecisions
} from '@/common/balance.js'; } from '@/common/balance.js';
@ -79,6 +75,7 @@
import { import {
getDataSourceBatch,
getTreeDataSource, getTreeDataSource,
calcTreeHandleQty, calcTreeHandleQty,
getScanCount, getScanCount,
@ -221,7 +218,7 @@
that.jobContent = res.data; that.jobContent = res.data;
that.jobStatus = res.data.status that.jobStatus = res.data.status
that.subList = res.data.subList; that.subList = res.data.subList;
that.detailSource = getThreeDataSource(that.jobContent) that.detailSource = getDataSourceBatch(that.subList)
that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode
that.toLocationCode= res.data.subList[0].toLocationCode that.toLocationCode= res.data.subList[0].toLocationCode
that.fromLocationCode = that.subList[0].fromLocationCode that.fromLocationCode = that.subList[0].fromLocationCode

Loading…
Cancel
Save