| | |
| | | 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") { |
| | |
| | | } |
| | | } |
| | | |
| | | /* 放在 style 标签最后,确保优先级 */ |
| | | ::v-deep .uni-table .uni-checkbox-wrapper, |
| | | ::v-deep .uni-table .uni-checkbox-input { |
| | | width: 44px !important; |
| | | height: 44px !important; |
| | | min-width: 44px !important; |
| | | min-height: 44px !important; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | /* 放大 uni-table 的多选框(checkbox) */ |
| | | :deep(.uni-table .uni-checkbox-wrapper), |
| | | :deep(.uni-table .uni-checkbox-input) { |
| | | width: 48px !important; |
| | | height: 48px !important; |
| | | min-width: 48px !important; |
| | | min-height: 48px !important; |
| | | display: flex !important; |
| | | align-items: center !important; |
| | | justify-content: center !important; |
| | | box-sizing: border-box !important; |
| | | } |
| | | |
| | | ::v-deep .uni-table .uni-checkbox-input { |
| | | border-radius: 8px !important; |
| | | border: 2.5px solid #007aff !important; |
| | | /* 只对 input[type=checkbox] 放大,不要加 :deep() */ |
| | | .uni-table .uni-checkbox-input input[type="checkbox"] { |
| | | transform: scale(2.2) !important; |
| | | accent-color: #007aff !important; |
| | | cursor: pointer !important; |
| | | } |
| | | |
| | | ::v-deep .uni-table .uni-checkbox-input .uni-checkbox-icon { |
| | | font-size: 38px !important; |
| | | line-height: 44px !important; |
| | | /* 放大 uni-table 的多选框列宽 */ |
| | | :deep(.uni-table .uni-table-selection), |
| | | :deep(.uni-table th.is-selection), |
| | | :deep(.uni-table td.is-selection) { |
| | | width: 100px !important; |
| | | min-width: 100px !important; |
| | | max-width: 120px !important; |
| | | } |
| | | |
| | | /* 针对1280x800的平板使用媒体查询进行适配 */ |