| | |
| | | :visible.sync="qrcode" |
| | | width="60%"> |
| | | <div style="height: 100vh;width: 100%;"> |
| | | <qr-code-app ref="codeCompont" @cancelCodeDialog="cancelCodeDialog"></qr-code-app> |
| | | <qr-code-app ref="codeCompont" @ok="getResultInfo" @cancelCodeDialog="cancelCodeDialog"></qr-code-app> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="qrcode = false">取 消</el-button> |
| | |
| | | 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 { |
| | |
| | | formTime: '', |
| | | message: '', |
| | | name: '', |
| | | code: '88.118.1/A0498220', |
| | | code: '', |
| | | specs: '', |
| | | unit: '', |
| | | number: '', |
| | |
| | | userName: '', |
| | | testState: '' |
| | | }], |
| | | dataRule: {}, |
| | | dataRule: { |
| | | code:[{ required: true, message: '请扫描选择零件', trigger: 'blur' }] |
| | | }, |
| | | deviceList: [], |
| | | } |
| | | }, |
| | |
| | | }, |
| | | }, |
| | | methods:{ |
| | | getResultInfo(data){ |
| | | console.log("扫描后执行"); |
| | | let obj=JSON.parse(data) |
| | | let info={"code":obj["part_no"]} |
| | | this.paramObj = info |
| | | this.showPart = true |
| | | }, |
| | | cancelCodeDialog(){ |
| | | this.qrcode = false |
| | | }, |