|
|
@@ -61,7 +61,7 @@ import {
|
|
|
asrsBoxAndStationUnbindTask,
|
|
|
boxAndStationUnbindTask, createAsrsPalletInbound,
|
|
|
createAsrsShelfInbound,
|
|
|
- createHikBoxInboundTask
|
|
|
+ createHikBoxInboundTask, getAsrsHeight
|
|
|
} from '@/api/haikang'
|
|
|
import { useStore } from '@/store/modules/user'
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
@@ -112,11 +112,6 @@ const _handlerScan = (code) => {
|
|
|
}
|
|
|
}
|
|
|
const onActive=(type)=>{
|
|
|
- // if(type==2 && mode.value=='asrs'){
|
|
|
- // scanType.value=2
|
|
|
- // }else{
|
|
|
- // scanType.value=1
|
|
|
- // }
|
|
|
}
|
|
|
const onConfirm=()=>{
|
|
|
if(!scanBox.value ){
|
|
|
@@ -166,6 +161,13 @@ const _createHikBoxInboundTask=()=>{
|
|
|
palletCode: scanBox.value
|
|
|
};
|
|
|
url = createAsrsPalletInbound;
|
|
|
+ }else if (scanBox.value.startsWith('HK')) {
|
|
|
+ data = {
|
|
|
+ ...baseData,
|
|
|
+ deviceType:'HIK_INBOUND_STATION',
|
|
|
+ boxCode:scanBox.value,
|
|
|
+ };
|
|
|
+ url = createHikBoxInboundTask;
|
|
|
}
|
|
|
showLoading()
|
|
|
url(data).then(res=>{
|
|
|
@@ -175,6 +177,9 @@ const _createHikBoxInboundTask=()=>{
|
|
|
scanStation.value=''
|
|
|
showNotify({ type: 'success', duration: 3000, message:'料箱入库成功,请继续扫描需要入库料箱' })
|
|
|
scanSuccess()
|
|
|
+ if(mode.value=='asrs'){
|
|
|
+ getAsrsHeight().then(res=>{}).catch()
|
|
|
+ }
|
|
|
}).catch(err=>{
|
|
|
tips.value=err.message
|
|
|
scanStation.value=''
|