|
@@ -58,7 +58,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
|
<a-form-item label="客户类型">
|
|
|
- <v-select code="DEALER_TYPE" id="shortageStatisticsCList-dealerType" v-model="queryParam.dealerType" allowClear placeholder="请选择客户类型"></v-select>
|
|
|
+ <dealerType id="shortageStatisticsCList-dealerType" v-model="dealerType" @change="getDealerType" allowClear placeholder="请选择客户类型"></dealertype>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :md="6" :sm="24">
|
|
@@ -159,16 +159,18 @@ import ProductType from '@/views/common/productType.js'
|
|
|
import ProductBrand from '@/views/common/productBrand.js'
|
|
|
import chooseWarehouse from '@/views/common/chooseWarehouse'
|
|
|
import customerService from '@/views/common/customerService'
|
|
|
+import dealerType from '@/views/common/dealerType.js'
|
|
|
import { oosBuyerList, oosBuyerDetailCount, oosBuyerDetailPageCount, oosDetailExport } from '@/api/oos'
|
|
|
export default {
|
|
|
name: 'ShortageStatisticsCList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, dealerSubareaScopeList, subarea, Area, rangeDate, ProductBrand, ProductType, chooseWarehouse, customerService },
|
|
|
+ components: { STable, VSelect, dealerSubareaScopeList, subarea, Area, rangeDate, ProductBrand, ProductType, chooseWarehouse, customerService, dealerType },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
|
advanced: true, // 高级搜索 展开/关闭
|
|
|
tableHeight: 0, // 表格高度
|
|
|
+ dealerType: [],
|
|
|
queryParam: { // 查询条件
|
|
|
beginDate: getDate.getCurrMonthDays().starttime,
|
|
|
endDate: getDate.getCurrMonthDays().endtime,
|
|
@@ -184,7 +186,8 @@ export default {
|
|
|
productTypeSn3: '', // 产品三级分类
|
|
|
salesBillNo: '',
|
|
|
provinceSn: undefined,
|
|
|
- dealerType: undefined,
|
|
|
+ dealerType1: undefined, // 商户类型
|
|
|
+ dealerType2: undefined, // 商户类型
|
|
|
brandType: undefined,
|
|
|
productBrandSn: undefined,
|
|
|
state: undefined,
|
|
@@ -210,6 +213,9 @@ export default {
|
|
|
const no = (data.pageNo - 1) * data.pageSize
|
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
|
data.list[i].no = no + i + 1
|
|
|
+ if (data.list[i].dealerEntity.dealerTypeName1) {
|
|
|
+ data.list[i].dealerTypeName = data.list[i].dealerEntity.dealerTypeName1 + '>' + data.list[i].dealerEntity.dealerTypeName2
|
|
|
+ }
|
|
|
}
|
|
|
this.disabled = false
|
|
|
this.getCount(params)
|
|
@@ -233,7 +239,7 @@ export default {
|
|
|
{ title: '省份', dataIndex: 'dealerEntity.provinceName', width: 80, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '客户名称', dataIndex: 'dealerEntity.dealerName', width: 140, align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
{ title: '仓库', dataIndex: 'warehouseName', width: 100, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- { title: '客户类型', dataIndex: 'dealerEntity.dealerTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '客户类型', dataIndex: 'dealerTypeName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '创建时间', dataIndex: 'createDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '品牌', dataIndex: 'productEntity.productBrandName', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '二级分类', dataIndex: 'productEntity.productTypeName2', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
|
|
@@ -293,8 +299,13 @@ export default {
|
|
|
this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
|
this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
|
},
|
|
|
+ getDealerType (v, o) {
|
|
|
+ this.queryParam.dealerType1 = v[0]
|
|
|
+ this.queryParam.dealerType2 = v[1]
|
|
|
+ },
|
|
|
// 重置
|
|
|
resetSearchForm () {
|
|
|
+ this.dealerType = []
|
|
|
this.$refs.rangeDate.resetDate(this.time)
|
|
|
this.queryParam.beginDate = getDate.getCurrMonthDays().starttime
|
|
|
this.queryParam.endDate = getDate.getCurrMonthDays().endtime
|
|
@@ -312,7 +323,8 @@ export default {
|
|
|
this.queryParam.productTypeSn3 = ''
|
|
|
this.queryParam.salesBillNo = ''
|
|
|
this.queryParam.provinceSn = undefined
|
|
|
- this.queryParam.dealerType = undefined
|
|
|
+ this.queryParam.dealerType1 = undefined
|
|
|
+ this.queryParam.dealerType2 = undefined
|
|
|
this.queryParam.brandType = undefined
|
|
|
this.queryParam.productBrandSn = undefined
|
|
|
this.queryParam.state = undefined
|