质量管理
This commit is contained in:
@@ -134,7 +134,7 @@ import printPreview from './preview'
|
||||
import { MessageBox } from 'element-ui'
|
||||
import { hiprint } from 'vue-plugin-hiprint'
|
||||
import providers from './providers'
|
||||
import printData from './print-data'
|
||||
// import printData from './print-data'
|
||||
import $ from 'jquery'
|
||||
import SmallTitle from './SmallTitle.vue'
|
||||
let hiprintTemplate = null
|
||||
@@ -160,6 +160,7 @@ export default {
|
||||
// width: 220,
|
||||
// height: 80
|
||||
},
|
||||
printData:{},
|
||||
drawer: false,
|
||||
// 纸张类型
|
||||
paperTypes: {
|
||||
@@ -355,13 +356,13 @@ export default {
|
||||
},
|
||||
preView() {
|
||||
const { width } = this.curPaper
|
||||
this.$refs.preView.show(hiprintTemplate, printData, width)
|
||||
this.$refs.preView.show(hiprintTemplate, this.printData, width)
|
||||
},
|
||||
print() {
|
||||
// if (window.hiwebSocket.opened) {
|
||||
const printerList = hiprintTemplate.getPrinterList()
|
||||
console.log(printerList)
|
||||
hiprintTemplate.print2(printData, { printer: '', title: '预览打印' })
|
||||
hiprintTemplate.print2(this.printData, { printer: '', title: '预览打印' })
|
||||
// return
|
||||
// }
|
||||
// this.$message.error('客户端未连接,无法直接打印')
|
||||
|
||||
Reference in New Issue
Block a user