|
|
@ -39,7 +39,7 @@ |
|
|
|
import { ref, getCurrentInstance, nextTick } from 'vue' |
|
|
|
import { onLoad, onNavigationBarButtonTap, onReady, onReachBottom, onPullDownRefresh } from '@dcloudio/uni-app' |
|
|
|
import { productPutawayRecordSubmit } from '@/api/request2.js' |
|
|
|
import { goHome, getPackingNumberAndBatchByList, deepCopyData } from '@/common/basic.js' |
|
|
|
import { goHome, getPackingNumberAndBatchByList, deepCopyData, updateTitle } from '@/common/basic.js' |
|
|
|
import { getPrecisionStrategyList } from '@/common/balance.js' |
|
|
|
|
|
|
|
import { getInventoryStatusDesc, getDirectoryItemArray } from '@/common/directory.js' |
|
|
@ -55,6 +55,7 @@ import winScanLocation from '@/mycomponents/scan/winScanLocation.vue' |
|
|
|
import winScanPackAndLocation from '@/mycomponents/scan/winScanPackAndLocation.vue' |
|
|
|
import recordComDetailCard from '@/mycomponents/record/recordComDetailCard.vue' |
|
|
|
import { useCountStore } from '@/store' |
|
|
|
|
|
|
|
// 获取自定义的store |
|
|
|
const store = useCountStore() |
|
|
|
const { proxy } = getCurrentInstance() |
|
|
@ -74,10 +75,16 @@ const managementList = ref([]) |
|
|
|
const scanLocationCode = ref() |
|
|
|
const scanPopup = ref() |
|
|
|
const comMessageRef = ref() |
|
|
|
const type = ref('') |
|
|
|
onLoad((option) => { |
|
|
|
type.value = option.type |
|
|
|
if (type.value == 'predict') { |
|
|
|
updateTitle('制品上架记录') |
|
|
|
} else if (type.value == 'assemble') { |
|
|
|
updateTitle('装配上架记录') |
|
|
|
} |
|
|
|
const typeCode = 'ProductPutaway' |
|
|
|
getBusinessType(typeCode, (res) => { |
|
|
|
console.log(111, res) |
|
|
|
if (res.success) { |
|
|
|
businessType.value = res.businessType |
|
|
|
fromLocationAreaTypeList.value = res.fromLocationAreaTypeList |
|
|
@ -270,6 +277,7 @@ const setParams = () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
dataContent.value.subList = subList |
|
|
|
dataContent.value.type = type.value |
|
|
|
dataContent.value.creator = creator |
|
|
|
return dataContent.value |
|
|
|
} |
|
|
|