优化标签小票打印

This commit is contained in:
gyq
2024-06-26 14:01:12 +08:00
parent 87627e7b35
commit f3dfd4a121
9 changed files with 203 additions and 423 deletions

View File

@@ -111,6 +111,7 @@
</template>
<script setup>
import _ from 'lodash'
import { ipcRenderer } from "electron";
import { onMounted, ref } from "vue";
import { useRouter, useRoute } from "vue-router";
@@ -170,7 +171,7 @@ function getPrintList() {
}
// 测试打印
function printHandle() {
const printHandle = _.throttle(function () {
if (!form.value.config.deviceName) {
ElMessage.warning("请选择打印设备");
return;
@@ -179,7 +180,7 @@ function printHandle() {
"printerTagSync",
JSON.stringify(printData.value)
);
}
}, 1500, { leading: true, trailing: false })
// 提交打印机
async function submitHandle() {