|
@@ -110,7 +110,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { computed, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
|
|
|
|
+import { computed, defineAsyncComponent, nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
import { showConfirmDialog, showDialog, showFailToast, showToast } from 'vant'
|
|
import { showConfirmDialog, showDialog, showFailToast, showToast } from 'vant'
|
|
|
import { fetchPickingData, getPickingTask } from '@/views/outbound/picking/list/hooks/list'
|
|
import { fetchPickingData, getPickingTask } from '@/views/outbound/picking/list/hooks/list'
|
|
|
import { getOwnerList } from '@/hooks/basic'
|
|
import { getOwnerList } from '@/hooks/basic'
|
|
@@ -118,23 +118,23 @@ import { useRouter,useRoute } from 'vue-router'
|
|
|
import { getListCombineSku, setPickingDetail } from '@/api/picking'
|
|
import { getListCombineSku, setPickingDetail } from '@/api/picking'
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
|
-import { useStore } from '@/store/modules/user'
|
|
|
|
|
const store = useStore()
|
|
const store = useStore()
|
|
|
const basic = basicStore()
|
|
const basic = basicStore()
|
|
|
|
|
+import { useStore } from '@/store/modules/user'
|
|
|
import { goBack, getHeader, playVoicePickNum, scanError, scanSuccess } from '@/utils/android'
|
|
import { goBack, getHeader, playVoicePickNum, scanError, scanSuccess } from '@/utils/android'
|
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
|
-import PickingNoInput from '@/views/outbound/components/PickingNoInput.vue'
|
|
|
|
|
-import ContainerNoInput from '@/views/outbound/components/ContainerNoInput.vue'
|
|
|
|
|
-import BarcodeCombine from '@/views/outbound/components/BarcodeCombine.vue'
|
|
|
|
|
|
|
+import BarcodeCombine from '@/views/outbound/picking/components/BarcodeCombine.vue'
|
|
|
|
|
+const PickingNoInput = defineAsyncComponent(() => import('@/views/outbound/picking/components/PickingNoInput.vue'))
|
|
|
|
|
+const ContainerNoInput = defineAsyncComponent(() => import('@/views/outbound/picking/components/ContainerNoInput.vue'))
|
|
|
|
|
+const InputBarcode = defineAsyncComponent(() => import('@/views/outbound/picking/components/InputBarcode.vue'))
|
|
|
|
|
+const LotAtt = defineAsyncComponent(() => import('@/views/outbound/picking/components/LotAtt.vue'))
|
|
|
|
|
+import { barcodeCombine } from '@/views/outbound/picking/list/hooks/barcodeCombine'
|
|
|
import { formatDateTime } from '@/utils/date'
|
|
import { formatDateTime } from '@/utils/date'
|
|
|
import { isLot } from '@/views/outbound/picking/list/hooks/lotNum'
|
|
import { isLot } from '@/views/outbound/picking/list/hooks/lotNum'
|
|
|
import { barcodeToUpperCase, toMap } from '@/utils/dataType'
|
|
import { barcodeToUpperCase, toMap } from '@/utils/dataType'
|
|
|
import { containerDef } from '@/views/outbound/picking/list/hooks/containerDef'
|
|
import { containerDef } from '@/views/outbound/picking/list/hooks/containerDef'
|
|
|
import { getCarrierList } from '@/hooks/basic/carrier'
|
|
import { getCarrierList } from '@/hooks/basic/carrier'
|
|
|
import { basicStore } from '@/store/modules/basic'
|
|
import { basicStore } from '@/store/modules/basic'
|
|
|
-import InputBarcode from '@/views/outbound/components/InputBarcode.vue'
|
|
|
|
|
-import LotAtt from '@/views/outbound/components/lotAtt.vue'
|
|
|
|
|
-import { barcodeCombine } from '@/views/outbound/picking/list/hooks/barcodeCombine'
|
|
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
|
closeListener()
|
|
closeListener()
|
|
@@ -374,7 +374,6 @@ const _handlerScan=(code)=> {
|
|
|
if(res.data.length>0){
|
|
if(res.data.length>0){
|
|
|
const combineSkuMap=toMap(res.data,'barcode')
|
|
const combineSkuMap=toMap(res.data,'barcode')
|
|
|
const matchedSkuList=barcodeCombine(modelLocative.list,combineSkuMap)
|
|
const matchedSkuList=barcodeCombine(modelLocative.list,combineSkuMap)
|
|
|
- console.log(matchedSkuList,"matchedSkuList")
|
|
|
|
|
if(matchedSkuList.length>0){
|
|
if(matchedSkuList.length>0){
|
|
|
if(matchedSkuList.length==res.data.length){
|
|
if(matchedSkuList.length==res.data.length){
|
|
|
matchedSku.value=matchedSkuList
|
|
matchedSku.value=matchedSkuList
|
|
@@ -383,7 +382,7 @@ const _handlerScan=(code)=> {
|
|
|
scanError()
|
|
scanError()
|
|
|
showDialog({
|
|
showDialog({
|
|
|
title:'温馨提示',
|
|
title:'温馨提示',
|
|
|
- message:'组合商品与拣货任务匹配,请检查组合商品配置!'
|
|
|
|
|
|
|
+ message:'组合商品与拣货任务不匹配,请检查组合商品配置!'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}else {
|
|
}else {
|