Forráskód Böngészése

轮胎销售报表导出

chenrui 1 éve
szülő
commit
ebbc509c4f

+ 18 - 0
src/api/reportData.js

@@ -1029,6 +1029,15 @@ export const querySaleDealercount = (params) => {
     method: 'post'
   })
 }
+// 轮胎销售报表(经销商)  导出
+export const excelSaleOnlineExport = (params) => {
+  return axios({
+    url: '/report/tracecode/excelSaleOnlineList',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
 
 // 轮胎销售报表(区域/分区)  列表
 export const querySaleAreaPage = (params) => {
@@ -1050,3 +1059,12 @@ export const querySaleAreaCount = (params) => {
     method: 'post'
   })
 }
+// 轮胎销售报表(区域/分区)  导出
+export const excelSaleAreaOnlineExport = (params) => {
+  return axios({
+    url: '/report/tracecode/excelSaleAreaOnlineList',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}

+ 1 - 1
src/views/productManagement/productSourcePath/list.vue

@@ -214,7 +214,7 @@ export default {
         { title: '唯一码', dataIndex: 'traceCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'productName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'buyerName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '质保状态', dataIndex: 'warrantyStateValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '质保状态', dataIndex: 'warrantyStateDictValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '质保时间', scopedSlots: { customRender: 'warrantyTime' }, width: '10%', align: 'center' },
         { title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
       ],

+ 8 - 22
src/views/reportData/tireSalesReport/dealerList.vue

@@ -93,7 +93,7 @@
             <a-row :gutter="15">
               <a-col :md="4" :sm="24">采购数量:{{ (totalData && (totalData.totalbuyAmount || totalData.totalbuyAmount==0)) ? totalData.totalbuyAmount : '--' }}</a-col>
               <a-col :md="4" :sm="24">库存数量:{{ (totalData && (totalData.totalstoreAmount || totalData.totalstoreAmount==0)) ? totalData.totalstoreAmount: '--' }}</a-col>
-              <a-col :md="4" :sm="24">已售出数量:{{ (totalData && (totalData.sellAmount || totalData.sellAmount==0)) ?totalData.sellAmount: '--' }}</a-col>
+              <a-col :md="4" :sm="24">已售出数量:{{ (totalData && (totalData.totalsellAmount || totalData.totalsellAmount==0)) ?totalData.totalsellAmount: '--' }}</a-col>
             </a-row>
           </template>
         </s-table>
@@ -111,7 +111,7 @@ import subarea from '@/views/common/subarea.js'
 import AreaList from '@/views/common/areaList.js'
 import BizUser from '@/views/common/bizUser.js'
 import { hdExportExcel } from '@/libs/exportExcel'
-import { querySaleDealercount, reportSalesBillExport, querybyDealerList } from '@/api/reportData'
+import { querySaleDealercount, excelSaleOnlineExport, querybyDealerList } from '@/api/reportData'
 export default {
   name: 'TireSalesDealerList',
   mixins: [commonMixin],
@@ -247,28 +247,14 @@ export default {
     //  导出
     handleExport () {
       const _this = this
-      this.$refs.ruleForm.validate(valid => {
-        if (valid) {
-          const params = _this.queryParam
-          _this.$store.state.app.curActionPermission = 'B_salesOrderTotalExport'
-          _this.showExport = true
-          _this.exportLoading = true
-          _this.spinning = true
-          hdExportExcel(reportSalesBillExport, params, '轮胎销售报表(经销商)', function () {
-            _this.exportLoading = false
-            _this.spinning = false
-            _this.$store.state.app.curActionPermission = ''
-          })
-        } else {
-          return false
-        }
+      const params = _this.queryParam
+      _this.exportLoading = true
+      _this.spinning = true
+      hdExportExcel(excelSaleOnlineExport, params, '轮胎销售报表(经销商)', function () {
+        _this.exportLoading = false
+        _this.spinning = false
       })
     },
-    filterOption (input, option) {
-      return (
-        option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
-      )
-    },
     pageInit () {
       const _this = this
       this.$nextTick(() => { // 页面渲染完成后的回调

+ 10 - 19
src/views/reportData/tireSalesReport/subareaList.vue

@@ -70,9 +70,9 @@
           bordered>
           <template slot="footer">
             <a-row :gutter="15">
-              <a-col :md="4" :sm="24">采购数量:{{ (totalData && (totalData.buyAmount || totalData.buyAmount==0)) ? totalData.buyAmount : '--' }}</a-col>
-              <a-col :md="4" :sm="24">库存数量:{{ (totalData && (totalData.storeAmount || totalData.storeAmount==0)) ? totalData.storeAmount: '--' }}</a-col>
-              <a-col :md="4" :sm="24">已售出数量:{{ (totalData && (totalData.sellAmount || totalData.sellAmount==0)) ?totalData.sellAmount: '--' }}</a-col>
+              <a-col :md="4" :sm="24">采购数量:{{ (totalData && (totalData.totalbuyAmount || totalData.totalbuyAmount==0)) ? totalData.totalbuyAmount : '--' }}</a-col>
+              <a-col :md="4" :sm="24">库存数量:{{ (totalData && (totalData.totalsellAmount || totalData.totalsellAmount==0)) ? totalData.totalsellAmount: '--' }}</a-col>
+              <a-col :md="4" :sm="24">已售出数量:{{ (totalData && (totalData.totalstoreAmount || totalData.totalstoreAmount==0)) ?totalData.totalstoreAmount: '--' }}</a-col>
             </a-row>
           </template>
         </s-table>
@@ -89,7 +89,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import subarea from '@/views/common/subarea.js'
 import BizUser from '@/views/common/bizUser.js'
 import { hdExportExcel } from '@/libs/exportExcel'
-import { querySaleAreaCount, reportSalesBillExport, querySaleAreaPage } from '@/api/reportData'
+import { querySaleAreaCount, excelSaleAreaOnlineExport, querySaleAreaPage } from '@/api/reportData'
 export default {
   name: 'TireSalesSubareaList',
   mixins: [commonMixin],
@@ -192,21 +192,12 @@ export default {
     //  导出
     handleExport () {
       const _this = this
-      this.$refs.ruleForm.validate(valid => {
-        if (valid) {
-          const params = _this.queryParam
-          _this.$store.state.app.curActionPermission = 'B_salesOrderTotalExport'
-          _this.showExport = true
-          _this.exportLoading = true
-          _this.spinning = true
-          hdExportExcel(reportSalesBillExport, params, '轮胎销售报表(区域/分区)', function () {
-            _this.exportLoading = false
-            _this.spinning = false
-            _this.$store.state.app.curActionPermission = ''
-          })
-        } else {
-          return false
-        }
+      const params = _this.queryParam
+      _this.exportLoading = true
+      _this.spinning = true
+      hdExportExcel(excelSaleAreaOnlineExport, params, '轮胎销售报表(区域/分区)', function () {
+        _this.exportLoading = false
+        _this.spinning = false
       })
     },
     pageInit () {