|
|
@@ -186,6 +186,7 @@ import { mapGetters, mapActions } from 'vuex';
|
|
|
import cardName from './components/card-name';
|
|
|
import detailDraw from './components/detail-draw';
|
|
|
import { baseUrl } from '@/config/env';
|
|
|
+import {hiprint, defaultElementTypeProvider} from 'vue-plugin-hiprint'
|
|
|
export default {
|
|
|
components: {
|
|
|
cardName,
|
|
|
@@ -323,13 +324,13 @@ export default {
|
|
|
this.$router.push({path:'/order/add',query})
|
|
|
},
|
|
|
printMySeat(info){
|
|
|
- this.$service.order.info({ id: info.id }).then(res => {
|
|
|
+ this.$service.custom.printSeatSn({ id: info.id }).then(res => {
|
|
|
let printData = res.printData ? res.printData : ''
|
|
|
let str = res.template ? res.template:''
|
|
|
let template = JSON.parse(str)
|
|
|
hiprint.init();
|
|
|
var hiprintTemplate = new hiprint.PrintTemplate({template:template});
|
|
|
- hiprintTemplate.print(printData)
|
|
|
+ hiprintTemplate.print2(printData)
|
|
|
info.printSeatSn = 1
|
|
|
})
|
|
|
},
|