Commit b754af96 authored by tanjunxin's avatar tanjunxin

fix: 优化扫码枪扫码后立即发送请求的问题

parent 7ef89b44
{
"name" : "mes-pda",
"appid" : "__UNI__E23397B",
"appid" : "__UNI__FB0FD5F",
"description" : "MES-PDA",
"versionName" : "1.0.0",
"versionCode" : "100",
......@@ -136,10 +136,10 @@
"target" : "http://192.168.3.109:8000",
"changeOrigin" : true
},
"/apiPda" : {
"target" : "http://192.168.3.91:8080",
"changeOrigin" : true
}
"/apiPda" : {
"target" : "http://192.168.3.91:8080",
"changeOrigin" : true
}
}
}
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -173,6 +173,20 @@
"enablePullDownRefresh": false
}
},
// {
// "path": "pages/produceReturn/oddmentsInfo",
// "style": {
// "navigationBarTitleText": "生产退料",
// "enablePullDownRefresh": false
// }
// },
// {
// "path": "pages/produceReturn/putawayInfo",
// "style": {
// "navigationBarTitleText": "生产退料",
// "enablePullDownRefresh": false
// }
// },
{
"path": "pages/produceReturn/oddNumList",
"style": {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -135,7 +135,7 @@
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
if (e) {
// 是否有重复的PLBL
......
......@@ -33,7 +33,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -242,7 +242,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
e && this.getPlnr(e);
},
handleInputNlpla(e) {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -75,7 +75,7 @@ export default {
this[row.way]();
},
goClick() {},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -16,8 +16,8 @@
:disabled="isDisabled"
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
placeholder="请扫描产品包装条码/外箱码"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -194,7 +194,7 @@ export default {
});
},
handleInputPlnr(e) {
handleConfirm(e) {
if (this.scanPLs.includes(e)) {
return this.$u.toast("请勿重复扫描!");
}
......
......@@ -4,7 +4,7 @@
<NavBar title="工厂间调拨"></NavBar>
<view class="btn">
<uni-easyinput prefixIcon="search" :disabled="isDisabled" v-model="wxparams" :focus="isFocus"
placeholder="请扫描单号" @input="handleInputPlnr"></uni-easyinput>
placeholder="请扫描单号" @confirm="handleConfirm"></uni-easyinput>
</view>
</StickyNavBar>
<view class="cardBox">
......@@ -46,7 +46,7 @@
},
created() {},
methods: {
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -9,7 +9,7 @@
</view>
<view class="btn">
<uni-easyinput prefixIcon="search" :disabled="isDisabled" v-model.trim="wxparams" :focus="isFocus"
placeholder="请扫描产品包装条码/外箱码" @input="handleInputPlnr"></uni-easyinput>
placeholder="请扫描产品包装条码/外箱码" @confirm="handleConfirm"></uni-easyinput>
</view>
<view class="total">
<view class="left">物料明细</view>
......@@ -138,7 +138,7 @@
* 删除PL,因为有拆分的PL情况, 要删除关联的的PL
*/
deleGonds(index, detailIndex, detail) {},
handleInputPlnr(e) {
handleConfirm(e) {
if (!e) return
if (this.catchPl.length > 0) {
if (!this.catchPl.includes(e)) {
......
......@@ -3,7 +3,7 @@
<StickyNavBar>
<NavBar title="库存盘点"></NavBar>
<view class="btn">
<uni-easyinput prefixIcon="search" class="topSearch" v-model="nlpla" focus placeholder="请扫盘点凭证码" @input="handleInputNlpla"></uni-easyinput>
<uni-easyinput prefixIcon="search" class="topSearch" v-model="nlpla" focus placeholder="请扫盘点凭证码" @confirm="handleConfirm"></uni-easyinput>
</view>
</StickyNavBar>
<waitInventoried ref="waitInventoriedRef" />
......@@ -51,7 +51,7 @@ export default {
console.log('getBtnHandle', row);
this[row.way]();
},
handleInputNlpla(e) {
handleConfirm(e) {
const params = JSON.parse(e)
this.$refs.waitInventoriedRef.getList(params);
setTimeout(() => {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -95,7 +95,7 @@ export default {
scanning() {
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -16,7 +16,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -137,7 +137,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -19,7 +19,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -245,7 +245,7 @@ export default {
this.current = index;
},
handleInputNlpla(e) {},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
if (this.catchPLs.includes(e)) {
return this.$u.toast("请勿重复扫描该条码!");
......
......@@ -11,7 +11,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -136,7 +136,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
// e&& e.length > 79 && this.getPlnr(e);
e && this.getPlnr(e);
......
......@@ -16,7 +16,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -137,7 +137,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -16,7 +16,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -137,7 +137,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -44,7 +44,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
<checkbox-group style="margin-top: 10rpx" @change="checkedChange">
<checkbox value="r1" :checked="checkedBox" />是否审核
......@@ -451,7 +451,7 @@ export default {
this.wxparams = "";
}, 1000);
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
this.isDisabled = true;
if (this.goodsList.some((item) => item === e)) {
......
......@@ -21,7 +21,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -170,7 +170,7 @@ export default {
handleInputNlpla(e){
console.log(`output->e`,e)
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
this.isDisabled = true;
e && this.goodsList.push(e)
......
......@@ -2,7 +2,7 @@
<view style="padding: 20rpx 0;">
<view class="btn">
<uni-easyinput prefixIcon="search" :disabled="isDisabled" v-model="wxparams" :focus="isFocus"
placeholder="请扫描产品包装条码/外箱码" @input="handleInputPlnr"></uni-easyinput>
placeholder="请扫描产品包装条码/外箱码" @confirm="handleConfirm"></uni-easyinput>
</view>
<view class="cardbox">
<view class="cardContent" v-for="(item, index) in goodsList" :key="item.PLNR">
......@@ -50,7 +50,7 @@
};
},
methods: {
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
this.isDisabled = true;
if (this.goodsList.some((item) => item === e)) {
......
......@@ -10,7 +10,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -162,7 +162,7 @@ export default {
handleInputNlpla(e) {
this.nlpla = e;
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描交货单"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="btn">
......@@ -112,7 +112,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
// e&& e.length > 79 && this.getPlnr(e);
e && this.getPlnr(e);
......
This diff is collapsed.
This diff is collapsed.
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -96,7 +96,7 @@ export default {
scanning() {
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -16,7 +16,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -137,7 +137,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -16,7 +16,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -137,7 +137,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -24,7 +24,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -215,7 +215,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
e && this.getPlnr(e);
},
getPlnr(plnr) {
......
<template>
<view class="page">
<StickyNavBar>
<NavBar title="采购入库扫描"></NavBar>
<FactorySelect v-model="warehouseCode" @change="warehouseChange" />
<view class="btn">
<uni-easyinput v-if="vuex_user_factory !== '1010'" prefixIcon="search" class="topSearch" v-model="nlpla"
focus placeholder="请扫描仓位" @change="handleInputNlpla"></uni-easyinput>
<uni-easyinput prefixIcon="search" confirm-type="search" :disabled="isDisabled" v-model="wxparams"
:focus="isFocus" placeholder="请扫描产品包装条码/外箱码" @confirm="handleConfirm"></uni-easyinput>
</view>
<view class="total">
<view class="left">入库明细</view>
<view class="right">
批次数:
<text class="blue">{{ chargaArr.length }}</text>
<text class="line">|</text>
总数量:
<text class="blue">{{ totalNum }}</text>
</view>
</view>
</StickyNavBar>
<ContentLoadingMore class="cardbox" :list='chargaArr'>
<view class="cardContent" v-for="(item, index) in chargaArr">
<listItem :item="item" :goodsList="goodsList" :nlpla="nlpla" @deleGonds="deleGonds" />
</view>
</ContentLoadingMore>
<BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn>
</view>
</template>
<script>
import listItem from "@/pages/purchaseStorage/listItem.vue"
import StickyNavBar from '@/components/StickyNavBar/index.vue';
import ContentLoadingMore from '@/components/ContentLoadingMore/index.vue';
import BottomBtn from '@/components/BottomBtn/index.vue';
import FactorySelect from '@/components/FactorySelect/FactorySelect.vue'
import {
parseTime
} from "@/utils/ruoyi";
export default {
components: {
StickyNavBar,
ContentLoadingMore,
BottomBtn,
listItem,
FactorySelect
},
data() {
return {
number: 0,
totalNum: 0,
show: true,
nlpla: '',
wxparams: '',
warehouseCode: '',
btnArr: [{
style: '',
type: 'warning',
text: '返回',
way: 'goBack'
},
{
style: '',
type: 'primary',
text: '提交',
way: 'goSubmit'
}
],
goodsList: [],
isFocus: false,
isDisabled: false,
chargaArr: []
};
},
created() {
// this.getPlnr('100001240428000002|00100000000000014.000|10002442800002');
// this.getPlnr('100001240428000002|00100000000000019.500|10002442800001');
},
methods: {
warehouseChange(e) {
console.log(this.warehouseCode, '----');
},
deleGonds(detail) {
this.goodsList.forEach((ele, idx) => {
if (detail.PLNR === ele.PLNR) {
this.goodsList.splice(idx, 1);
}
});
this.totalNum = 0;
this.goodsList.forEach((ele) => {
this.totalNum += ele.TOMNG - 0
ele.cardNum = 0
});
this.handleData()
},
getBtnHandle(row) {
this[row.way]();
},
goBack() {
uni.navigateBack();
},
goSubmit() {
// 根据不同工厂,不同选择
if (this.goodsList.length === 0) {
return;
}
const data = JSON.parse(JSON.stringify(this.goodsList))
data.forEach(ele => {
ele.ERFMG = ele.TOMNG
ele.ERFME = ele.MEINS
// 添加仓库别
ele.UMLGO = this.warehouseCode
});
this.$u.api.sapApi
.sapRrm([{
BLDAT: parseTime(new Date(), '{y}{m}{d}'),
BUDAT: parseTime(new Date(), '{y}{m}{d}'),
ZENCODE: 'A014',
TYPE: 'CG',
ITEM: data
}], 300)
.then((res) => {
this.loading = false;
if (!Array.isArray(res)) {
return
}
if (res && res.every((item) => item.TYPE === 'S')) {
this.goodsList = [];
this.chargaArr = []
this.totalNum = 0;
this.nlpla = '';
this.wxparams = '';
this.$u.toast('提交成功');
}
const foundObject = res.find(item => item.TYPE === 'E');
if (foundObject && foundObject.MESSAGE) {
this.$u.toast(foundObject.MESSAGE);
}
});
},
handleConfirm(e) {
this.isFocus = false;
// e&& e.length > 79 && this.getPlnr(e);
// console.log(e);
e && this.getPlnr(e);
},
handleInputNlpla(e) {
if (e) {
// this.nlpla = e;
// this.goodsList.forEach((ele) => {
// this.totalNum += ele.TOMNG-0;
// ele.NLPLA = ele.NLPLA || this.nlpla;
// });
}
},
getPlnr(plnr) {
this.isDisabled = true;
if (!this.nlpla && this.vuex_user_factory !== '1010') {
this.$u.toast('请先扫描仓位');
setTimeout(() => {
this.wxparams = '';
this.isFocus = true;
this.isDisabled = false;
}, 1000);
return
}
this.$u.api.sapApi
.sapPlnr({
plnr,
zType: '001'
}, 300)
.then((res) => {
if (res && res.RESULT.TYPE === 'S') {
if (this.goodsList.some((item) => item.PLNR === plnr)) {
setTimeout(() => {
this.isFocus = true;
this.isDisabled = false;
this.wxparams = '';
}, 1000);
this.$u.toast('已经存在当前条码');
return
}
const arr = [{
...res.DATA[0],
NLPLA: this.nlpla
}]
this.goodsList = this.goodsList.concat(arr);
this.totalNum = 0;
this.goodsList.forEach((ele) => {
this.totalNum += ele.TOMNG - 0
ele.cardNum = 0
});
this.handleData()
setTimeout(() => {
this.wxparams = '';
this.isFocus = true;
this.isDisabled = false;
}, 1000);
} else {
setTimeout(() => {
this.isFocus = true;
this.isDisabled = false;
this.wxparams = '';
}, 1000);
this.$u.toast(res.RESULT.MESSAGE);
}
this.loading = false;
});
},
handleData() {
this.chargaArr = this.goodsList.filter((item, index, self) => {
return self.findIndex(t => t.CHARG === item.CHARG) === index;
});
this.chargaArr.forEach((ele, idx) => {
this.goodsList.forEach(item => {
if (ele.CHARG === item.CHARG) {
ele.cardNum += (item.TOMNG - 0)
this.$set(this.chargaArr, idx, {
...ele
})
}
});
});
},
}
};
</script>
<style lang="scss" scoped>
.btn {
padding: 20rpx;
background: #fff;
.topSearch {
margin-bottom: 20rpx;
}
}
.bottomBtn {
position: sticky;
padding: 20rpx;
display: flex;
justify-content: space-between;
background: #fff;
bottom: 0rpx;
margin-top: 20rpx;
.u-btn {
width: 300rpx;
}
}
.blue {
color: #3f9dcc;
}
.total {
background: #fff;
color: #000;
padding: 0rpx 40rpx;
display: flex;
justify-content: space-between;
font-size: 32rpx;
.line {
margin: 0px 10rpx;
}
}
.cardbox {
min-height: calc(100vh - 540rpx);
padding: 0rpx 20rpx;
margin-top: 20rpx;
}
.cardContent {
border-radius: 8px;
background: #fff;
margin-bottom: 20rpx;
}
/deep/ .u-sticky {
top: 0 !important;
background: #fff;
}
</style>
\ No newline at end of file
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -91,7 +91,7 @@ export default {
// url: `/pages/productionIssuance/productionIssuanceList?order=${JSON.stringify(this.goodsList)}`
// });
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -15,7 +15,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -157,7 +157,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -21,7 +21,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -230,7 +230,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
e && this.getPlnr(e);
},
getPlnr(plnr) {
......
......@@ -29,7 +29,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -243,7 +243,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
e && this.getPlnr(e);
},
getPlnr(plnr) {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -135,7 +135,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
if (e) {
// 是否有重复的PLBL
......
......@@ -7,11 +7,12 @@
<uni-easyinput v-if="vuex_user_factory !== '1010'" prefixIcon="search" class="topSearch" v-model="nlpla" focus placeholder="请扫描仓位" @change="handleInputNlpla"></uni-easyinput>
<uni-easyinput
prefixIcon="search"
confirm-type="search"
:disabled="isDisabled"
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -145,9 +146,10 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
// e&& e.length > 79 && this.getPlnr(e);
// console.log(e);
e && this.getPlnr(e);
},
handleInputNlpla(e) {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -91,7 +91,7 @@ export default {
// url: `/pages/productionIssuance/productionIssuanceList?order=${JSON.stringify(this.goodsList)}`
// });
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -45,7 +45,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -265,7 +265,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
e && this.getPlnr(e);
},
getPlnr(plnr) {
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -72,7 +72,7 @@ export default {
url: `/pages/salesOutbound/salesOutboundList`
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -17,8 +17,8 @@
:disabled="isDisabled"
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
placeholder="请扫描产品包装条码/外箱码"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -319,7 +319,7 @@ export default {
this.current = index;
},
handleInputNlpla(e) {},
handleInputPlnr(e) {
handleConfirm(e) {
if (!e) return;
this.isFocus = false;
console.log(this.pls, "this.pls");
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -96,7 +96,7 @@ export default {
scanning() {
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -11,7 +11,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -163,7 +163,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -8,8 +8,8 @@
class="boxSelect"
prefixIcon="search"
v-model.trim="vbeln"
placeholder="请扫描交货单"
@input="handleInputvbeln"
placeholder="请扫描交货单"
@confirm="handleConfirm"
></uni-easyinput>
<uni-easyinput
prefixIcon="search"
......@@ -17,7 +17,7 @@
v-model.trim="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
@confirm="handleConfirmPlnr"
></uni-easyinput>
</view>
<!-- <view class="total" v-show="goodsList && goodsList.length > 0">
......@@ -93,7 +93,7 @@ export default {
},
},
methods: {
handleInputPlnr(e) {
handleConfirmPlnr(e) {
if (!e) return;
this.isFocus = false;
console.log(this.pls, "this.pls");
......@@ -180,7 +180,7 @@ export default {
}
});
},
handleInputvbeln(VBELN) {
handleConfirm(VBELN) {
this.$u.api.sapApi
.sapSchDn({
VBELN,
......
......@@ -9,7 +9,7 @@
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描单号"
@input="handleInputPlnr"
@confirm="handleConfirm"
></uni-easyinput>
</view>
</StickyNavBar>
......@@ -80,7 +80,7 @@ export default {
this[row.way]();
},
goClick() {},
handleInputPlnr(e) {
handleConfirm(e) {
this.isFocus = false;
e && this.getPlnr(e);
},
......
......@@ -24,8 +24,8 @@
:disabled="isDisabled"
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
@input="handleInputPlnr"
placeholder="请扫描产品包装条码/外箱码"
@confirm="handleConfirm"
></uni-easyinput>
</view>
<view class="total">
......@@ -208,7 +208,7 @@ export default {
}
});
},
handleInputPlnr(e) {
handleConfirm(e) {
if (this.scanPLs.includes(e)) {
return this.$u.toast("请勿重复扫描!");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment