Liuteng 5 月之前
父节点
当前提交
9de246f512
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/HVversion/VocationalWork/YiqiOffice/dyyyzz_1/components/xzyyzzqy.vue

+ 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 {