|
|
@@ -66,13 +66,13 @@
|
|
|
<van-icon name="arrow" size="20" color="#666" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- <van-field class="input" ref="scanCountRef" label-width="50px" v-model="item.count" type="number" :min="1"
|
|
|
+ <van-field class="input" ref="scanCountRef" label-width="50px" v-model="item.count" type="number" :min="0"
|
|
|
:max="item.expectedQuantity"
|
|
|
@keydown.enter="onCount(item,0)"
|
|
|
label="实拣数" placeholder="请输实拣数量"
|
|
|
>
|
|
|
<template #button>
|
|
|
- <van-button v-if="item.operationTime==null && item.count==0" size="mini" type="primary" plain @click="jump(item)" :loading="jumpLoading" loading-text="加载中...">跳过</van-button>
|
|
|
+ <van-button v-if="item.operationTime==null && item.count==0" size="mini" type="primary" plain @click="jump(item)" :loading="jumpLoading" loading-text="加载中...">缺货</van-button>
|
|
|
</template>
|
|
|
</van-field>
|
|
|
<WaveInfo :binds="item.binds" :waveNoJson="waveNoJson" />
|
|
|
@@ -479,6 +479,10 @@ const validate = (data,type) => {
|
|
|
//输入数量
|
|
|
const jumpLoading=ref(false);
|
|
|
const onCount=(item,type)=>{
|
|
|
+ if(item.count==0 && type==0){
|
|
|
+ jump(item)
|
|
|
+ return
|
|
|
+ }
|
|
|
const data=JSON.parse(JSON.stringify(item))
|
|
|
data.operationTime=formatDateTime(new Date())
|
|
|
data.container=containerNo.value
|
|
|
@@ -628,9 +632,7 @@ const jump=(item)=>{
|
|
|
message:'您正在进行缺货跳过操作,是否继续'
|
|
|
}).then(() => {
|
|
|
onCount(item,1)
|
|
|
- }).catch(() => {
|
|
|
-
|
|
|
- })
|
|
|
+ }).catch(() => {})
|
|
|
}
|
|
|
|
|
|
//切换模式
|