优化订单打印

This commit is contained in:
gyq
2025-03-31 09:21:08 +08:00
parent e13727e6ff
commit 0c45fd9de1
6 changed files with 41 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="device_container">
<div class="device_container" v-loading="requestLoading">
<div class="header" @click="router.back()">
<el-icon style="position: relative; top: 2px; margin-right: 4px" size="22">
<ArrowLeft />
@@ -139,6 +139,7 @@ const route = useRoute();
const printList = ref([]);
const feets = ref([0, 1, 2, 3, 4, 5, 8]);
const loading = ref(false);
const requestLoading = ref(false);
const form = ref({
id: "",
name: '', // 设备名称
@@ -244,11 +245,13 @@ async function submitHandle() {
// 查询打印机详情
async function tbPrintMachineDetailAjax(id) {
try {
requestLoading.value = true;
const res = await printerDetail({ id: id });
form.value = res;
} catch (error) {
console.log(error);
}
requestLoading.value = false;
}
onMounted(() => {

View File

@@ -1,5 +1,5 @@
<template>
<div class="device_container">
<div class="device_container" v-loading="requestLoading">
<div class="header" @click="router.back()">
<el-icon style="position: relative; top: 2px; margin-right: 4px" size="22">
<ArrowLeft />
@@ -125,6 +125,7 @@ const classifyRef = ref(null);
const printList = ref([]);
const feets = ref([0, 1, 2, 3, 4, 5, 8]);
const loading = ref(false);
const requestLoading = ref(false);
const form = ref({
id: "",
name: '', // 设备名称
@@ -210,6 +211,7 @@ async function submitHandle() {
// 查询打印机详情
async function tbPrintMachineDetailAjax() {
try {
requestLoading.value = true;
const res = await printerDetail({ id: route.query.id });
form.value = res;
@@ -228,6 +230,7 @@ async function tbPrintMachineDetailAjax() {
} catch (error) {
console.log(error);
}
requestLoading.value = false;
}
onMounted(() => {