Pārlūkot izejas kodu

Merge branch 'develop_yh11' of http://git.chelingzhu.com/jianguan-web/jg-ocs-html into develop_yh11

lilei 2 gadi atpakaļ
vecāks
revīzija
4b983eb7e3

+ 7 - 2
src/views/expenseManagement/expenseReimbursement/importGuideModal.vue

@@ -18,7 +18,7 @@
             <li>1) 导入的Excel文件中必须包含名为“记账类型”、“记账名称”、“费用承担方类型”、“费用承担方”、“费用承担金额”的列,且名称必须相同</li>
             <li>2) 其他列可根据实际情况填写,如果符合规则,系统会一起导入</li>
           </ul>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
+          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -86,7 +86,8 @@ export default {
       paramsData: null,
       uploadParams: {
         savePathType: 'local'
-      }
+      },
+      exportLoading: false
     }
   },
   methods: {
@@ -127,6 +128,10 @@ export default {
     },
     // 下载模板
     handleExport () {
+      this.exportLoading = true
+      setTimeout(() => {
+        this.exportLoading = false
+      }, 1000)
       const link = document.createElement('a')
       link.style.display = 'none'
       link.href = 'https://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/expenseAccountDetailImport.xlsx?t=' + new Date().getTime()

+ 0 - 2
src/views/inventoryManagement/intelligentReplenishment/set.vue

@@ -72,13 +72,11 @@ import moment from 'moment'
 import VueCookies from 'vue-cookies'
 import { Upload } from '@/components'
 import { predictProductInfoExport } from '@/api/predict'
-import debounce from 'lodash/debounce'
 export default {
   name: 'IntelligentReplenishmentSet',
   mixins: [commonMixin],
   components: { Upload },
   data () {
-    this.handleExport = debounce(this.handleExport, 2200)
     return {
       spinning: false,
       filePath: 'javascript:;',

+ 7 - 2
src/views/productManagement/productInfo/importGuideModal.vue

@@ -19,7 +19,7 @@
             <li>2) 产品编码具有唯一性,系统中已存在的无法导入</li>
             <li>3) 产品品牌、产品分类、单位、包装数单位,必须是系统中已经存在的值,否则无法导入</li>
           </ul>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
+          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -88,7 +88,8 @@ export default {
       paramsData: null,
       uploadParams: {
         savePathType: 'local'
-      }
+      },
+      exportLoading: false
     }
   },
   methods: {
@@ -122,6 +123,10 @@ export default {
     },
     // 下载模板
     handleExport () {
+      this.exportLoading = true
+      setTimeout(() => {
+        this.exportLoading = false
+      }, 1000)
       const link = document.createElement('a')
       link.style.display = 'none'
       link.href = 'https://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/productImport.xlsx?t=' + new Date().getTime()

+ 7 - 2
src/views/salesManagement/sendOutOrder/importGuideModal.vue

@@ -19,7 +19,7 @@
             <li>2) 如果物流单号相同,则视为同一个发货单</li>
             <li>3) 同一个发货单可有多个不同类型的类型,包括易损件、电池、机油</li>
           </ul>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
+          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -87,7 +87,8 @@ export default {
       paramsData: null,
       uploadParams: {
         savePathType: 'local'
-      }
+      },
+      exportLoading: false
     }
   },
   methods: {
@@ -125,6 +126,10 @@ export default {
     },
     // 下载模板
     handleExport () {
+      this.exportLoading = true
+      setTimeout(() => {
+        this.exportLoading = false
+      }, 1000)
       const link = document.createElement('a')
       link.style.display = 'none'
       link.href = 'https://jg-ocs.oss-cn-beijing.aliyuncs.com/templ/promo/sendOutOrderImport.xlsx?t=' + new Date().getTime()

+ 7 - 2
src/views/salesReturnManagement/salesReturn/importGuideModal.vue

@@ -19,7 +19,7 @@
             <li>2) 除了“产品编码”、“数量”、“价格”、“退货原因”四列,其他列可自定义,不影响数据导入</li>
             <li>3) 如果导入的产品已经存在,则不会导入该行</li>
           </ul>
-          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" @click="handleExport">下载导入模板</a-button>
+          <a-button type="link" icon="download" style="padding: 0 0 0 23px;" :loading="exportLoading" @click="handleExport">下载导入模板</a-button>
         </div>
         <div class="explain-item">
           <div class="explain-tit">
@@ -90,7 +90,8 @@ export default {
       paramsData: null,
       uploadParams: {
         savePathType: 'local'
-      }
+      },
+      exportLoading: false
     }
   },
   methods: {
@@ -125,6 +126,10 @@ export default {
     },
     // 下载模板
     handleExport () {
+      this.exportLoading = true
+      setTimeout(() => {
+        this.exportLoading = false
+      }, 1000)
       const link = document.createElement('a')
       link.style.display = 'none'
       link.href = 'https://jianguan-images.oss-cn-beijing.aliyuncs.com/template/XiaoShouTuiHuoMingXiDaoRu.xlsx?t=' + new Date().getTime()