打印
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<!-- <el-button @click="chooseSerial">获取串口列表</el-button> -->
|
||||
<el-button @click="initWebSocket()">连接ws</el-button>
|
||||
<el-button @click="dakai()"></el-button>
|
||||
<!-- 打印二维码 -->
|
||||
<rintermodelindex ref="rintermodelindexref" :form="form" @somethingDone="handleSomethingDone"></rintermodelindex>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -12,8 +15,24 @@ import { ipcRenderer } from 'electron'
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useUser } from "@/store/user.js";
|
||||
import useStorage from '@/utils/useStorage'
|
||||
import rintermodelindex from '@/components/lodop/index.vue'
|
||||
const store = useUser();
|
||||
|
||||
const rintermodelindexref = ref()//打印机ref
|
||||
// 打印成功回调
|
||||
const handleSomethingDone = () => {
|
||||
console.log('打印成功回调成功')
|
||||
}
|
||||
const form = ref({
|
||||
article: '1',
|
||||
type: '2',
|
||||
|
||||
})
|
||||
const dakai = () => {
|
||||
rintermodelindexref.value.centerDialogVisibleshow() //打开二维码打印
|
||||
rintermodelindexref.value.initialization()
|
||||
}
|
||||
|
||||
// 小票打印机列表
|
||||
const printList = ref([]);
|
||||
// 标签打印机列表
|
||||
|
||||
Reference in New Issue
Block a user