质量管理

This commit is contained in:
‘937886381’
2023-11-07 19:10:45 +08:00
parent 34e8178ddc
commit 1962ecc6df
55 changed files with 7000 additions and 163 deletions

View File

@@ -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('客户端未连接,无法直接打印')