|
|
@@ -5,15 +5,17 @@
|
|
|
left-arrow
|
|
|
fixed
|
|
|
placeholder
|
|
|
- @click-left="goBack"
|
|
|
+ @click-left="onClickLeft"
|
|
|
>
|
|
|
<template #left>
|
|
|
<van-icon name="arrow-left" size="25" />
|
|
|
<div style="color: #fff" >返回</div>
|
|
|
</template>
|
|
|
<template #right>
|
|
|
- <div style="color: #fff" @click="onSelectMode({key:'picking'})">开始作业</div>
|
|
|
- <van-icon name="list-switch" size="25" @click="onClickRight" />
|
|
|
+ <div style="color: #fff;line-height: 46px " @click="onSelectMode({key:'picking'})">开始作业</div>
|
|
|
+ <div style="padding:14px 0 12px 2px" @click="onClickRight" >
|
|
|
+ <van-icon name="list-switch" size="25" />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</van-nav-bar>
|
|
|
<!-- <van-pull-refresh v-model="loading" @refresh="onRefresh" style="min-height: 93.1vh;">-->
|
|
|
@@ -42,7 +44,7 @@
|
|
|
v-for="(location,index) in locationList"
|
|
|
:key="index"
|
|
|
@click="onLocation(index)">
|
|
|
- <span>{{ location.location }}</span><span class="recommend" v-if="nextLocation==location.location && allPicking(location)!=='allActive'" >推荐</span>
|
|
|
+ <span>{{ location.location }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</van-col>
|
|
|
@@ -544,11 +546,12 @@ const _setPickingDetail=(params,type)=>{
|
|
|
nextLocation.value=''
|
|
|
if(activeIndex.value<locationList.value.length-1){
|
|
|
nextLocation.value=locationList.value[activeIndex.value+1].location
|
|
|
- showNotify({
|
|
|
- message: `当前库位商品已全部拣完,请扫描下一个库位${locationList.value[activeIndex.value+1].location}`,
|
|
|
- duration: 5000,
|
|
|
- type:'warning'
|
|
|
- });
|
|
|
+ activeIndex.value+=1
|
|
|
+ // showNotify({
|
|
|
+ // message: `当前库位商品已全部拣完,请扫描下一个库位${locationList.value[activeIndex.value+1].location}`,
|
|
|
+ // duration: 5000,
|
|
|
+ // type:'warning'
|
|
|
+ // });
|
|
|
}
|
|
|
if(type==2){
|
|
|
const numberExist = list.every(({ expectedQuantity, quantity }) => expectedQuantity == quantity && quantity!=0); // 检查数量是否匹配
|
|
|
@@ -634,6 +637,9 @@ const actions = [
|
|
|
// { name: '任务号作业' ,key:'picking'},
|
|
|
{ name: '检索条码' ,key:'inputBarcode'},
|
|
|
];
|
|
|
+const onClickLeft = () => {
|
|
|
+ router.push({name:'PickingTask'})
|
|
|
+};
|
|
|
const onClickRight = () => {
|
|
|
modeTrueFalseBy.value=true
|
|
|
}
|