| | |
| | | console.log("扫码结果:", data.code); |
| | | let codeInfo = JSON.parse(data.code); |
| | | that.codeInfoId = codeInfo.id; |
| | | if (codeInfo) { |
| | | if (codeInfo.PN) { |
| | | // 扫描报工单二维码 |
| | | that.scanHandle(codeInfo); |
| | | that.$forceUpdate(); |
| | | // that.getHandelList(); |
| | | } |
| | | if (codeInfo.moOn) { |
| | | console.log('1111111111') |
| | | this.$u.api.WorkshopOrderIssued.getManuOrder({ |
| | | moOn: codeInfo.moOn, |
| | | }).then((res) => { |
| | | console.log('111111111',res) |
| | | if (res.code === 0) { |
| | | that.registerInfo = { |
| | | operationTaskId: "", |
| | | id:res.data.id, |
| | | moNo: res.data.ifsOrderNo, |
| | | optaskNo: "", |
| | | workstationId: "", |
| | | } |
| | | } |
| | | }) |
| | | .catch((err) => { |
| | | }) |
| | | } |
| | | } |
| | | }); |