|
|
@@ -72,7 +72,7 @@
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, onUnmounted, ref } from 'vue'
|
|
|
-import { getHeader, goBack, playVoiceBin, scanError, scanSuccess } from '@/utils/android'
|
|
|
+import { androidFocus, getHeader, goBack, playVoiceBin, scanError, scanSuccess } from '@/utils/android'
|
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
|
import { useStore } from '@/store/modules/user'
|
|
|
import { showNotify } from 'vant'
|
|
|
@@ -82,10 +82,9 @@ import Box from '@/views/haikang/putaway/components/Box.vue'
|
|
|
import GoBack from '@/views/haikang/putaway/components/GoBack.vue'
|
|
|
import { boxReturn, getShelveItemInfo, outboundEmptyBoxAndBindTask, setBoxInboundInventory } from '@/api/haikang'
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
-const store = useStore()
|
|
|
-const warehouse = store.warehouse
|
|
|
try {
|
|
|
getHeader()
|
|
|
+ androidFocus()
|
|
|
} catch (error) {
|
|
|
}
|
|
|
// 页面初始化
|
|
|
@@ -94,7 +93,8 @@ onMounted(() => {
|
|
|
scanInit(_handlerScan)
|
|
|
loadData()
|
|
|
})
|
|
|
-
|
|
|
+const store = useStore()
|
|
|
+const warehouse = store.warehouse
|
|
|
const dataList=ref([])
|
|
|
|
|
|
//料箱编号
|
|
|
@@ -338,8 +338,8 @@ const setGoBack=async (item)=>{
|
|
|
const res= await _setBoxInboundInventory()
|
|
|
if(res){
|
|
|
if(item.active==1){
|
|
|
- const {warehouse,container,boxCode}=barcodeActive.value
|
|
|
- const boxRes= await boxReturn({warehouse,container,boxCode})
|
|
|
+ const {warehouse,container,boxCode,asnCode}=barcodeActive.value
|
|
|
+ const boxRes= await boxReturn({warehouse,container,boxCode,externalCode:asnCode})
|
|
|
if(boxRes){
|
|
|
reset()
|
|
|
barcodeActive.value={}
|
|
|
@@ -352,8 +352,8 @@ const setGoBack=async (item)=>{
|
|
|
scanSuccess()
|
|
|
}
|
|
|
}else if(item.active==2){
|
|
|
- const {warehouse,container,boxCode,lotNum}=barcodeActive.value
|
|
|
- const boxRes= await outboundEmptyBoxAndBindTask({warehouse,container,originalBoxCode:boxCode,lotNum,boxType:item.bin,boxEmpty:item.boxEmpty}).catch((err=>{
|
|
|
+ const {warehouse,container,boxCode,lotNum,asnCode}=barcodeActive.value
|
|
|
+ const boxRes= await outboundEmptyBoxAndBindTask({warehouse,container,originalBoxCode:boxCode,lotNum,boxType:item.bin,boxEmpty:item.boxEmpty,externalCode:asnCode}).catch((err=>{
|
|
|
reset()
|
|
|
barcodeActive.value={}
|
|
|
workBinNo.value=''
|