|
@@ -26,7 +26,7 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-item label="经销商名称">
|
|
<a-form-item label="经销商名称">
|
|
- <a-input id="salesManagementList-purchaseBillNo" v-model.trim="queryParam.purchaseBillNo" allowClear placeholder="请输入经销商名称"/>
|
|
|
|
|
|
+ <a-input id="salesManagementList-purchaseBillNo" v-model.trim="queryParam.dealerName" allowClear placeholder="请输入经销商名称"/>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
<a-col :md="6" :sm="24" style="margin-bottom: 10px;">
|
|
@@ -56,6 +56,10 @@
|
|
:scroll="{ y: 450 }"
|
|
:scroll="{ y: 450 }"
|
|
:rowClassName="(record, index) => record.checkProfitLossQty < 0 ? 'redBg-row':''"
|
|
:rowClassName="(record, index) => record.checkProfitLossQty < 0 ? 'redBg-row':''"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 地区 -->
|
|
|
|
+ <template slot="address" slot-scope="text, record">
|
|
|
|
+ {{ record.provinceName }}{{ record.cityName }}{{ record.districtName }}{{ record.address }}
|
|
|
|
+ </template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-card>
|
|
</a-card>
|
|
<div class="btn-cont">
|
|
<div class="btn-cont">
|
|
@@ -67,7 +71,6 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { commonMixin } from '@/utils/mixin'
|
|
import { commonMixin } from '@/utils/mixin'
|
|
-import { hdPrint } from '@/libs/JGPrint.js'
|
|
|
|
import { STable } from '@/components'
|
|
import { STable } from '@/components'
|
|
import ProductType from '@/views/common/productType.js'
|
|
import ProductType from '@/views/common/productType.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
import subarea from '@/views/common/subarea.js'
|
|
@@ -94,12 +97,14 @@ export default {
|
|
exportShow: false,
|
|
exportShow: false,
|
|
exportLoading: false,
|
|
exportLoading: false,
|
|
queryParam: {
|
|
queryParam: {
|
|
- subareaSn: undefined,
|
|
|
|
- subareaAreaSn: undefined,
|
|
|
|
|
|
+ subareaArea: {
|
|
|
|
+ subareaSn: undefined,
|
|
|
|
+ subareaAreaSn: undefined
|
|
|
|
+ },
|
|
provinceSn: undefined,
|
|
provinceSn: undefined,
|
|
citySn: undefined,
|
|
citySn: undefined,
|
|
districtSn: undefined,
|
|
districtSn: undefined,
|
|
- dealerSn: undefined
|
|
|
|
|
|
+ dealerName: undefined
|
|
},
|
|
},
|
|
// 加载数据方法 必须为 Promise 对象
|
|
// 加载数据方法 必须为 Promise 对象
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
@@ -123,6 +128,7 @@ export default {
|
|
basicInfoData: null, // 基本信息
|
|
basicInfoData: null, // 基本信息
|
|
productTotal: null,
|
|
productTotal: null,
|
|
productType: [],
|
|
productType: [],
|
|
|
|
+ snObj: undefined, // 经销商列表
|
|
warehouseList: [], // 仓库 下拉数据
|
|
warehouseList: [], // 仓库 下拉数据
|
|
localDataSource: [],
|
|
localDataSource: [],
|
|
isPrice: false, // 仅显示盈亏
|
|
isPrice: false, // 仅显示盈亏
|
|
@@ -131,9 +137,9 @@ export default {
|
|
printerType: 'NEEDLE', // 打印机类型
|
|
printerType: 'NEEDLE', // 打印机类型
|
|
columns: [
|
|
columns: [
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
{ title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
|
|
- { title: '地区', dataIndex: 'address', width: '20%', align: 'left', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '区域', dataIndex: 'subareaName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '分区', dataIndex: 'subareaAreaName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '地区', scopedSlots: { customRender: 'address' }, width: '20%', align: 'center', ellipsis: true },
|
|
|
|
+ { title: '区域', dataIndex: 'subareaArea.subareaName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '分区', dataIndex: 'subareaArea.subareaAreaName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '经销商名称', dataIndex: 'dealerName', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '经销商名称', dataIndex: 'dealerName', width: '20%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '商户类型', dataIndex: 'dealerLevelDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '商户类型', dataIndex: 'dealerLevelDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '商户级别', dataIndex: 'dealerTypeDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
{ title: '商户级别', dataIndex: 'dealerTypeDictValue', width: '15%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
@@ -147,23 +153,26 @@ export default {
|
|
this.queryParam.districtSn = val[2] ? val[2] : ''
|
|
this.queryParam.districtSn = val[2] ? val[2] : ''
|
|
},
|
|
},
|
|
subareaChange (val) {
|
|
subareaChange (val) {
|
|
- this.queryParam.subareaSn = val[0] ? val[0] : undefined
|
|
|
|
- this.queryParam.subareaAreaSn = val[1] ? val[1] : undefined
|
|
|
|
|
|
+ this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
|
|
|
|
+ this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
|
|
},
|
|
},
|
|
pageInit (data) {
|
|
pageInit (data) {
|
|
|
|
+ this.snObj = data
|
|
this.queryParam = Object.assign(this.queryParam, data)
|
|
this.queryParam = Object.assign(this.queryParam, data)
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
- this.queryParam = {
|
|
|
|
|
|
+ this.queryParam = Object.assign({
|
|
provinceSn: undefined,
|
|
provinceSn: undefined,
|
|
citySn: undefined,
|
|
citySn: undefined,
|
|
districtSn: undefined,
|
|
districtSn: undefined,
|
|
- subareaSn: undefined,
|
|
|
|
- subareaAreaSn: undefined
|
|
|
|
- }
|
|
|
|
- this.queryParam.dealerSn = undefined
|
|
|
|
|
|
+ subareaArea: {
|
|
|
|
+ subareaSn: undefined,
|
|
|
|
+ subareaAreaSn: undefined
|
|
|
|
+ }
|
|
|
|
+ }, this.snObj)
|
|
|
|
+ this.queryParam.dealerName = undefined
|
|
this.$refs.areaList.clearData()
|
|
this.$refs.areaList.clearData()
|
|
this.$refs.subarea.clearData()
|
|
this.$refs.subarea.clearData()
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|