Browse Source

客户查询

chenrui 1 year ago
parent
commit
0bbd186585

+ 10 - 2
src/views/reportData/billingReturnReport/list.vue

@@ -50,6 +50,11 @@
                   <AreaList id="billingReturnReportList-areaList" changeOnSelect ref="areaList" @change="areaChange" defValKey="id"></AreaList>
                 </a-form-model-item>
               </a-col>
+              <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
+                <a-form-item label="客服">
+                  <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+                </a-form-item>
+              </a-col>
             </template>
             <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="billingReturnReportList-refresh">查询</a-button>
@@ -125,12 +130,13 @@ import subarea from '@/views/common/subarea.js'
 import reportModal from '@/views/common/reportModal.vue'
 import AreaList from '@/views/common/areaList.js'
 import BizUser from '@/views/common/bizUser.js'
+import customerService from '@/views/common/customerService'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { salesReportReturnList, salesReportReturnCount, billingReturnExport, salesReturnReportTitle } from '@/api/reportData'
 export default {
   name: 'BillingReturnReportList',
   mixins: [commonMixin],
-  components: { STable, VSelect, dealerSubareaScopeList, subarea, rangeDate, reportModal, AreaList, BizUser },
+  components: { STable, VSelect, dealerSubareaScopeList, subarea, rangeDate, reportModal, AreaList, BizUser, customerService },
   data () {
     return {
       spinning: false,
@@ -153,7 +159,8 @@ export default {
           subareaAreaSn: undefined,
           bizUserSn: undefined
         },
-        dealerLevel: undefined
+        dealerLevel: undefined,
+        bizUserSn: undefined
       },
       rules: {
         'time': [{ required: true, message: '请选择退货日期', trigger: 'change' }]
@@ -275,6 +282,7 @@ export default {
       this.queryParam.subareaArea.subareaAreaSn = undefined
       this.queryParam.subareaArea.bizUserSn = undefined
       this.queryParam.dealerLevel = undefined
+      this.queryParam.bizUserSn = undefined
       this.totalData = null
       if (this.advanced) {
         this.$refs.areaList.clearData()

+ 23 - 4
src/views/reportData/hPriceDifferenceDetailReport/list.vue

@@ -27,8 +27,19 @@
                 <dealerSubareaScopeList id="hPriceDifferenceDetailList-custList" ref="custList" @change="custChange"></dealerSubareaScopeList>
               </a-form-model-item>
             </a-col>
+            <a-col :md="7" :sm="24" v-if="isShowCustomerSearch">
+              <a-form-model-item label="客户级别">
+                <v-select
+                  v-model="queryParam.dealer.dealerLevel"
+                  ref="dealerLevel"
+                  id="hPriceDifferenceDetailList-dealerLevel"
+                  code="DEALER_LEVEL"
+                  placeholder="请选择客户级别"
+                  allowClear></v-select>
+              </a-form-model-item>
+            </a-col>
             <template v-if="advanced">
-              <a-col :md="7" :sm="24">
+              <a-col :md="7" :sm="24" v-if="!isShowCustomerSearch">
                 <a-form-model-item label="客户级别">
                   <v-select
                     v-model="queryParam.dealer.dealerLevel"
@@ -76,8 +87,13 @@
                   </a-select>
                 </a-form-model-item>
               </a-col>
+              <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
+                <a-form-item label="客服">
+                  <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+                </a-form-item>
+              </a-col>
             </template>
-            <a-col :md="7" :sm="24" style="margin-bottom: 10px;">
+            <a-col :md="isShowCustomerSearch?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign: isShowCustomerSearch?'center':''}">
               <!-- <a-button
                 type="primary"
                 class="button-info"
@@ -147,12 +163,13 @@ import Area from '@/views/common/area.js'
 import ProductBrand from '@/views/common/productBrand.js'
 import ProductType from '@/views/common/productType.js'
 import BizUser from '@/views/common/bizUser.js'
+import customerService from '@/views/common/customerService'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { headRebateDetailReportList, headRebateDetailReportCount, headRebateDetailReportExport } from '@/api/reportData'
 export default {
   name: 'HPriceDifferenceDetailReportList',
   mixins: [commonMixin],
-  components: { STable, VSelect, dealerSubareaScopeList, subarea, Area, rangeDate, ProductBrand, ProductType, reportModal, BizUser },
+  components: { STable, VSelect, dealerSubareaScopeList, subarea, Area, rangeDate, ProductBrand, ProductType, reportModal, BizUser, customerService },
   data () {
     return {
       spinning: false,
@@ -183,7 +200,8 @@ export default {
           productTypeSn2: '', //  产品二级分类
           productTypeSn3: '' //  产品三级分类
         },
-        bizType: undefined
+        bizType: undefined,
+        bizUserSn: undefined
       },
       rules: {
         'time': [{ required: true, message: '请选择日期', trigger: 'change' }]
@@ -359,6 +377,7 @@ export default {
       this.queryParam.product.productTypeSn2 = ''
       this.queryParam.product.productTypeSn3 = ''
       this.queryParam.bizType = undefined
+      this.queryParam.bizUserSn = undefined
       this.productType = []
       this.totalData = null
       if (this.advanced) {

+ 15 - 7
src/views/reportData/priceDifferenceDetailReport/list.vue

@@ -12,7 +12,7 @@
           :rules="rules"
           @keyup.enter.native="handleSearch">
           <a-row :gutter="15">
-            <a-col :md="4" :sm="24">
+            <a-col :md="6" :sm="24">
               <a-form-model-item label="月份" prop="month">
                 <a-month-picker
                   placeholder="请选择月份"
@@ -23,22 +23,27 @@
                   style="width: 100%;"/>
               </a-form-model-item>
             </a-col>
-            <a-col :md="4" :sm="24">
+            <a-col :md="6" :sm="24">
               <a-form-model-item label="省份" prop="provinceSn">
                 <Area id="priceDifferenceDetailList-provinceSn" v-model="queryParam.provinceSn" placeholder="请选择省"></Area>
               </a-form-model-item>
             </a-col>
-            <a-col :md="5" :sm="24">
+            <a-col :md="6" :sm="24">
               <a-form-model-item label="记账门店">
                 <custList id="priceDifferenceDetailList-rebateDealer" ref="rebateDealerList" @change="rebateDealerChange"></custList>
               </a-form-model-item>
             </a-col>
-            <a-col :md="5" :sm="24">
+            <a-col :md="6" :sm="24">
               <a-form-model-item label="客户名称">
                 <dealerSubareaScopeList id="priceDifferenceDetailList-custList" ref="custList" :itemSn="queryParam.dealerSn" @change="custChange"></dealerSubareaScopeList>
               </a-form-model-item>
             </a-col>
-            <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
+            <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
+              <a-form-item label="客服">
+                <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+              </a-form-item>
+            </a-col>
+            <a-col :md="isShowCustomerSearch?6:24" :sm="24" style="margin-bottom: 10px;" :style="{textAlign: isShowCustomerSearch?'':'center'}">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="priceDifferenceDetailList-refresh">查询</a-button>
               <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="priceDifferenceDetailList-reset">重置</a-button>
               <a-button
@@ -106,12 +111,13 @@ import Area from '@/views/common/area.js'
 import subarea from '@/views/common/subarea.js'
 import rangeDate from '@/views/common/rangeDate.vue'
 import reportModal from '@/views/common/reportModal.vue'
+import customerService from '@/views/common/customerService.vue'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { reportRebateReportList, reportRebateCount, reportRebateExport } from '@/api/reportData'
 export default {
   name: 'PriceDifferenceDetailReportList',
   mixins: [commonMixin],
-  components: { STable, VSelect, custList, dealerSubareaScopeList, subarea, Area, rangeDate, reportModal },
+  components: { STable, VSelect, custList, dealerSubareaScopeList, subarea, Area, rangeDate, reportModal, customerService },
   data () {
     return {
       spinning: false,
@@ -122,7 +128,8 @@ export default {
         month: moment().format('YYYY-MM'),
         provinceSn: undefined,
         rebateDealerSn: undefined,
-        dealerSn: undefined
+        dealerSn: undefined,
+        bizUserSn: undefined
       },
       rules: {
         'month': [{ required: true, message: '请选择月份', trigger: 'change' }],
@@ -215,6 +222,7 @@ export default {
       this.queryParam.provinceSn = undefined
       this.queryParam.rebateDealerSn = undefined
       this.queryParam.dealerSn = undefined
+      this.queryParam.bizUserSn = undefined
       this.$refs.rebateDealerList.resetForm()
       this.totalData = null
       if (this.advanced) {

+ 11 - 3
src/views/reportData/regionTypeSalesReport/list.vue

@@ -40,6 +40,11 @@
                   <BizUser v-model="queryParam.subareaArea.bizUserSn"></BizUser>
                 </a-form-model-item>
               </a-col>
+              <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
+                <a-form-item label="客服">
+                  <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+                </a-form-item>
+              </a-col>
               <!--  <template v-if="advanced && activeKey==0">
               <a-col :md="6" :sm="24">
                 <a-form-model-item prop="dealerProvinceSn" style="margin: 0;" label="地区">
@@ -47,7 +52,7 @@
                 </a-form-model-item>
               </a-col>
             </template> -->
-              <a-col :md="activeKey==0?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign:activeKey==0?'center':'left'}">
+              <a-col :md="(activeKey==0&&!isShowCustomerSearch)?24:activeKey==1&&isShowCustomerSearch?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign:(activeKey==0&&!isShowCustomerSearch)?'center':(activeKey==1&&isShowCustomerSearch)?'center':'left'}">
                 <a-button type="primary" @click="handleSearch" :disabled="disabled" id="returnGoodsPresentationList-refresh">查询</a-button>
                 <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="returnGoodsPresentationList-reset">重置</a-button>
                 <a-button
@@ -96,11 +101,12 @@ import subarea from '@/views/common/subarea.js'
 import BizUser from '@/views/common/bizUser.js'
 import { hdExportExcel } from '@/libs/exportExcel'
 import reportModal from '@/views/common/reportModal.vue'
+import customerService from '@/views/common/customerService.vue'
 import { realReportSalesByProvince, realReportSalesByProvinceExport, subareaAreaReportTitle, subareaReportTitle, realReportSalesBySubArea, realReportSalesBySubAreaExport } from '@/api/reportData.js'
 export default {
   name: 'RegionTypeSalesReportList',
   mixins: [commonMixin],
-  components: { STable, VSelect, rangeDate, subarea, Area, reportModal, BizUser },
+  components: { STable, VSelect, rangeDate, subarea, Area, reportModal, BizUser, customerService },
   data () {
     return {
       spinning: false,
@@ -121,7 +127,8 @@ export default {
           subareaAreaSn: undefined,
           bizUserSn: undefined
         },
-        salesStatusType: 'REAL_SALES'
+        salesStatusType: 'REAL_SALES',
+        bizUserSn: undefined
       },
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
@@ -197,6 +204,7 @@ export default {
       this.queryParam.subareaArea.subareaSn = undefined
       this.queryParam.subareaArea.subareaAreaSn = undefined
       this.queryParam.subareaArea.bizUserSn = undefined
+      this.queryParam.bizUserSn = undefined
       this.queryParam.salesStatusType = 'REAL_SALES'
       if (this.activeKey == 0) {
         this.$refs.subarea.clearData()

+ 10 - 4
src/views/reportData/salesReturnDetailReport/list.vue

@@ -27,9 +27,13 @@
                 <a-input id="salesReturnDetailList-productCode" v-model.trim="queryParam.productCode" allowClear placeholder="请输入产品编码"/>
               </a-form-model-item>
             </a-col>
-
+            <a-col :md="6" :sm="24" v-if="isShowCustomerSearch">
+              <a-form-model-item label="产品名称">
+                <a-input id="salesReturnDetailList-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
+              </a-form-model-item>
+            </a-col>
             <template v-if="advanced">
-              <a-col :md="6" :sm="24">
+              <a-col :md="6" :sm="24" v-if="!isShowCustomerSearch">
                 <a-form-model-item label="产品名称">
                   <a-input id="salesReturnDetailList-productName" v-model.trim="queryParam.productName" allowClear placeholder="请输入产品名称"/>
                 </a-form-model-item>
@@ -112,7 +116,7 @@
                 </a-form-item>
               </a-col>
             </template>
-            <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
+            <a-col :md="isShowCustomerSearch?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign: isShowCustomerSearch?'center':''}">
               <!-- <a-button
                 type="primary"
                 class="button-info"
@@ -230,7 +234,8 @@ export default {
         },
         dealerProvinceSn: undefined,
         dealerCitySn: undefined,
-        dealerCountySn: undefined
+        dealerCountySn: undefined,
+        bizUserSn: undefined
       },
       productType: [],
       rules: {
@@ -444,6 +449,7 @@ export default {
       this.queryParam.warehouseSn = undefined
       this.queryParam.goodFlag = undefined
       this.queryParam.salesReturnType = undefined
+      this.queryParam.bizUserSn = undefined
       this.productType = []
       if (this.advanced) {
         this.$refs.subarea.clearData()

+ 10 - 3
src/views/reportData/salesReturnReport/list.vue

@@ -33,7 +33,6 @@
                   allowClear></v-select>
               </a-form-model-item>
             </a-col>
-
             <template v-if="advanced">
               <a-col :md="6" :sm="24">
                 <a-form-model-item label="所在区域">
@@ -50,6 +49,11 @@
                   <AreaList id="salesReturnDetailList-areaList" changeOnSelect ref="areaList" @change="areaChange" defValKey="id"></AreaList>
                 </a-form-model-item>
               </a-col>
+              <a-col :md="6" :sm="24" v-show="isShowCustomerSearch">
+                <a-form-item label="客服">
+                  <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+                </a-form-item>
+              </a-col>
             </template>
             <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="salesReturnReportList-refresh">查询</a-button>
@@ -125,13 +129,14 @@ import reportModal from '@/views/common/reportModal.vue'
 import subarea from '@/views/common/subarea.js'
 import AreaList from '@/views/common/areaList.js'
 import BizUser from '@/views/common/bizUser.js'
+import customerService from '@/views/common/customerService'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { salesReportReturnRebateTitle, salesReportReturnRebateList, salesReportReturnRebateCount, salesReturnExport } from '@/api/reportData'
 
 export default {
   name: 'SalesReturnReportList',
   mixins: [commonMixin],
-  components: { STable, VSelect, dealerSubareaScopeList, subarea, rangeDate, reportModal, AreaList, BizUser },
+  components: { STable, VSelect, dealerSubareaScopeList, subarea, rangeDate, reportModal, AreaList, BizUser, customerService },
   data () {
     return {
       spinning: false,
@@ -154,7 +159,8 @@ export default {
           subareaAreaSn: undefined,
           bizUserSn: undefined
         },
-        dealerLevel: undefined
+        dealerLevel: undefined,
+        bizUserSn: undefined
       },
       rules: {
         'time': [{ required: true, message: '请选择退货日期', trigger: 'change' }]
@@ -279,6 +285,7 @@ export default {
       this.queryParam.subareaArea.subareaAreaSn = undefined
       this.queryParam.subareaArea.bizUserSn = undefined
       this.queryParam.dealerLevel = undefined
+      this.queryParam.bizUserSn = undefined
       this.totalData = null
       this.$refs.subarea.clearData()
       if (this.advanced) {

+ 1 - 1
src/views/reportData/salesSlipReport/list.vue

@@ -65,7 +65,7 @@
                 </a-form-item>
               </a-col>
             </template>
-            <a-col :md="isShowCustomerSearch?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign: isShowCustomerSearch?'center':''}" >
+            <a-col :md="isShowCustomerSearch?24:6" :sm="24" style="margin-bottom: 10px;" :style="{textAlign: isShowCustomerSearch?'center':''}">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="salesSlipReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="salesSlipReportList-reset">重置</a-button>
               <a-button