Pārlūkot izejas kodu

对接 价格变更记录 导出

chenrui 4 gadi atpakaļ
vecāks
revīzija
d35fb4c125

+ 9 - 1
src/api/product.js

@@ -192,7 +192,15 @@ export const productPriceChangeList = (params) => {
     method: 'post'
   })
 }
-
+//  价格变更记录 导出
+export const productPriceChangeExport = (params) => {
+  return axios({
+    url: '/product/priceChange/exportExcel',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
 //  产品  级别 列表  分页
 export const productLevelList = (params) => {
   const url = `/product/level/queryPage/${params.pageNo}/${params.pageSize}`

+ 5 - 5
src/views/productManagement/priceChangeRecord/list.vue

@@ -122,7 +122,7 @@ import { STable, VSelect } from '@/components'
 import rangeDate from '@/views/common/rangeDate.vue'
 import { productBrandQuery } from '@/api/productBrand'
 import { productTypeQuery } from '@/api/productType'
-import { productPriceChangeList } from '@/api/product'
+import { productPriceChangeList, productPriceChangeExport } from '@/api/product'
 export default {
   components: { STable, VSelect, rangeDate },
   data () {
@@ -282,10 +282,10 @@ export default {
     handleExport () {
       const params = this.queryParam
       this.exportLoading = true
-      // customerBundleExportDelay(params).then(res => {
-      //   this.exportLoading = false
-      //   this.download(res)
-      // })
+      productPriceChangeExport(params).then(res => {
+        this.exportLoading = false
+        this.download(res)
+      })
     },
     download (data) {
       if (!data) { return }