| | |
| | | range: [], |
| | | orderNo: '', |
| | | barcode: '', |
| | | siteNo: '', |
| | | msgType1: '', |
| | | messageText: '', |
| | | msgType: '', |
| | |
| | | }, |
| | |
|
| | | methods: { |
| | | /** |
| | | * 获取当前播种墙所有库位 |
| | | */ |
| | | getSeedLocs() { |
| | | let that = this |
| | | toast.loading('加载中') |
| | | this.$toast.loading('加载中') |
| | | uni.request({ |
| | | url: this.baseUrl + '/pda/pick/seed/locs', |
| | | header: { |
| | |
| | | } |
| | | }, |
| | | complete() { |
| | | toast.hideLoading() |
| | | that.$toast.hideLoading() |
| | | } |
| | | |
| | | }) |
| | |
| | | if (type == undefined || type == null || type == null) { |
| | | type = 'bind' |
| | | } |
| | | toast.loading('绑定中..') |
| | | this.$toast.loading('绑定中..') |
| | | uni.request({ |
| | | url: that.baseUrl + "/pda/pick/seed/bind", |
| | | data: {barcode: that.barcode, orderNo: that.orderNo, siteNo: that.siteNo, type: type}, |
| | |
| | | success(res) { |
| | | let result = res.data; |
| | | if (result.code === 200) { |
| | | toast.hideLoading() |
| | | this.messageToggle('success', '绑定成功!') |
| | | that.messageToggle('success', '绑定成功!') |
| | | } else { |
| | | toast.hideLoading() |
| | | this.messageToggle('error', result.msg) |
| | | that.messageToggle('error', result.msg) |
| | | } |
| | | }, |
| | | fail(res) { |
| | | toast.hideLoading() |
| | | this.messageToggle('error', '服务器错误') |
| | | |
| | | that.messageToggle('error', '服务器错误') |
| | | |
| | | }, |
| | | complete() { |
| | | that.barcode = '' |
| | | that.orderNo = '' |
| | | that.siteNo = '' |
| | | that.$toast.hideLoading() |
| | | } |
| | | }) |
| | | }, |