|
@@ -133,7 +133,6 @@
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import moment from 'moment'
|
|
import moment from 'moment'
|
|
-import tableTitle from './dataCustomer.js'
|
|
|
|
// 组件
|
|
// 组件
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
import subarea from '@/views/common/subarea.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
@@ -142,7 +141,7 @@ import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
import BizUser from '@/views/common/bizUser.js'
|
|
import BizUser from '@/views/common/bizUser.js'
|
|
import customerService from '@/views/common/customerService.vue'
|
|
import customerService from '@/views/common/customerService.vue'
|
|
// 接口
|
|
// 接口
|
|
-import { salesStatsDealerList, salesStatsDealerCount, salesStatsDealerExport } from '@/api/reportData'
|
|
|
|
|
|
+import { reportDealerNewLogList, reportDealerNewLogCount, reportDealerNewLogTitle, reportDealerNewLogExport } from '@/api/reportData'
|
|
export default {
|
|
export default {
|
|
name: 'CustomerCountList',
|
|
name: 'CustomerCountList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
@@ -189,7 +188,7 @@ export default {
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
params.removeReportFlag = 1
|
|
params.removeReportFlag = 1
|
|
// 获取列表数据 有分页
|
|
// 获取列表数据 有分页
|
|
- return salesStatsDealerList(params).then(res => {
|
|
|
|
|
|
+ return reportDealerNewLogList(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
@@ -234,6 +233,7 @@ export default {
|
|
// 获取表头
|
|
// 获取表头
|
|
async getTableTitle () {
|
|
async getTableTitle () {
|
|
const _this = this
|
|
const _this = this
|
|
|
|
+ const tableTitle = await reportDealerNewLogTitle({}).then(res => res.data)
|
|
this.columns = tableTitle.list
|
|
this.columns = tableTitle.list
|
|
this.countLabel = tableTitle.count
|
|
this.countLabel = tableTitle.count
|
|
this.columns.map(item => {
|
|
this.columns.map(item => {
|
|
@@ -272,7 +272,7 @@ export default {
|
|
},
|
|
},
|
|
// 统计
|
|
// 统计
|
|
getCount (params) {
|
|
getCount (params) {
|
|
- salesStatsDealerCount(params).then(res => {
|
|
|
|
|
|
+ reportDealerNewLogCount(params).then(res => {
|
|
if (res.status == 200 && res.data) {
|
|
if (res.status == 200 && res.data) {
|
|
const mergedList = this.countLabel.map(item => {
|
|
const mergedList = this.countLabel.map(item => {
|
|
const key = item.key
|
|
const key = item.key
|
|
@@ -341,7 +341,7 @@ export default {
|
|
params.removeReportFlag = this.removeReportFlag
|
|
params.removeReportFlag = this.removeReportFlag
|
|
_this.exportLoading = true
|
|
_this.exportLoading = true
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
- hdExportExcel(salesStatsDealerExport, params, this.removeReportFlag == 0 ? '开单统计报表(客户)' : '未统计销售退货(客户)', function () {
|
|
|
|
|
|
+ hdExportExcel(reportDealerNewLogExport, params, this.removeReportFlag == 0 ? '开单统计报表(客户)' : '未统计销售退货(客户)', function () {
|
|
_this.exportLoading = false
|
|
_this.exportLoading = false
|
|
_this.spinning = false
|
|
_this.spinning = false
|
|
})
|
|
})
|