Commit 1d8ae91e authored by 何远江's avatar 何远江

取消库位扫描

parent 79e9b8fa
...@@ -63,10 +63,6 @@ export default { ...@@ -63,10 +63,6 @@ export default {
default: function () { default: function () {
return []; return [];
} }
},
nlpla: {
type: String,
default: ''
} }
}, },
data() { data() {
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<StickyNavBar> <StickyNavBar>
<NavBar title="委外退料"></NavBar> <NavBar title="委外退料"></NavBar>
<view class="btn"> <view class="btn">
<uni-easyinput prefixIcon="search" class="topSearch" v-model="nlpla" focus placeholder="请扫描库位" @change="handleInputNlpla"></uni-easyinput>
<uni-easyinput <uni-easyinput
prefixIcon="search" prefixIcon="search"
:disabled="isDisabled" :disabled="isDisabled"
...@@ -26,7 +25,7 @@ ...@@ -26,7 +25,7 @@
</StickyNavBar> </StickyNavBar>
<ContentLoadingMore class="cardbox" :list='chargaArr'> <ContentLoadingMore class="cardbox" :list='chargaArr'>
<view class="cardContent" v-for="(item, index) in chargaArr"> <view class="cardContent" v-for="(item, index) in chargaArr">
<listItem :item="item" :goodsList="goodsList" :nlpla="nlpla" @deleGonds="deleGonds"/> <listItem :item="item" :goodsList="goodsList" @deleGonds="deleGonds"/>
</view> </view>
</ContentLoadingMore> </ContentLoadingMore>
<BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn> <BottomBtn :btnArr="btnArr" @getBtnHandle="getBtnHandle"></BottomBtn>
...@@ -51,7 +50,6 @@ export default { ...@@ -51,7 +50,6 @@ export default {
number: 0, number: 0,
totalNum: 0, totalNum: 0,
show: true, show: true,
nlpla: '',
wxparams: '', wxparams: '',
btnArr: [ btnArr: [
{ {
...@@ -124,7 +122,6 @@ export default { ...@@ -124,7 +122,6 @@ export default {
this.goodsList = []; this.goodsList = [];
this.chargaArr = [] this.chargaArr = []
this.totalNum = 0; this.totalNum = 0;
this.nlpla = '';
this.wxparams = ''; this.wxparams = '';
this.$u.toast('提交成功'); this.$u.toast('提交成功');
} }
...@@ -139,26 +136,8 @@ export default { ...@@ -139,26 +136,8 @@ export default {
// e&& e.length > 79 && this.getPlnr(e); // e&& e.length > 79 && this.getPlnr(e);
e && this.getPlnr(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) { getPlnr(plnr) {
this.isDisabled = true; this.isDisabled = true;
if(!this.nlpla){
this.$u.toast('请先扫描仓位');
setTimeout(() => {
this.wxparams = '';
this.isFocus = true;
this.isDisabled = false;
}, 1000);
return
}
this.$u.api.sapApi this.$u.api.sapApi
.sapPlnr({ .sapPlnr({
plnr, plnr,
...@@ -178,7 +157,6 @@ export default { ...@@ -178,7 +157,6 @@ export default {
const arr = [ const arr = [
{ {
...res.DATA[0], ...res.DATA[0],
NLPLA: this.nlpla
} }
] ]
this.goodsList = this.goodsList.concat(arr); this.goodsList = this.goodsList.concat(arr);
......
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