|
@ -53,7 +53,7 @@ import { goHome, navigateBack, getRemoveOption, getCurrDateTime, getDirectoryIte |
|
|
|
|
|
|
|
|
import { getDataSource } from '@/pages/issue/js/issue.js' |
|
|
import { getDataSource } from '@/pages/issue/js/issue.js' |
|
|
|
|
|
|
|
|
import { getManagementPrecisions } from '@/common/balance.js' |
|
|
import { getManagementPrecisions, deepCopyData } from '@/common/balance.js' |
|
|
|
|
|
|
|
|
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue' |
|
|
import jobDetailPopup from '@/mycomponents/job/jobDetailPopup.vue' |
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
|
import winScanButton from '@/mycomponents/scan/winScanButton.vue' |
|
@ -214,6 +214,11 @@ const submit = () => { |
|
|
|
|
|
|
|
|
const submitJob = () => { |
|
|
const submitJob = () => { |
|
|
const params = setParams() |
|
|
const params = setParams() |
|
|
|
|
|
if (!params.subList || params.subList.length == 0) { |
|
|
|
|
|
uni.hideLoading() |
|
|
|
|
|
showErrorMessage('请扫描您需要提交的备货任务') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
stockUpJobsubmit(params) |
|
|
stockUpJobsubmit(params) |
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
@ -238,28 +243,30 @@ const setParams = () => { |
|
|
item.Locations.forEach((fromLocation) => { |
|
|
item.Locations.forEach((fromLocation) => { |
|
|
fromLocation.Batchs.forEach((batch) => { |
|
|
fromLocation.Batchs.forEach((batch) => { |
|
|
const subItem = batch.detail || {} |
|
|
const subItem = batch.detail || {} |
|
|
subItem.recordList = [] |
|
|
if (subItem != undefined) { |
|
|
if (batch.Records.length > 0) { |
|
|
subItem.recordList = [] |
|
|
batch.Records.forEach((r) => { |
|
|
if (batch.Records.length > 0) { |
|
|
const record = {} |
|
|
batch.Records.forEach((r) => { |
|
|
record.handleQty = r.qty |
|
|
const record = {} |
|
|
record.toContainerNumber = r.ContainerNumber |
|
|
record.handleQty = r.qty |
|
|
record.toInventoryStatus = r.inventoryStatus |
|
|
record.toContainerNumber = r.ContainerNumber |
|
|
record.toLocationCode = subItem.toLocationCode |
|
|
record.toInventoryStatus = r.inventoryStatus |
|
|
record.supplierCode = r.supplierCode |
|
|
record.toLocationCode = subItem.toLocationCode |
|
|
|
|
|
record.supplierCode = r.supplierCode |
|
|
|
|
|
|
|
|
// 使用在途库不改变管理模式 |
|
|
// 使用在途库不改变管理模式 |
|
|
if (toLocationCode.value == null) { |
|
|
if (toLocationCode.value == null) { |
|
|
record.toPackingNumber = r.packingNumber |
|
|
record.toPackingNumber = r.packingNumber |
|
|
record.toBatch = r.batch |
|
|
record.toBatch = r.batch |
|
|
} else { |
|
|
} else { |
|
|
const info = getPackingNumberAndBatch(managementList.value, r.itemCode, r.packingNumber, r.batch) |
|
|
const info = getPackingNumberAndBatch(managementList.value, r.itemCode, r.packingNumber, r.batch) |
|
|
record.toPackingNumber = info.packingNumber |
|
|
record.toPackingNumber = info.packingNumber |
|
|
record.toBatch = info.batch |
|
|
record.toBatch = info.batch |
|
|
} |
|
|
} |
|
|
subItem.recordList.push(record) |
|
|
subItem.recordList.push(record) |
|
|
}) |
|
|
}) |
|
|
subList1.push(subItem) |
|
|
subList1.push(deepCopyData(subItem)) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|