| | |
| | | getPrintInfo() { |
| | | var mac = ""; |
| | | |
| | | mac = "74:24:ca:4f:b7:9b"; |
| | | this.$post({ |
| | | url: "/DevMachine/GetDevMachineByPdaMac", |
| | | data: { |
| | | pdaMac: mac, |
| | | } |
| | | }).then(res => { |
| | | let devMachine = res.data.tbBillList; |
| | | this.machineNo = devMachine.machineNo; |
| | | this.machineName = "调试模式:" + this.machineNo + "号齿轮机" |
| | | //mac = "74:24:ca:4f:b7:9b"; |
| | | //this.$post({ |
| | | // url: "/DevMachine/GetDevMachineByPdaMac", |
| | | // data: { |
| | | // pdaMac: mac, |
| | | // } |
| | | //}).then(res => { |
| | | // let devMachine = res.data.tbBillList; |
| | | // this.machineNo = devMachine.machineNo; |
| | | // this.machineName = "调试模式:" + this.machineNo + "号齿轮机" |
| | | |
| | | uni.setStorageSync('machineNo', this.machineNo); |
| | | uni.setStorageSync('printMac', devMachine.printMac); |
| | | // uni.setStorageSync('machineNo', this.machineNo); |
| | | // uni.setStorageSync('printMac', devMachine.printMac); |
| | | |
| | | console.log(devMachine.printMac); |
| | | // console.log(devMachine.printMac); |
| | | |
| | | this.getWomdaaIsShow(); |
| | | }); |
| | | return; |
| | | // this.getWomdaaIsShow(); |
| | | //}); |
| | | //return; |
| | | |
| | | |
| | | if (plus.os.name == "Android") { |