Browse Source

Merge branch 'live' into edit

戴艳蓉 3 years ago
parent
commit
7c0f8bd0fd

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.77d6ff4c.css


BIN
dist/static/css/app.87fcb7ab.css.gz → dist/static/css/app.77d6ff4c.css.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-82a6a33a.9cdd74fe.css


BIN
dist/static/css/chunk-82a6a33a.9cdd74fe.css.gz


BIN
dist/static/css/chunk-a1612518.743ad1a5.css.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.39253ee2.js


BIN
dist/static/js/app.39253ee2.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.ded2b00c.js


BIN
dist/static/js/app.ded2b00c.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-09413a44.e3a079bd.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-13ecbbc2.b5ccc5f0.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-386edb44.4a9d6eb9.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-6a09703f.32d5b80f.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7f60e04e.33c77f1b.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-82a6a33a.bfcb8be5.js


BIN
dist/static/js/chunk-82a6a33a.bfcb8be5.js.gz


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-a1612518.f9f0e8f4.js


BIN
dist/static/js/chunk-a1612518.f9f0e8f4.js.gz


+ 4 - 51
src/views/stock/check/detail.vue

@@ -101,7 +101,6 @@ import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/stock/check/detail";
 import addEdit from "./components/addEdit";
 import resultUplod from "./components/resultUplod";
-import { getToken } from "@/utils/auth";
 import urlConfig from "@/apis/url-config";
 import { mapGetters } from "vuex";
 
@@ -187,11 +186,10 @@ export default {
         let httpType = `aplication/zip`;
         let model = {
           id: this.queryId,
-          token: getToken(),
         };
         axios({
           method: "post",
-          url: urlConfig.baseURL + "admin/checkexport",
+          url: this.fileUrl + "admin/checkexport",
           responseType: "blob",
           data: model,
           headers: {
@@ -207,18 +205,18 @@ export default {
               let aLink = document.createElement("a");
               aLink.style.display = "none";
               aLink.href = url;
-              aLink.setAttribute("download", `提成数据报表.zip`);
+              aLink.setAttribute("download", `${message}.zip`);
               document.body.appendChild(aLink);
               aLink.click();
               document.body.removeChild(aLink); //下载完成移除元素
               window.URL.revokeObjectURL(url); //释放掉blob对象
 
-              this.$message.success(message + `信息导出成功!`);
+              this.$message.success(`${message}导出成功!`);
               setTimeout(() => {
                 this.loading = false;
               }, 500);
             } else {
-              // this.$message.error(res.data.message);
+              this.$message.error(res.data.message);
               setTimeout(() => {
                 this.loading = false;
               }, 500);
@@ -229,51 +227,6 @@ export default {
             this.loading = false;
           });
       }
-      // if (!this.loading) {
-      //   this.loading = true;
-      //   let httpType = `aplication/zip`;
-      //   let model = {
-      //     id: this.queryId,
-      //     token: getToken(),
-      //   };
-      //   axios({
-      //     method: "post",
-      //     url: this.fileUrl + "admin/checkexport",
-      //     responseType: "blob",
-      //     data: model,
-      //     headers: {
-      //       Accept: httpType,
-      //     },
-      //   })
-      //     .then((res) => {
-      //       if (res && res.status == 200 && res.data) {
-      //         let blob = new Blob([res.data], {
-      //           type: httpType,
-      //         });
-      //         let url = window.URL.createObjectURL(blob);
-      //         let aLink = document.createElement("a");
-      //         aLink.style.display = "none";
-      //         aLink.href = url;
-      //         aLink.setAttribute("download", `${message}.zip`);
-      //         document.body.appendChild(aLink);
-      //         aLink.click();
-      //         document.body.removeChild(aLink); //下载完成移除元素
-      //         window.URL.revokeObjectURL(url); //释放掉blob对象
-      //         this.$message.success(message + `信息导出成功!`);
-      //         setTimeout(() => {
-      //           this.loading = false;
-      //         }, 500);
-      //       } else {
-      //         this.$message.error(`信息导出失败!`);
-      //         setTimeout(() => {
-      //           this.loading = false;
-      //         }, 500);
-      //       }
-      //     })
-      //     .catch((error) => {
-      //       this.loading = false;
-      //     });
-      // }
     },
     async deleteById(message) {
       const res = await asyncRequest.delete({ id: this.queryId });

+ 3 - 2
src/views/stock/check/index.vue

@@ -133,6 +133,7 @@
                     重置
                   </el-button>
                 </el-col>
+
                 <el-col
                   :span="3"
                   style="width: 66px; float: right"
@@ -205,7 +206,6 @@ import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/stock/check";
 import addModel from "./addModel";
 import { mapGetters } from "vuex";
-
 export default {
   name: "check",
   mixins: [mixinPage, resToken],
@@ -336,7 +336,7 @@ export default {
 
   methods: {
     restSearch() {
-        // 表格 - 分页
+      // 表格 - 分页
       this.pageInfo = {
         size: 15,
         curr: 1,
@@ -378,6 +378,7 @@ export default {
         await this.searchList();
       }
     },
+
     async searchList() {
       if (
         (this.parmValue.start !== "" && this.parmValue.end === "") ||

Some files were not shown because too many files changed in this diff