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

取消库位扫描

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