| | |
| | | <text class="item-one">批次号:</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ |
| | | detailedList.BN |
| | | }}</text> |
| | | <text class="item-one item-two">{{ detailedList.BN }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">品牌:</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ |
| | | detailedList.BR |
| | | }}</text> |
| | | <text class="item-one item-two">{{ detailedList.BR }}</text> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | <text class="item-one">净重:</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two">{{ |
| | | detailedList.KW |
| | | }}</text> |
| | | <text class="item-one item-two">{{ detailedList.KW }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | let that = this; |
| | | uni.$off("scan"); // 每次进来先 移除全局自定义事件监听器 |
| | | uni.$on("scan", function (data) { |
| | | this.detailedList = {}, |
| | | console.log("onscan"); |
| | | (this.detailedList = {}), console.log("onscan"); |
| | | //扫码成功后的回调,你可以写自己的逻辑代码在这里 |
| | | console.log("页面扫码结果:", data.code); |
| | | if (data.code) { |
| | |
| | | this.$u.toast("领料成功"); |
| | | }) |
| | | .catch((err) => { |
| | | this.$u.toast("领料失败"); |
| | | uni.showToast({ |
| | | title: res.msg || "网络错误,领料失败", |
| | | icon: "none", |
| | | }); |
| | | }); |
| | | }, |
| | | }, |