Przeglądaj źródła

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

lilei 2 lat temu
rodzic
commit
5073d5b94a

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

@@ -72,11 +72,13 @@ 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:;',

+ 3 - 1
src/views/productManagement/productPricing/importGuideModal.vue

@@ -126,9 +126,11 @@ export default {
       const _this = this
       _this.spinning = true
       _this.exportLoading = true
+      setTimeout(() => {
+        _this.exportLoading = false
+      }, 1000)
       hdExportExcel(productPriceTplDownload, {}, '产品定价导入模板', function () {
         _this.spinning = false
-        _this.exportLoading = false
       })
     }
   },

+ 3 - 1
src/views/productManagement/shelfNoManage/importGuideModal.vue

@@ -126,9 +126,11 @@ export default {
       const _this = this
       this.spinning = true
       this.exportLoading = true
+      setTimeout(() => {
+        _this.exportLoading = false
+      }, 1000)
       hdExportExcel(stackPlaceImportTemplate, {}, '货位编号管理导入模板', function () {
         _this.spinning = false
-        _this.exportLoading = false
       })
     }
   },

+ 4 - 2
src/views/purchasingManagement/bulkWarehousingOrder/importGuideModal.vue

@@ -126,10 +126,12 @@ export default {
     handleExport () {
       const _this = this
       const params = { grabFlag: this.params.grabFlag }
-      this.exportLoading = true
       this.spinning = true
-      hdExportExcel(sparePartsDetailDownload, params, '散件入库导入模板', function () {
+      this.exportLoading = true
+      setTimeout(() => {
         _this.exportLoading = false
+      }, 1000)
+      hdExportExcel(sparePartsDetailDownload, params, '散件入库导入模板', function () {
         _this.spinning = false
       })
     }

+ 3 - 1
src/views/salesManagement/salesQuery/importGuideModal.vue

@@ -130,8 +130,10 @@ export default {
       const params = { grabFlag: this.params.grabFlag }
       this.exportLoading = true
       this.spinning = true
-      hdExportExcel(salesDownload, params, '销售导入模板', function () {
+      setTimeout(() => {
         _this.exportLoading = false
+      }, 1000)
+      hdExportExcel(salesDownload, params, '销售导入模板', function () {
         _this.spinning = false
       })
     }