| | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input v-model="order" type="text" placeholder="扫码 / 输入" @input="findOrder()" :focus="focus" |
| | | <input v-model="order" type="text" disabled="true" |
| | | placeholder-style="line-height: 85rpx;"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons> |
| | | </view> |
| | |
| | | }, |
| | | findTiaoMa() { |
| | | let that = this |
| | | if (!that.orderNo) { |
| | | uni.showToast({ |
| | | title: '请扫描单据号', |
| | | icon: "none", |
| | | position: 'top' |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | uni.request({ |
| | | url: that.commonUrl + '/mobile/mat/search/auth', |
| | | data: { |
| | |
| | | console.log(result) |
| | | let res = result.data |
| | | if (res.code === 200 && res.data) { |
| | | if (that.orderNo == res.data.orderNo){ |
| | | that.findOrder() |
| | | that.checkMat(res.data) |
| | | }else if (that.orderNo){ |
| | | if (that.orderNo != res.data.orderNo){ |
| | | uni.showToast({ |
| | | title: '不同单据不能混合组托', |
| | | icon: "none", |
| | | position: 'top' |
| | | }); |
| | | } |
| | | } |
| | | //this.tiaomas.unshift(that.tiaoma) |
| | | } else if (res.code == 403) { |
| | | uni.showToast({ |