Browse Source

bug修复

chenrui 3 năm trước cách đây
mục cha
commit
6a16d18f7c
1 tập tin đã thay đổi với 4 bổ sung8 xóa
  1. 4 8
      src/views/reportData/allocationPresentation/list.vue

+ 4 - 8
src/views/reportData/allocationPresentation/list.vue

@@ -19,7 +19,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-model-item label="客户名称">
-                <custList id="allocationPresentationList-dealerSn" ref="custList" @change="custChange"></custList>
+                <a-input id="allocationPresentationList-targetName" v-model.trim="queryParam.targetName" allowClear placeholder="请输入客户名称"/>
               </a-form-model-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -135,13 +135,12 @@
 <script>
 import { STable, VSelect } from '@/components'
 import rangeDateTime from '@/views/common/rangeDateTime.vue'
-import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { reportAllocateDbjdReportList, reportAllocateDbjdReportCount, reportAllocateDbjdReportExport } from '@/api/reportData'
 export default {
-  components: { STable, VSelect, rangeDateTime, subarea, custList },
+  components: { STable, VSelect, rangeDateTime, subarea },
   data () {
     return {
       spinning: false,
@@ -151,8 +150,8 @@ export default {
         beginDate: '',
         endDate: '',
         allocateNo: '',
+        targetName: '',
         dealer: {
-          'dealerSn': undefined,
           'provinceSn': undefined,
           'citySn': undefined,
           'districtSn': undefined,
@@ -348,9 +347,6 @@ export default {
       this.queryParam.beginDate = date[0] || ''
       this.queryParam.endDate = date[1] || ''
     },
-    custChange (val) {
-      this.queryParam.dealer.dealerSn = val.key
-    },
     //  重置
     resetSearchForm () {
       this.queryParam.time = []
@@ -358,8 +354,8 @@ export default {
       this.queryParam.beginDate = ''
       this.queryParam.endDate = ''
       this.queryParam.allocateNo = ''
+      this.queryParam.targetName = ''
       this.queryParam.dealer = {
-        'dealerSn': undefined,
         'provinceSn': undefined,
         'citySn': undefined,
         'districtSn': undefined,