Browse Source

供应商添加商品暂存

jiandexin1 1 year ago
parent
commit
c4e58ed89e
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/views/store/storegoods/index.vue

+ 8 - 1
src/views/store/storegoods/index.vue

@@ -70,7 +70,6 @@
               class="upload-demo"
               accept=".xls, .xlsx"
               :action="importUrl"
-              :before-upload="beforeAvatarUpload"
               :on-success="handleImportSuccess"
               :on-error="handleImportError"
               :limit="1"
@@ -137,6 +136,7 @@
   import {mapGetters} from "vuex";
   import {getByParentId} from "../../../api/mall/categoryinfo";
   import {getList as getStoreList} from "@/api/mall/store";
+  import {getToken} from '@/util/auth';
 
   export default {
 
@@ -151,6 +151,13 @@
       return {
         batchImportBox: false,
         fileList: [],
+        importUrl: baseUrl + "/api/mall/goodsinfo/batchImport",
+        fileDa: {
+          storeId: ''
+        },
+        headers: {
+          'Blade-Auth': 'bearer ' + getToken()
+        },
         option:  {
           height: 'auto',
           calcHeight: 30,