浏览代码

修改bug

chenrui 1 年之前
父节点
当前提交
0b7082491b
共有 1 个文件被更改,包括 10 次插入4 次删除
  1. 10 4
      src/views/promotionRulesManagement/dealerPromotions/list.vue

+ 10 - 4
src/views/promotionRulesManagement/dealerPromotions/list.vue

@@ -45,7 +45,7 @@
             </a-col>
             <a-col :md="6" :sm="24">
               <a-form-item label="经销商名称">
-                <a-input id="promotionList-dealerNameLike" v-model.trim="queryParam.dealerNameLike" allowClear placeholder="请输入经销商名称"/>
+                <custList ref="custList" id="promotionList-tenantSn" @change="custChange"></custList>
               </a-form-item>
             </a-col>
             <a-col :md="6" :sm="24">
@@ -253,11 +253,12 @@ import creatorList from '@/views/common/creatorList.vue'
 import editActiveEndTime from './editActiveEndTime.vue'
 import supplier from '@/views/common/supplier.js'
 import warehouse from '@/views/common/chooseWarehouse.js'
+import custList from '@/views/common/custList.vue'
 import { dealerPromotionList, dealerPromotionDel, modifyEnabledFlag, promotionAudit, promotionIsOver, handleCopyData, midwaySubmit, dealerMidwayAudit, updateDealerSnList } from '@/api/promotion'
 export default {
   name: 'PromotionManagementList',
   mixins: [commonMixin],
-  components: { STable, supplier, VSelect, rangeDate, warehouse, lookUpCustomersModal, addModal, editActiveEndTime, creatorList },
+  components: { STable, supplier, VSelect, rangeDate, warehouse, lookUpCustomersModal, addModal, editActiveEndTime, creatorList, custList },
   data () {
     return {
       spinning: false,
@@ -276,7 +277,7 @@ export default {
         state: undefined,
         creatorId: undefined,
         dealerAuditFlag: undefined,
-        dealerNameLike: ''
+        dealerSn: undefined
       },
       columns: [
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
@@ -318,6 +319,10 @@ export default {
     }
   },
   methods: {
+    // 经销商列表查询
+    custChange (val) {
+      this.queryParam.dealerSn = val.key
+    },
     // 创建人
     creatorChange (val) {
       this.queryParam.creatorId = val.key
@@ -541,8 +546,9 @@ export default {
         state: undefined,
         creatorId: creatorObj.userid,
         dealerAuditFlag: undefined,
-        dealerNameLike: ''
+        dealerSn: undefined
       }
+      this.$refs.custList.resetForm()
       this.$refs.rangeDate.resetDate()
       this.$refs.table.refresh(true)
     },