|
|
@@ -117,6 +117,7 @@ import GoBoxBack from '@/views/haikang/putaway/components/GoBoxBack.vue'
|
|
|
import { boxReturn,taskContinue, getShelveItemInfo, outboundEmptyBoxAndBindTask, setBoxInboundInventory } from '@/api/haikang'
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
import {useRoute} from "vue-router";
|
|
|
+import {releaseCustomTaskStation} from "../../../../api/haikang";
|
|
|
try {
|
|
|
getHeader()
|
|
|
androidFocus()
|
|
|
@@ -459,7 +460,7 @@ const setPutaway=async (type)=>{
|
|
|
})
|
|
|
.then(() => {
|
|
|
showLoading()
|
|
|
- const {container,asnCode,stationCode,locationId}=locationDetailList.value[0]
|
|
|
+ const {container,asnCode,stationCode,locationId,equipment}=locationDetailList.value[0]
|
|
|
const apiCall = mode.value
|
|
|
? boxReturn
|
|
|
: taskContinue
|
|
|
@@ -469,6 +470,10 @@ const setPutaway=async (type)=>{
|
|
|
apiCall(params).then(res=>{
|
|
|
closeLoading()
|
|
|
scanSuccess()
|
|
|
+ if(!mode.value && stationCode && dataList.value[0]?.remainBoxCount==1 ){
|
|
|
+ const params = {warehouse, stationCode, taskCode: equipment}
|
|
|
+ releaseCustomTaskStation(params).then(res=>{})
|
|
|
+ }
|
|
|
tips.value = `${boxLabel.value}回库成功,请继续扫描${boxLabel.value}编号`
|
|
|
showNotify({ type: 'success', duration: 3000, message: `${boxLabel.value}回库成功,请继续扫描${boxLabel.value}编号` })
|
|
|
reset()
|
|
|
@@ -493,13 +498,18 @@ const setGoBack=async (item)=>{
|
|
|
const res= await _setBoxInboundInventory()
|
|
|
if(res){
|
|
|
if(item.active==1){
|
|
|
- const {warehouse,container,boxCode,asnCode,stationCode,locationId}=barcodeActive.value
|
|
|
+ const {warehouse,container,boxCode,asnCode,stationCode,locationId,equipment}=barcodeActive.value
|
|
|
showLoading()
|
|
|
const apiCall = mode.value ? boxReturn : taskContinue
|
|
|
const params = mode.value
|
|
|
? {warehouse,container,boxCode,externalCode:asnCode,stationCode,locationId,taskType:'ASRS'}
|
|
|
: {warehouse, boxCode, stationCode, externalCode: asnCode, emptyRobot: false}
|
|
|
- const boxRes= await apiCall(params).catch(err=>{
|
|
|
+ const boxRes= await apiCall(params).then(res=>{
|
|
|
+ if(!mode.value && stationCode && dataList.value[0]?.remainBoxCount==1 ){
|
|
|
+ const params = {warehouse, stationCode, taskCode: equipment}
|
|
|
+ releaseCustomTaskStation(params).then(res=>{})
|
|
|
+ }
|
|
|
+ }).catch(err=>{
|
|
|
closeLoading()
|
|
|
})
|
|
|
closeLoading()
|