|
|
@@ -7,8 +7,7 @@
|
|
|
<div style="color: #fff">返回</div>
|
|
|
</template>
|
|
|
<template #right>
|
|
|
-<!-- {{Object.keys(dataMap).length}}-->
|
|
|
-<!-- <div class="nav-right" @click="onClickRight">提交任务</div>-->
|
|
|
+ <div class="nav-right" style="color: #fff" @click="onClickRight">释放分拨墙</div>
|
|
|
</template>
|
|
|
</van-nav-bar>
|
|
|
<div class="allocation">
|
|
|
@@ -109,12 +108,12 @@
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, onUnmounted, ref } from 'vue'
|
|
|
-import { showNotify, showToast } from 'vant'
|
|
|
+import { showConfirmDialog, showNotify, showToast } from 'vant'
|
|
|
import { androidFocus, getHeader, goBack, playVoiceBin, scanError, scanSuccess } from '@/utils/android'
|
|
|
import InputBarcode from '@/views/outbound/picking/components/InputBarcode.vue'
|
|
|
import { closeListener, openListener, scanInit } from '@/utils/keydownListener'
|
|
|
import { useStore } from '@/store/modules/user'
|
|
|
-import { getRecommendedLocation, getWaitPutawayList, setBindAllocateWall } from '@/api/haikang'
|
|
|
+import { finishTask, getRecommendedLocation, getWaitPutawayList, setBindAllocateWall } from '@/api/haikang'
|
|
|
import { barcodeToUpperCase } from '@/utils/dataType'
|
|
|
import { closeLoading, showLoading } from '@/utils/loading'
|
|
|
try {
|
|
|
@@ -343,9 +342,24 @@ onUnmounted(() => {
|
|
|
|
|
|
window.onRefresh = loadData
|
|
|
|
|
|
-//调用上架任务
|
|
|
+//删除分拨
|
|
|
const onClickRight = () => {
|
|
|
- console.log('right')
|
|
|
+ showConfirmDialog({
|
|
|
+ title: '温馨提示',
|
|
|
+ message:'您正在进行释放分拨墙是否继续?',
|
|
|
+ keyboardEnabled:false
|
|
|
+ }).then(() => {
|
|
|
+ showLoading()
|
|
|
+ const params={warehouse,container:containerNo.value}
|
|
|
+ finishTask(params).then(res=>{
|
|
|
+ showNotify({ type: 'success', duration: 3000, message: `解绑成功` })
|
|
|
+ scanSuccess()
|
|
|
+ }).catch(err=>{
|
|
|
+ scanError()
|
|
|
+ }).finally(() => {
|
|
|
+ closeLoading()
|
|
|
+ })
|
|
|
+ }).catch(() => {})
|
|
|
}
|
|
|
</script>
|
|
|
<style scoped lang="sass">
|