فهرست منبع

修改导入导出模板接口

Qukatie 5 ماه پیش
والد
کامیت
6ae6000f26

+ 2 - 1
src/views/tirePartsMall/basicData/shareListing/index.vue

@@ -541,9 +541,10 @@ export default {
         }
       }
       const routeData = this.$router.resolve({
-        path: '/api/blade-sales-part/shareputonshelves/exportShareProductLaunch',      //跳转目标窗口的地址
+        path: '/api/blade-sales-part/shareputonshelves/exportShareProductLaunchData',      //跳转目标窗口的地址
         query: {
           ...config.params,    //括号内是要传递给新窗口的参数
+          billType: 0,
           identification: this.url
         }
       })

+ 12 - 4
src/views/tirePartsMall/basicData/shareListingNext/index.vue

@@ -43,6 +43,9 @@
 
             <template slot-scope="{type,size,row,$index}" slot="menuLeft">
               <el-button type="primary" size="mini" icon="el-icon-top" @click="outExport">导出</el-button>
+              <el-button class="el-icon-bottom" type="warning" size="small" @click="excelBoxfun('名称')">
+                导入
+              </el-button>
               <!-- <el-button class="el-icon-bottom" type="warning" size="small" @click="excelBoxfun('code')">
                 按编码导入
               </el-button> -->
@@ -335,6 +338,9 @@ export default {
           dicUrl: '/api/blade-sales-part/brandDesc/listAll?type=PP&enableOrNot=1',
           hide: true,
           filterable: true,
+          addDisplay:false,
+          editDisplay:false,
+          viewDisplay:false,
           disabled: true,
           overHidden: false,
         }, {
@@ -368,6 +374,7 @@ export default {
           label: "共享成本",
           prop: "shareCost",
           hide: false,
+          disabled: true,
           overHidden: true,
         },
         {
@@ -514,8 +521,8 @@ export default {
     // 导入
     excelBoxfun(name) {
       if (name == '名称') {
-        this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/shareputonshelves/importShareProductLaunch'
-        this.templateUrl = '/api/blade-sales-part/shareputonshelves/exportShareProductLaunch'
+        this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/shareputonshelves/importShareTheNextDay'
+        this.templateUrl = '/api/blade-sales-part/shareputonshelves/exportShareTheNextDayData'
       }
       // else if (name == 'code') {
       //   this.findObject(this.excelOption.column, "excelFile").action = '/api/blade-sales-part/productLaunch/import-productLaunch-code'
@@ -541,9 +548,10 @@ export default {
         }
       }
       const routeData = this.$router.resolve({
-        path: '/api/blade-sales-part/shareputonshelves/exportShareProductLaunch',      //跳转目标窗口的地址
+        path: '/api/blade-sales-part/shareputonshelves/exportShareProductLaunchData',      //跳转目标窗口的地址
         query: {
           ...config.params,    //括号内是要传递给新窗口的参数
+          billType:1,
           identification: this.url
         }
       })
@@ -621,7 +629,7 @@ export default {
     derivation() {
       window.open(
         `${this.templateUrl}?${this.website.tokenHeader
-        }=${getToken()}`
+        }=${getToken()}&billType=1`
       );
     },
     uploadAfter(res, done, loading, column) {