Liuteng 5 months ago
parent
commit
9de246f512

+ 3 - 1
src/views/HVversion/VocationalWork/YiqiOffice/dyyyzz_1/components/xzyyzzqy.vue

@@ -159,10 +159,12 @@ export default {
     },
 
     getPaperNum() {
+      this.$loading.show("正在获取打印机纸张数量信息");
       let form = {
-        machineId: JSON.parse(sessionStorage.getItem("MACHINE_INFO")).id,
+        machineId: JSON.parse(sessionStorage.getItem("MACHINE_INFO") || "{}").id || "",
       };
       syPageNum(form).then((res) => {
+        this.$loading.hide()
         if (res.code == 200) {
           this.getYyzz();
         } else {