|
@@ -30,7 +30,7 @@
|
|
|
<template v-if="advanced">
|
|
|
<a-col :md="5" :sm="24">
|
|
|
<a-form-model-item label="客户名称">
|
|
|
- <custList id="salesReturnsReportList-dealerName" ref="custList" :itemSn="queryParam.dealerSn" @change="custChange"></custList>
|
|
|
+ <dealerSubareaScopeList ref="custList" id="salesReturnsReportList-dealerSn" @change="custChange" />
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
<a-col :md="5" :sm="24">
|
|
@@ -110,7 +110,7 @@ import getDate from '@/libs/getDate.js'
|
|
|
import { STable, VSelect } from '@/components'
|
|
|
import rangeDate from '@/views/common/rangeDate.vue'
|
|
|
import subarea from '@/views/common/subarea.js'
|
|
|
-import custList from '@/views/common/custList.vue'
|
|
|
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
|
|
|
import reportModal from '@/views/common/reportModal.vue'
|
|
|
import AreaList from '@/views/common/areaList.js'
|
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
@@ -118,7 +118,7 @@ import { reportSalesReturnList, reportSalesReturnCount, salesReturnsExport } fro
|
|
|
export default {
|
|
|
name: 'SalesReturnsReportList',
|
|
|
mixins: [commonMixin],
|
|
|
- components: { STable, VSelect, rangeDate, subarea, custList, reportModal, AreaList },
|
|
|
+ components: { STable, VSelect, rangeDate, subarea, dealerSubareaScopeList, reportModal, AreaList },
|
|
|
data () {
|
|
|
return {
|
|
|
spinning: false,
|
|
@@ -194,10 +194,10 @@ export default {
|
|
|
if (this.$hasPermissions('M_salesReturnsReportList_salesPrice')) { // 售价权限
|
|
|
arr.push({ title: '开单退货金额', dataIndex: 'totalAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
- if (this.$hasPermissions('M_salesReturnsReportList_provincePrice')) {
|
|
|
+ if (this.$hasPermissions('M_salesReturnsReportList_cityPrice')) {
|
|
|
arr.push({ title: '经销商价', dataIndex: 'totalWholesalePrice2', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
- if (this.$hasPermissions('M_salesReturnsReportList_cityPrice')) {
|
|
|
+ if (this.$hasPermissions('M_salesReturnsReportList_provincePrice')) {
|
|
|
arr.push({ title: '服务中心价', dataIndex: 'totalWholesalePrice1', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (this.$hasPermissions('M_salesReturnsReportList_specialPrice')) {
|