|
@@ -1,10 +1,10 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <a-card size="small" :bordered="false" class="tireSalesReportList-wrap searchBoxNormal">
|
|
|
+ <a-card size="small" :bordered="false" class="feeDetailList-wrap searchBoxNormal">
|
|
|
<!-- 搜索条件 -->
|
|
|
<div class="table-page-search-wrapper" ref="tableSearch">
|
|
|
<a-form-model
|
|
|
- id="tireSalesReportList-form"
|
|
|
+ id="feeDetailList-form"
|
|
|
ref="ruleForm"
|
|
|
class="form-model-con"
|
|
|
layout="inline"
|
|
@@ -13,29 +13,27 @@
|
|
|
<a-row :gutter="15">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="统计月份" prop="time">
|
|
|
- <rangeDate
|
|
|
- ref="rangeDate"
|
|
|
- id="tireSalesReportList-time"
|
|
|
- :showTime="false"
|
|
|
- :today="false"
|
|
|
- :value="queryParam.time"
|
|
|
- @change="dateChange" />
|
|
|
+ <monthDate
|
|
|
+ ref="monthDate"
|
|
|
+ id="monthQueryList-time"
|
|
|
+ :value="queryParam.monthVal"
|
|
|
+ @change="monthChange"></monthDate>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="地区">
|
|
|
- <AreaList id="tireSalesReportList-areaList" changeOnSelect ref="areaList" @change="areaChange" defValKey="id"></AreaList>
|
|
|
+ <AreaList id="feeDetailList-areaList" changeOnSelect ref="areaList" @change="areaChange" defValKey="id"></AreaList>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="区域/分区">
|
|
|
- <subarea id="tireSalesReportList-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
+ <subarea id="feeDetailList-subarea" ref="subarea" @change="subareaChange"></subarea>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-model-item label="客户名称">
|
|
|
- <dealerSubareaScopeList ref="dealerSubareaScopeList" id="tireSalesReportList-dealerName" @change="custChange" />
|
|
|
+ <dealerSubareaScopeList ref="dealerSubareaScopeList" id="feeDetailList-dealerName" @change="custChange" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -43,7 +41,7 @@
|
|
|
<v-select
|
|
|
v-model="queryParam.dealerLevel"
|
|
|
ref="dealerLevel"
|
|
|
- id="tireSalesReportList-dealerLevel"
|
|
|
+ id="feeDetailList-dealerLevel"
|
|
|
code="DEALER_LEVEL"
|
|
|
placeholder="请选择客户级别"
|
|
|
allowClear></v-select>
|
|
@@ -54,7 +52,7 @@
|
|
|
<v-select
|
|
|
v-model="queryParam.dealerLevel"
|
|
|
ref="dealerLevel"
|
|
|
- id="tireSalesReportList-dealerLevel"
|
|
|
+ id="feeDetailList-dealerLevel"
|
|
|
code="DEALER_LEVEL"
|
|
|
placeholder="请选择轮胎省仓"
|
|
|
allowClear></v-select>
|
|
@@ -66,12 +64,12 @@
|
|
|
type="primary"
|
|
|
@click="handleSearch"
|
|
|
:disabled="disabled"
|
|
|
- id="tireSalesReportList-refresh">查询</a-button>
|
|
|
+ id="feeDetailList-refresh">查询</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 8px"
|
|
|
@click="resetSearchForm"
|
|
|
:disabled="disabled"
|
|
|
- id="tireSalesReportList-reset">重置</a-button>
|
|
|
+ id="feeDetailList-reset">重置</a-button>
|
|
|
<a-button
|
|
|
style="margin-left: 10px"
|
|
|
type="primary"
|
|
@@ -80,7 +78,7 @@
|
|
|
:disabled="disabled"
|
|
|
:loading="exportLoading"
|
|
|
v-if="$hasPermissions('B_tireReportExport')"
|
|
|
- id="tireSalesReportList-export">导出</a-button>
|
|
|
+ id="feeDetailList-export">导出</a-button>
|
|
|
<a @click="advanced=!advanced" style="margin-left: 5px">
|
|
|
{{ advanced ? '收起' : '展开' }}
|
|
|
<a-icon :type="advanced ? 'up' : 'down'" />
|
|
@@ -116,12 +114,12 @@
|
|
|
type="link"
|
|
|
class="button-warning"
|
|
|
@click="handleOutDetail(record)"
|
|
|
- id="tireSalesReportList-outDetail">出库明细</a-button>
|
|
|
+ id="feeDetailList-outDetail">出库明细</a-button>
|
|
|
<span v-else>--</span>
|
|
|
</template>
|
|
|
<template slot="footer">
|
|
|
<a-row :gutter="15">
|
|
|
- <a-col :md="4" :sm="24" v-if="$hasPermissions('M_tireSalesReportList_salesPrice')">平台出库数量:{{ (totalData && (totalData.putAmount || totalData.putAmount==0)) ? toThousands(totalData.putAmount): '--' }}</a-col>
|
|
|
+ <a-col :md="4" :sm="24" v-if="$hasPermissions('M_feeDetailList_salesPrice')">平台出库数量:{{ (totalData && (totalData.putAmount || totalData.putAmount==0)) ? toThousands(totalData.putAmount): '--' }}</a-col>
|
|
|
<a-col :md="4" :sm="24">省仓出库加盟商:{{ (totalData && (totalData.returnAmount || totalData.returnAmount==0)) ? toThousands(totalData.returnAmount): '--' }}</a-col>
|
|
|
<a-col :md="4" :sm="24">运费补贴:{{ (totalData && (totalData.returnAmount || totalData.returnAmount==0)) ? toThousands(totalData.returnAmount): '--' }}</a-col>
|
|
|
<a-col :md="4" :sm="24">积分合计:{{ (totalData && (totalData.returnAmount || totalData.returnAmount==0)) ? toThousands(totalData.returnAmount): '--' }}</a-col>
|
|
@@ -147,7 +145,7 @@ import { commonMixin } from '@/utils/mixin'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
|
// 组件
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
-import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
+import monthDate from '@/views/common/monthDate.vue'
|
|
|
import subarea from '@/views/common/subarea.js'
|
|
|
import AreaList from '@/views/common/areaList.js'
|
|
|
import BizUser from '@/views/common/bizUser.js'
|
|
@@ -157,9 +155,9 @@ import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
// 接口
|
|
|
import { queryTireDetailCount, tireListExport, tireReportDetailList, tireOutDetailListExport } from '@/api/reportData'
|
|
|
export default {
|
|
|
- name: 'TireSalesReportList',
|
|
|
+ name: 'FeeDetailList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, rangeDate, subarea, AreaList, BizUser, dealerSubareaScopeList, reportModal },
|
|
|
+ components: { STable, VSelect, monthDate, subarea, AreaList, BizUser, dealerSubareaScopeList, reportModal },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
@@ -247,15 +245,15 @@ export default {
|
|
|
{ title: '积分值', dataIndex: 'productEntity.code', width: '14%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '平台出库数量', dataIndex: 'crossRegionQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '省仓出库加盟商数量', dataIndex: 'putQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '运费补贴', dataIndex: 'rptDealerStockVO.totalStockQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '积分合计', dataIndex: 'outQtyDealer', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: <a-tooltip placement='top' title='省仓出库加盟商数量*5'>运费补贴 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'rptDealerStockVO.totalStockQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: <a-tooltip placement='top' title='非轮胎省仓,积分合计=平台出库数量*积分值;是轮胎省仓,积分合计=省仓出给加盟商数量*积分值'>积分合计 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'outQtyDealer', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '积分工厂承担60%', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '积分供应链管理部承担40%', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '开单金额', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '平台服务费率', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '省仓服务费率', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '平台服务费', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
- { title: '省仓服务费', dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
+ { title: <a-tooltip placement='top' title='开单金额 * 平台服务费率'>平台服务费 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
+ { title: <a-tooltip placement='top' title='开单金额 * 省仓服务费率'>省仓服务费 <a-icon type="question-circle" /></a-tooltip>, dataIndex: 'returnQty', width: '14%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
|
|
|
]
|
|
|
return arr
|
|
|
}
|
|
@@ -312,7 +310,7 @@ export default {
|
|
|
this.queryParam.districtSn = val[2] ? val[2] : undefined
|
|
|
},
|
|
|
// 日期选择 change
|
|
|
- dateChange (date) {
|
|
|
+ monthChange (date) {
|
|
|
if (date[0] && date[1]) {
|
|
|
this.queryParam.time = date
|
|
|
} else {
|