|
|
@ -39,7 +39,7 @@ import { ref, getCurrentInstance, nextTick, watch } from 'vue' |
|
|
|
import { onLoad, onShow, onNavigationBarButtonTap, onReady, onBackPress, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' |
|
|
|
import { takeRepleinshJob, cancleTakeRepleinshJob, getRepleinshJobDetail, repleinshJobSubmit } from '@/api/request2.js' |
|
|
|
|
|
|
|
import { goHome, navigateBack, getRemoveOption, getCurrDateTime, getDirectoryItemArray, getPackingNumberAndBatch } from '@/common/basic.js' |
|
|
|
import { goHome, navigateBack, getRemoveOption, getCurrDateTime, getDirectoryItemArray, getPackingNumberAndBatch, deepCopyData } from '@/common/basic.js' |
|
|
|
|
|
|
|
import { getDataSource } from '@/pages/issue/js/issue.js' |
|
|
|
|
|
|
@ -209,13 +209,7 @@ const submit = () => { |
|
|
|
|
|
|
|
const setSubmitParamsAndSubmit = () => { |
|
|
|
// 目前任务只到一个库位 |
|
|
|
const itemCodes = [] |
|
|
|
const locationCode = toLocationCode.value |
|
|
|
detailSource.value.forEach((toLocation) => { |
|
|
|
toLocation.Items.forEach((item) => { |
|
|
|
itemCodes.push(item.itemCode) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
submitJob() |
|
|
|
// // 使用在途库,不查询管理模式 |
|
|
|
// if (jobContent.value.useOnTheWayLocation == 'TRUE') { |
|
|
@ -273,29 +267,23 @@ const setParams = () => { |
|
|
|
// record.fromPackingNumber = r |
|
|
|
// .packingNumber; |
|
|
|
record.fromBatch = r.batch |
|
|
|
record.fromContainerNumber = r.ContainerNumber |
|
|
|
record.fromContainerNumber = r.containerNumber |
|
|
|
|
|
|
|
record.toContainerNumber = r.ContainerNumber |
|
|
|
record.toContainerNumber = r.containerNumber |
|
|
|
record.toInventoryStatus = r.inventoryStatus |
|
|
|
record.toLocationCode = toLocationCode.value |
|
|
|
console.log(`提交${toLocationCode.value}`) |
|
|
|
record.supplierCode = r.supplierCode |
|
|
|
record.fromParentPackingNumber = r.parentPackingNumber |
|
|
|
|
|
|
|
if (r.parentPackingNumber != '' && r.parentPackingNumber != null) { |
|
|
|
record.fromPackingNumber = r.parentPackingNumber |
|
|
|
record.toPackingNumber = r.packingNumber |
|
|
|
// record.fromPackUnit = r.packUnit; |
|
|
|
record.toPackUnit = r.packUnit |
|
|
|
} else { |
|
|
|
record.fromPackingNumber = r.packingNumber |
|
|
|
record.toPackingNumber = r.packingNumber |
|
|
|
record.toPackUnit = r.packUnit |
|
|
|
} |
|
|
|
record.toBatch = r.batch |
|
|
|
|
|
|
|
subItem.recordList.push(record) |
|
|
|
}) |
|
|
|
commitSubList.push(subItem) |
|
|
|
commitSubList.push(deepCopyData(subItem)) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|