优化标签小票打印
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user