| | |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <text class="item-one item-two" @click="seachPersonnelNo()">{{ |
| | | registerInfo.ifsOrderNo == "" ? "点击选择" : registerInfo.ifsOrderNo |
| | | registerInfo.ifsOrderNo == "" |
| | | ? "点击选择" |
| | | : registerInfo.ifsOrderNo |
| | | }}</text> |
| | | <u-icon |
| | | name="arrow-right" |
| | |
| | | uni.$off("scan"); // 每次进来先 移除全局自定义事件监听器 |
| | | uni.$on("scan", function (data) { |
| | | console.log("onscan"); |
| | | if (that.registerInfo.partNo == "") { |
| | | uni.showToast({ |
| | | icon: "none", |
| | | title: "请先选择子件!", |
| | | duration: 2 * 1000, |
| | | }); |
| | | return; |
| | | } |
| | | // if (that.registerInfo.workstationId == "") { |
| | | // uni.showToast({ |
| | | // icon: "none", |
| | | // title: "请先选择机台!", |
| | | // duration: 2 * 1000, |
| | | // }); |
| | | // return; |
| | | // } |
| | | if (data.code) { |
| | | //扫码成功后的回调,你可以写自己的逻辑代码在这里 |
| | | console.log("扫码结果:", data.code); |
| | |
| | | that.codeInfoId = codeInfo.id; |
| | | if (codeInfo.PN) { |
| | | if (that.registerInfo.partNo != codeInfo.PN) { |
| | | this.$u.toast("当前子件和扫码子件不一致!"); |
| | | this.$u.toast("当前物料结构和扫码物料结构不一致!"); |
| | | return; |
| | | } |
| | | // 扫描报工单二维码 |
| | | that.scanHandle(codeInfo); |
| | | that.$forceUpdate(); |
| | | // that.getHandelList(); |
| | | } |
| | | if (codeInfo.moOn) { |
| | | this.$u.api.WorkshopOrderIssued.getManuOrder({ |
| | | moOn: codeInfo.moOn, |
| | | }).then((res) => { |
| | | if (res.code === 0) { |
| | | that.registerInfo = { |
| | | operationTaskId: "", |
| | | id: res.data.id, |
| | | ifsOrderNo: res.data.ifsOrderNo, |
| | | partNo: "", |
| | | partName: "", |
| | | optaskNo: "", |
| | | workstationId: "", |
| | | ifsLineItemNo: "", |
| | | }; |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | }) |
| | | } |
| | | } |
| | | }); |
| | |
| | | } |
| | | |
| | | .packing-registration-param-view { |
| | | height: 550rpx; |
| | | height: 350rpx; |
| | | background-color: #fff; |
| | | border-radius: 10rpx; |
| | | padding: 0rpx 23rpx; |