|  |  |  | 
|---|
|  |  |  | maktx: null, | 
|---|
|  |  |  | specs: null, | 
|---|
|  |  |  | batch: null, | 
|---|
|  |  |  | anfme: 0, | 
|---|
|  |  |  | anfme: 1, | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | baseIP:'', | 
|---|
|  |  |  | basePORT:'', | 
|---|
|  |  |  | 
|---|
|  |  |  | // 监听acceptDataFromOpenerPage事件,获取上一页面通过eventChannel传送到当前页面的数据 | 
|---|
|  |  |  | eventChannel.on('mat', function(data) { | 
|---|
|  |  |  | that.mat = data.data | 
|---|
|  |  |  | that.mat.anfme = 0 | 
|---|
|  |  |  | that.mat.anfme = 1 | 
|---|
|  |  |  | }) | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | </view> | 
|---|
|  |  |  | <view class="item"> | 
|---|
|  |  |  | <view class="code-decs">物料码:</view> | 
|---|
|  |  |  | <input type="text" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> | 
|---|
|  |  |  | <input type="text" style="width: 350rpx;" placeholder=" 扫码 / 输入" v-model="matnr" :focus="matFocus" @input="findMat()"> | 
|---|
|  |  |  | <uni-icons type="close" color="#c1c1c1" @click="clearMatnr"></uni-icons> | 
|---|
|  |  |  | <view class="item-right"> | 
|---|
|  |  |  | <button></button> | 
|---|
|  |  |  | <text style="text-align: right;color: #409EFF;" @click="selectMat()">提取+</text> | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | back() { uni.navigateBack({}) }, | 
|---|
|  |  |  | clearMatnr() { | 
|---|
|  |  |  | // this.matnr = '' | 
|---|
|  |  |  | this.focuss() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | messageToggle(type) { | 
|---|
|  |  |  | this.msgType1 = type | 
|---|
|  |  |  | this.$refs.message.open() | 
|---|
|  |  |  | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 商品光标清空重置 | 
|---|
|  |  |  | focuss() { | 
|---|
|  |  |  | this.focus = false; | 
|---|
|  |  |  | this.matFocus = false; | 
|---|
|  |  |  | setTimeout(() => { | 
|---|
|  |  |  | this.matnr = ''; | 
|---|
|  |  |  | this.matFocus = true; | 
|---|