|
@@ -20,16 +20,12 @@
|
|
|
autocomplete="off" readonly @click="setBarcodeInput(workBinNo,1)"></van-field>
|
|
autocomplete="off" readonly @click="setBarcodeInput(workBinNo,1)"></van-field>
|
|
|
<van-field v-model="searchBarcode" placeholder="请扫描商品条码" label="商品条码:" left-icon="" readonly :class="[scanType===2?'search-input-barcode':'']"
|
|
<van-field v-model="searchBarcode" placeholder="请扫描商品条码" label="商品条码:" left-icon="" readonly :class="[scanType===2?'search-input-barcode':'']"
|
|
|
autocomplete="off" @click="setBarcodeInput(searchBarcode,2)"></van-field>
|
|
autocomplete="off" @click="setBarcodeInput(searchBarcode,2)"></van-field>
|
|
|
- <van-field ref="countRef" v-model="count" type="number" placeholder="上架数量" label="上架数量:" left-icon="" autocomplete="off"
|
|
|
|
|
|
|
+ <van-field ref="countRef" @click="scanType=3" v-model="count" type="number" placeholder="上架数量" label="上架数量:" left-icon="" autocomplete="off"
|
|
|
:class="{'search-input-barcode': scanType === 3,'input-count': barcodeActive.qty}" @keydown.enter="setPutaway(2)"
|
|
:class="{'search-input-barcode': scanType === 3,'input-count': barcodeActive.qty}" @keydown.enter="setPutaway(2)"
|
|
|
:max="barcodeActive.qty?barcodeActive.qty:10000"
|
|
:max="barcodeActive.qty?barcodeActive.qty:10000"
|
|
|
>
|
|
>
|
|
|
<template #button>
|
|
<template #button>
|
|
|
- <div style="display: flex; align-items: center;flex-direction: column;margin-left: 20px;color:#333" v-if="barcodeActive.qty">
|
|
|
|
|
- <div style="height: 20px;font-size: 12px">预计</div>
|
|
|
|
|
- <div style="font-size: 16px;font-weight: bold">{{ barcodeActive.qty ||0 }}
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div v-if="barcodeActive.qty" style="color:#333;font-size: 14px;font-weight: bold">预计{{ barcodeActive.qty ||0 }}</div>
|
|
|
</template>
|
|
</template>
|
|
|
</van-field>
|
|
</van-field>
|
|
|
<van-field v-model="searchLocation" placeholder="请扫描库位" label="上架库位:" left-icon="" readonly :class="[scanType===4?'search-input-barcode':'']"
|
|
<van-field v-model="searchLocation" placeholder="请扫描库位" label="上架库位:" left-icon="" readonly :class="[scanType===4?'search-input-barcode':'']"
|
|
@@ -220,7 +216,7 @@ const _handlerScan = (code) => {
|
|
|
}, 300)
|
|
}, 300)
|
|
|
scanType.value = 3
|
|
scanType.value = 3
|
|
|
count.value=1
|
|
count.value=1
|
|
|
- countRef.value?.focus()
|
|
|
|
|
|
|
+ // countRef.value?.focus()
|
|
|
tips.value = `请扫输入上架数量`
|
|
tips.value = `请扫输入上架数量`
|
|
|
scanError()
|
|
scanError()
|
|
|
} else {
|
|
} else {
|
|
@@ -274,7 +270,7 @@ const inputCheck=()=>{
|
|
|
scanType.value = 3
|
|
scanType.value = 3
|
|
|
tips.value = `请输入上架数量`
|
|
tips.value = `请输入上架数量`
|
|
|
showNotify({ type: 'danger', duration: 3000, message: `请扫输入上架数量` })
|
|
showNotify({ type: 'danger', duration: 3000, message: `请扫输入上架数量` })
|
|
|
- countRef.value?.focus()
|
|
|
|
|
|
|
+ // countRef.value?.focus()
|
|
|
scanError()
|
|
scanError()
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
@@ -289,7 +285,7 @@ const inputCheck=()=>{
|
|
|
scanType.value = 3
|
|
scanType.value = 3
|
|
|
tips.value = `请输入上架数量`
|
|
tips.value = `请输入上架数量`
|
|
|
scanError()
|
|
scanError()
|
|
|
- countRef.value?.focus()
|
|
|
|
|
|
|
+ // countRef.value?.focus()
|
|
|
showNotify({ type: 'danger', duration: 3000, message: `上架数量不能大于预计上架数量` })
|
|
showNotify({ type: 'danger', duration: 3000, message: `上架数量不能大于预计上架数量` })
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
@@ -466,7 +462,7 @@ window.onRefresh = loadData
|
|
|
z-index: 2
|
|
z-index: 2
|
|
|
.input-count
|
|
.input-count
|
|
|
::v-deep(.van-field__control)
|
|
::v-deep(.van-field__control)
|
|
|
- line-height: 43px
|
|
|
|
|
|
|
+ //line-height: 43px
|
|
|
|
|
|
|
|
|
|
|
|
|
.putaway-button
|
|
.putaway-button
|
|
@@ -506,7 +502,7 @@ window.onRefresh = loadData
|
|
|
background: #fff
|
|
background: #fff
|
|
|
align-items: center
|
|
align-items: center
|
|
|
justify-content: center
|
|
justify-content: center
|
|
|
- padding: 15px 0
|
|
|
|
|
|
|
+ padding: 8px 0
|
|
|
font-size: 14px
|
|
font-size: 14px
|
|
|
color: #333
|
|
color: #333
|
|
|
position: relative
|
|
position: relative
|