snow 4 months ago
parent
commit
4170aae981

+ 4 - 1
src/api/InvoiceSales/batchImportYunlong/index.ts

@@ -19,5 +19,8 @@ export const httpList = (data: object): ResponseType => {
 
 
 export const httpAdd = (data: object): ResponseType => {
-  return http.request("post", `${yewuApi}orderinvadd`, { data });
+  return http.request("post", `${yewuApi}orderinvadd`, { data: {
+    ...data,
+    noLogout: true
+  } });
 };

+ 2 - 11
src/utils/http/index.ts

@@ -43,11 +43,7 @@ class PureHttp {
       const { data } = response;
       const { code, message } = data;
       //响应code 检查登出
-      if (
-        Number(code) >= 101 &&
-        Number(code) <= 140 &&
-        message !== "账户已禁用"
-      ) {
+      if (Number(code) >= 101 && Number(code) <= 140 && message !== "账户已禁用") {
         trigger("userLogout");
       }
 
@@ -57,7 +53,6 @@ class PureHttp {
     PureHttp.axiosInstance.interceptors.request.use(
       (config: PureHttpRequestConfig) => {
         const $config = config;
-        // console.log($config);
         // 开启进度条动画
         NProgress.start();
         // 优先判断post/get等方法是否传入回掉,否则执行初始化设置等回掉
@@ -77,9 +72,7 @@ class PureHttp {
         if (token && config && config.data) {
           config.data["token"] = token;
 
-          config.data["relaComNo"] = config.data["relaComNo"]
-            ? config.data["relaComNo"]
-            : relaComNo;
+          config.data["relaComNo"] = config.data["relaComNo"] ? config.data["relaComNo"] : relaComNo;
 
           if (config.data["noRela"] || isSuper) {
             config.data["relaComNo"] = "";
@@ -90,8 +83,6 @@ class PureHttp {
             delete config.data["relaComNo"];
             delete config.data["emptyRela"];
           }
-
-
           return $config;
         } else {
           return $config;

+ 1 - 5
src/views/InvoiceSales/capitalClaim/index.vue

@@ -35,14 +35,13 @@ const execlBusinessUploadRef = ref<InstanceType<typeof ExcelBusinessUpload> | nu
 
 const pageName = "capitalClaim";
 
-
 //  { code: "009", name: "撤销资金认领" },
 //  { code: "029", name: "下载资金导入模板" },
 //  { code: "030", name: "批量导入客户付款资金数据" },
 //  { code: "034", name: "下载订单认款导入模板" },
 //  { code: "035", name: "批量导入订单认款数据" }
 
-const loading = ref(false);
+const loading = ref(false)
 const visible = ref(false)
 
 const { run: withDraw } = useAsync({ success: () => pageContentRef.value.onSearch() });
@@ -212,7 +211,4 @@ function handleShow(row){
 .star {
   color: red;
 }
-
-
-
 </style>