modified: src/views/common/qrCodeApp.vue
modified: src/views/quality/rawMaterial/rawMaterial-form.vue
modified: vue.config.js
| | |
| | | console.log(result); |
| | | if (result !== "") { |
| | | this.result=result |
| | | this.$emit("ok",result) |
| | | alert(result) |
| | | this.$emit("ok",this.result) |
| | | this.cancelCode() |
| | | // alert(result) |
| | | } |
| | | }, |
| | | // 相机反转 |
| | |
| | | getObj, |
| | | updateRawInsProduct, |
| | | updateRawInspectsById, |
| | | updateDeviceById, } from '@/api/quality/rawMaterial' |
| | | updateDeviceById, chooseIFS} from '@/api/quality/rawMaterial' |
| | | import rawMaterialPartDialog from '@/views/common/rawMaterial-part' |
| | | import qrCodeApp from '@/views/common/qrCodeApp' |
| | | export default { |
| | |
| | | }, |
| | | methods:{ |
| | | getResultInfo(data){ |
| | | // console.log("返回"); |
| | | console.log("扫描出的二维码值",data); |
| | | console.log("扫描出的二维码值",JSON.stringify(data)); |
| | | let obj=JSON.parse(data) |
| | | let info={"code":obj["part_no"]} |
| | | this.paramObj = info |
| | | this.showPart = true |
| | | }, |
| | | cancelCodeDialog(){ |
| | | this.qrcode = false |
| | |
| | | |
| | | |
| | | // const url = 'http://192.168.2.7:9999' |
| | | const url = 'http://192.168.32.45:9999' |
| | | const url = 'http://localhost:9999' |
| | | //const url = 'http://192.168.2.7:9999' |
| | | //const url = 'http://192.168.32.45:9999' |
| | | // const url = 'http://192.168.0.23:9999' |