From 3448eaa46f74c1410cb676a3eedb4098c0fbbc9d Mon Sep 17 00:00:00 2001
From: krysent <10075251+krysent@user.noreply.gitee.com>
Date: Mon, 31 Jul 2023 16:33:16 +0800
Subject: [PATCH] check

---
 src/components/Footer/index.jsx         | 2 +-
 src/pages/insertstore/Instore/index.jsx | 4 ++--
 src/utils/printHandle.js                | 9 ++++++---
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/components/Footer/index.jsx b/src/components/Footer/index.jsx
index 1e6d0e7..7ae5178 100644
--- a/src/components/Footer/index.jsx
+++ b/src/components/Footer/index.jsx
@@ -13,7 +13,7 @@ const Footer = () => {
           key: "download",
           title: "插件下载",
           blankTarget: true,
-          href: '/staticfile/group1/M00/00/00/CLodop_Setup_for_Win32NT.exe',
+          href: '/staticfile/download/CLodop_Setup_for_Win32NT.exe',
         },
         // {
         //   key: "github",
diff --git a/src/pages/insertstore/Instore/index.jsx b/src/pages/insertstore/Instore/index.jsx
index 99d48f5..77ccdf9 100644
--- a/src/pages/insertstore/Instore/index.jsx
+++ b/src/pages/insertstore/Instore/index.jsx
@@ -127,7 +127,7 @@ function Outstore(props) {
                     title: `查看详情`,
                     ...detail,
                     totalPath:
-                      "/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById",
+                      "/ngic-workmanship/wmsMaterieInstore/getInStoreInfoById",
                     totalParams: { id: record.id },
                     extra: (
                       <Button
@@ -245,7 +245,7 @@ function Outstore(props) {
                     title: `查看详情`,
                     ...detail,
                     totalPath:
-                      "/ngic-workmanship/wmsMaterieOutstore/getOutStoreInfoById",
+                      "/ngic-workmanship/wmsMaterieInstoreHis/getInStoreInfoById",
                     totalParams: { id: record.id },
                     extra: (
                       <Button
diff --git a/src/utils/printHandle.js b/src/utils/printHandle.js
index 013a143..ffa5da3 100644
--- a/src/utils/printHandle.js
+++ b/src/utils/printHandle.js
@@ -1,10 +1,15 @@
 import { str } from "@/utils/mymodelhtml.js";
 import { doFetch } from "./doFetch";
 export async function start(url, params) {
-  if (!getLodop) {
+  try {
+    if (!getLodop) {
+      return;
+    }
+  } catch (error) {
     alert("系统检测当前环境未安装相关插件,请先安装C-Lodop插件!");
     return;
   }
+
   const res = await doFetch({ url, params });
   const data = JSON.parse(JSON.stringify(res?.data?.dataList));
   console.log(data);
@@ -17,7 +22,5 @@ export async function start(url, params) {
     LODOP.SET_PRINT_PAGESIZE(0, 800, 600, "");
     // LODOP.PREVIEW();
     LODOP.PRINT();
-
   }
-
 }
-- 
2.21.0