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