Ver código fonte

Merge branch 'master' of http://git.dongkesoft.com:9001/iBOSS-2.0-Mini/iboss-mini-web

songyang 2 anos atrás
pai
commit
2e7805b1ca

+ 2 - 1
src/api/pages/mst/customer.js

@@ -17,7 +17,8 @@ export default {
  */
 export const routeUrl = {
   customer: {
-    add: {key: 'add', method: 'add'},
+    add: {key: 'add', routeName: 'customer-add'},
+    edit: {key:'edit',routeName:'customer-edit'},
     followTask: {key: 'followTask', method: 'followTask'},
     //add:{key:'add', url:'/core/customer/add'}
   }

+ 6 - 0
src/locale/lang/zh-CN.js

@@ -566,6 +566,12 @@ export const columns = {
   measureRemarks:'量尺备注',
   measureTime: '量尺时间',
   usedLocation2: '空间名称',
+  allCustomers:'全部客户',
+  potentialCus:'潜在客户',
+  seasCus:'公海客户',
+  dealCus:'成交客户',
+  reportStaff:'报备人',
+  saleStatus:'销售状态',
 }
 
 /**

+ 185 - 244
src/view/mst/customer/form.vue

@@ -4,35 +4,35 @@
     <DkCollapse @on-change="changeCollapse" ref="collapse">
       <DkPanel prop="essentialInformation">
         <!--  下拉区域  -->
-        <DkForm slot="content" ref="formInline" v-model="formData" style="width: 95%" :labelMaxWords="7">
-          <!--客户名称-->
-          <DkFormItem prop="customerName" :required="true">
-            <InputPop v-model="formData.customerName"/>
-          </DkFormItem>
+        <DkForm slot="content" ref="formInline" v-model="formData" style="width: 95%">
           <!--客户编码-->
-          <DkFormItem prop="customerCode" :required="true">
-            <InputPop v-model="formData.customerCode"/>
+          <DkFormItem prop="cusCode">
+            <InputPop v-model="formData.cusCode" :readonly="true"/>
+          </DkFormItem>
+          <!--客户名称-->
+          <DkFormItem prop="cusName" :required="true">
+            <InputPop v-model="formData.cusName"/>
           </DkFormItem>
-          <!--客户电话-->
-          <DkFormItem prop="customerPhone" :required="true">
-            <InputPop :telephone="true" v-model="formData.customerPhone" maxlength="11"/>
+
+          <DkFormItem prop="cusPhone" :required="true">
+            <InputPop :telephone="true" v-model="formData.cusPhone" maxlength="11"/>
           </DkFormItem>
           <!--联系人-->
           <DkFormItem prop="contactName">
             <InputPop v-model="formData.contactName"/>
           </DkFormItem>
           <!--联系电话-->
-          <DkFormItem prop="contactPhones">
-            <InputPop :telephone="true" v-model="formData.contactPhones" maxlength="11"/>
+          <DkFormItem prop="contactPhone">
+            <InputPop :telephone="true" v-model="formData.contactPhone" maxlength="11"/>
           </DkFormItem>
           <!--行政区划-->
-          <!--              <Col span="6">-->
-          <!--                <DkFormItem prop="customerDistrict" required>-->
-          <!--                  <RegionsChooseAmap v-model="regionData" :options="cityData" :default-value="formData.addressName"-->
-          <!--                                     ref="customerDistrict" @on-choose="chooseAddress"></RegionsChooseAmap>-->
-
-          <!--                </DkFormItem>-->
-          <!--              </Col>-->
+          <Col span="6">
+            <DkFormItem prop="addressName" required>
+              <RegionsChoose v-model="regionData" :options="cityData" :default-value="formData.addressName"
+                             ref="customerDistrict"
+                             @on-choose="chooseAddress"></RegionsChoose>
+            </DkFormItem>
+          </Col>
           <!--门牌号-->
           <DkFormItem :label="$t('addressNo')" prop="addressNo" required>
             <InputPop v-model="formData.addressNo" @input="setAddressFull"/>
@@ -41,116 +41,49 @@
           <DkFormItem prop="addressFull" :required="true">
             <InputPop ref="addressCustomerFull" :readonly="true" v-model="formData.addressFull"/>
           </DkFormItem>
-          <!--              &lt;!&ndash;小区档案&ndash;&gt;-->
-          <!--                <DkFormItem prop="estateId">-->
-          <!--                  <SelectMagnifier v-model="formData.estateId" :type="this.$config.MagnifierType.estate"-->
-          <!--                                   searchType="S" :display-text="formData.estateName"/>-->
-          <!--                </DkFormItem>-->
-          <!--              &lt;!&ndash;业务员&ndash;&gt;-->
-          <!--                <DkFormItem prop="reportUser" :required="true">-->
-          <!--                  <SelectMagnifier v-model="formData.reportUser" searchType="S" @ok="changeReportUser"-->
-          <!--                                   :type="this.$config.MagnifierType.user" :display-text="formData.reportUserName"/>-->
-          <!--                </DkFormItem>-->
+          <!--业务员-->
+          <DkFormItem prop="staffId" :required="true">
+            <SelectMagnifier v-model="formData.staffId"
+                             :multiple="false"
+                             :type="this.$config.MagnifierType.staff"
+                             :display-text="formData.staffName"/>
+          </DkFormItem>
           <!--部门-->
           <DkFormItem prop="orgId" :required="true">
-            <InputPop v-model="formData.orgName" readonly/>
-          </DkFormItem>
-          <!-- 分销商 -->
-          <DkFormItem prop="fenXiaoShang">
-            <InputPop v-model="formData.fenXiaoShangName" readonly/>
+            <SelectMagnifier v-model="formData.orgId"
+                             :multiple="false"
+                             :type="this.$config.MagnifierType.org"
+                             :display-text="formData.orgName"/>
           </DkFormItem>
           <!-- 渠道 -->
-          <DkFormItem prop="channel">
-            <InputPop v-model="formData.channelName" readonly/>
-          </DkFormItem>
-          <!--客户分类-->
-          <DkFormItem prop="customerClassified">
-            <SelectPop v-model="formData.customerClassified" :options="customerClassifiedList" :multiple="false"
-                       label-key="dataValue" value-key="dataId"/>
-          </DkFormItem>
-          <!--客成状态-->
-          <DkFormItem prop="saleStatus" :required="true">
-            <SelectPop v-model="formData.saleStatus" :options="saleStatusList" :multiple="false"
+          <DkFormItem prop="channelId" :required="true">
+            <SelectPop v-model="formData.channelId" :options="channelList" :multiple="false"
                        :clearable="false"
-                       label-key="dataName" value-key="dataCode" :disabled="type == 'edit'"/>
+                       label-key="channelName" value-key="channelId"/>
           </DkFormItem>
-          <!--性别-->
-          <DkFormItem prop="gender" required>
-            <SelectPop v-model="formData.gender" :options="genderList" :multiple="false" :clearable="false"
-                       label-key="dataName" value-key="dataCode"/>
+          <!--客成状态-->
+          <DkFormItem prop="saleStatus" v-if="type != 'add'">
+<!--            <SelectPop v-model="formData.saleStatusName" :options="saleStatusList" :multiple="false"-->
+<!--                       :clearable="false"-->
+<!--                       label-key="dataName" value-key="dataCode" :disabled="type == 'edit'"/>-->
+            <InputPop v-model="formData.saleStatusName" :readonly="true"/>
           </DkFormItem>
           <!--客户来源-->
-          <DkFormItem prop="customerFrom" required>
-            <SelectPop v-model="formData.customerFrom" :options="customerFromList" :multiple="false"
+          <DkFormItem prop="cusFrom">
+            <SelectPop v-model="formData.cusFrom" :options="customerFromList" :multiple="false"
                        :clearable="false"
-                       label-key="fromName" value-key="fromId"/>
-          </DkFormItem>
-          <!--装修户型数-->
-          <DkFormItem prop="toiletCount" required>
-            <SelectPop v-model="formData.toiletCount" :options="toiletList" :multiple="false"
-                       label-key="toiletsName" value-key="toiletsId"/>
-          </DkFormItem>
-          <!--装修类型-->
-          <DkFormItem prop="fitupType" required>
-            <SelectPop v-model="formData.fitupType" :options="fitupTypeList" :multiple="false"
-                       label-key="dataValue" value-key="dataId"/>
-          </DkFormItem>
-          <!--房屋类型-->
-          <DkFormItem prop="houseType">
-            <SelectPop v-model="formData.houseType" :options="houseTypeList" :multiple="false"
-                       label-key="dataValue" value-key="dataId"/>
-          </DkFormItem>
-          <!--装修风格-->
-          <DkFormItem prop="fitupStyle">
-            <SelectPop v-model="formData.fitupStyle" :options="fitupStyleList" :multiple="false"
-                       label-key="dataValue" value-key="dataId"/>
-          </DkFormItem>
-          <!--年龄构成-->
-          <DkFormItem prop="ageComposition">
-            <SelectPop v-model="formData.ageComposition" :options="ageCompositionList" :multiple="false"
-                       label-key="dataValue" value-key="dataId"/>
-          </DkFormItem>
-          <!--决策者-->
-          <DkFormItem prop="decisionMaker">
-            <SelectPop v-model="formData.decisionMaker" :options="decisionMakerList" :multiple="false"
                        label-key="dataValue" value-key="dataId"/>
           </DkFormItem>
           <!--备注-->
           <DkFormItem prop="remarks">
             <InputPop v-model="formData.remarks"/>
           </DkFormItem>
-          <!--客户标签-->
-          <DkFormItem prop="customerTags">
-            <Tag v-for="(item, index) of formData.customerTagNames" :key="index">{{ item }}</Tag>
-            <Button icon="ios-add" circle size="small" @click="customTagModal=true"></Button>
-          </DkFormItem>
-        </DkForm>
-      </DkPanel>
-      <DkPanel prop="invoiceInfo">
-        <!--  下拉区域  -->
-        <DkForm slot="content" ref="formInline" v-model="formData" style="width: 95%" :labelMaxWords="7">
-          <!--开户账号-->
-          <DkFormItem prop="bankAccount">
-            <InputPop v-model="formData.bankAccount"/>
-          </DkFormItem>
         </DkForm>
       </DkPanel>
     </DkCollapse>
 
     <!--  下部分按钮区域  -->
-    <DkSaveButton ref="saveButton" :loading="loading" @save="submitForm" @close="btnGroupClick"></DkSaveButton>
-
-    <!--    选择客户标签-->
-    <Modal v-model="customTagModal" :title="$t('customerTags')">
-      <Card v-for="(item, index) of customerTagList" :key="index" style="margin-bottom: 10px">
-        <p slot="title">{{ item.tagName }}</p>
-        <Tag v-for="(item2, index2) of item.tableTag" :key="index2" size="medium" :checked="item2.checked"
-             color="primary" checkable @on-change="(checked)=>selectTag(checked, item2)">{{ item2.tagName }}
-        </Tag>
-      </Card>
-      <div slot="footer">
-      </div>
-    </Modal>
+    <DkSaveButton ref="saveButton" :loading="loading" @save="save" @close="btnGroupClick"></DkSaveButton>
   </div>
 </template>
 
@@ -163,166 +96,67 @@ export default {
   data() {
     let self = this
     return {
-      // 是否是选择客户设置以及编辑时设置
-      setCustomerFlag: false,
-      //年龄构成list
-      ageCompositionList: [],
-      // 省市区list
-      areaTreeList: [],
-      // 客户标签list
-      customerTagList: [],
-      // 自定义标签弹窗
-      customTagModal: false,
       // 客户来源list
       customerFromList: [],
-      //决策者list
-      decisionMakerList: [],
-      // 装修类型list
-      fitupTypeList: [],
-      // 装修风格list
-      fitupStyleList: [],
-      // 性别list
-      genderList: [],
-      // 房屋类型
-      houseTypeList: [],
-      // 发票类型
-      invoiceTypeList: [],
+      // 渠道list
+      channelList:[],
       // 客成状态list
       saleStatusList: [],
-      // 装修户型数list
-      toiletList: [],
       loading: false,
-      errMessage: {},
-      customerClassifiedList: [],
       formData: {
-        customerId: null,
-        customerName: null,
-        customerCode: null,
-        customerPhone: null,
+        cusId: null,
+        cusName: null,
+        cusCode: null,
+        cusPhone: null,
         contactName: null,
-        contactPhones: null,
-        saleStatus: null,
-        reportUser: self.$store.state.user.id,
-        reportUserName: self.$store.state.user.userName,
+        contactPhone: null,
+        saleStatusName: null,
+        staffId:null,
+        staffName:null,
+        reportStaff: self.$store.state.user.id,
+        reportStaffName: self.$store.state.user.userName,
         addressArea: null,
         addressName: null,
         addressNo: null,
         addressFull: null,
         customerDistrict: null,
-        customerTags: [],
-        customerTagNames: [],
+        cusFrom:null,
+        cusFromName:null,
         bankAccount: null,
         remarks: '',
         cpId: self.$store.state.user.cpId,
-        orgId: self.$store.state.user.orgId,
-        orgName: self.$store.state.user.orgName,
-        gender: null,
-        toiletCount: null,
-        fitupType: null,
-        houseType: null,
-        fitupStyle: null,
-        ageComposition: null,
-        decisionMaker: null,
-        customerClassified: null,
-        fenXiaoShangName: self.$store.state.user.sale2Name,
+        orgId: null,
+        orgName: null,
         channelName: null
       },
-      ruleInline: {
-        customerName: [
-          {required: true, trigger: 'none'},
-        ],
-        customerPhone: [
-          {required: true, trigger: 'none'},
-          {
-            required: true,
-            trigger: 'none',
-            max: 11,
-            min: 11,
-            message: self.$t('W_071', {'param': self.$t('customerPhone')})
-          },
-        ],
-        // 客户区域
-        customerDistrict: [
-          {required: true, trigger: 'none', type: 'object'}
-        ],
-        contactPhones: [
-          {
-            required: false,
-            trigger: 'none',
-            max: 11,
-            min: 11,
-            message: self.$t('W_071', {'param': self.$t('contactPhones')})
-          },
-        ],
-        reportUser: [
-          {required: true, trigger: 'none', type: 'number'}
-        ],
-        saleStatus: [
-          {required: true, trigger: 'none'}
-        ],
-        addressName: [
-          {required: true, trigger: 'none'},
-        ],
-        gender: [
-          {required: true, trigger: 'none'},
-        ],
-        customerFrom: [
-          {required: true, trigger: 'none', type: 'number'}
-        ],
-        toiletCount: [
-          {required: true, trigger: 'none', type: 'number'}
-        ],
-        fitupType: [
-          {required: true, trigger: 'none', type: 'number'}
-        ],
-        addressNo: [
-          {required: true, trigger: 'none'},
-        ],
-      },
-      //商品属性
-      attributeList: [],
-      //流通方式集合
-      salesModeList: [],
-      //计量标识
-      flgEstimateList: [],
-      //种类放大镜数据体
-      valData: [],
-      //计量单位
-      goodsUnitList: [],
-      //商品规格
-      specificationList: [],
-      //商品品牌
-      goodsBrandList: [],
-      //商品品种
-      goodsVarietyList: [],
-      //商品系列
-      goodsSeriesList: [],
-      //商品种类
-      goodsCategoryList: [],
       //cpIds
       cpIds: [],
 
-      estateData: [],//小区档案数据源
       regionData: [],
       cityData: [],
     }
   },
   methods: {
     /**
-     * @desc   : 改变报备人事件
-     * @author : 付斌
-     * @date   : 2024-02-01 14:30
-     */
-    changeReportUser(val) {
-
-    },
-    /**
      * @desc   : 选择地址
      * @author : 付斌
      * @date   : 2024-02-01 14:30
      */
     chooseAddress(value) {
-
+      this.formData.customerDistrict = value;
+      // 说明是清空
+      if (!value) {
+        this.formData.addressName = null;
+        this.formData.addressArea = {};
+        this.formData.addressFull = null;
+        this.formData.addressGcj02 = {};
+      } else {
+        //按照title进行
+        this.formData.addressName = value.addressName;
+        this.formData.addressArea = value.addressArea;
+        this.formData.addressGcj02 = value.addressGcj02;
+        this.formData.addressFull = value.addressFull + (this.formData.addressNo ? this.formData.addressNo : '');
+      }
     },
     /**
      * @desc   : 拼写详细地址
@@ -330,7 +164,10 @@ export default {
      * @date   : 2024-02-01 14:30
      */
     setAddressFull(e) {
-
+      // 客户区域有值才会拼接详细地址
+      if (this.formData.customerDistrict && this.formData.customerDistrict.addressFull) {
+        this.formData.addressFull = this.formData.customerDistrict.addressFull + (this.formData.addressNo ? this.formData.addressNo : '')
+      }
     },
     /**
      * @desc   : 保存的提交事件
@@ -345,8 +182,31 @@ export default {
      * @author : 付斌
      * @date   : 2024-02-01 14:30
      */
-    clearForm() {
+    clear() {
+      this.formData.cusId = null
+      this.formData.cusName = null
+      this.formData.cusCode = null
+      this.formData.cusPhone = null
+      this.formData.contactName = null
+      this.formData.contactPhone = null
+      this.formData.addressFull = null
+      this.formData.addressNo = null
+      this.formData.addressName = null
+      this.formData.cusFrom = null
+      this.formData.cusFromName = null
+      this.formData.channelId = null
+      this.formData.channelName = null
+      this.formData.saleStatusName = null
+      this.formData.remarks = null
+    },
 
+    /**
+    * @desc   : 给参数赋值
+    * @author : 常皓宁
+    * @date   : 2024/4/9 13:44
+    */
+    setParams(){
+      this.params = {...this.formData}
     },
 
     /**
@@ -354,8 +214,11 @@ export default {
      * @author : 付斌
      * @date   : 2024-02-01 14:30
      */
-    saveGoods(params) {
-
+    saveData() {
+      console.log('this.params', this.params)
+      return this.type === this.$config.formMode.add ?
+        this.excute(this.$service.customerService, this.$service.customerService.insert, this.params)
+        : this.excute(this.$service.customerService, this.$service.customerService.update, this.params)
     },
     /**
      * @desc   : 通过id查询
@@ -363,8 +226,45 @@ export default {
      * @date   : 2024-02-01 14:30
      */
     detail(id) {
+      return this.excuteNoParam(this.$service.customerService, this.$service.customerService.selectByUpdate, [id])
+    },
 
+    /**
+     * @desc   : 编辑页面赋值
+     * @author : 常皓宁
+     * @date   : 2024/2/29 9:49
+     */
+    setValuesByEdit(data) {
+      console.log('data',data)
+      this.formData.cusId = data.cusId
+      this.formData.cusName = data.cusName
+      this.formData.cusCode = data.cusCode
+      this.formData.cusPhone = data.cusPhone
+      this.formData.contactName = data.contactName
+      this.formData.contactPhone = data.contactPhone
+      this.formData.addressFull = data.addressFull
+      this.formData.addressNo = data.addressNo
+      this.formData.addressName = data.addressName
+      this.formData.cusFrom = data.cusFrom
+      this.formData.cusFromName = data.cusFromName
+      this.formData.channelId = data.channelId
+      this.formData.channelName = data.channelName
+      this.formData.saleStatusName = data.saleStatusName
+      this.formData.staffId = data.staffId
+      this.formData.staffName = data.staffName
+      this.formData.orgId = data.orgId
+      this.formData.orgName = data.orgName
+      this.formData.remarks = data.remarks
+      // 设置地址(不包括门牌号)
+      this.formData.customerDistrict = {}
+      if (data.addressFull) {
+        this.formData.customerDistrict.addressFull = data.addressFull.replace(data.addressNo, '')
+      }
+      console.log('this,',this.formData)
+      this.formData.annexPaths = data.annexPaths
     },
+
+
     /**
      * @desc   : 返回一览页面
      * @author : 付斌
@@ -398,10 +298,51 @@ export default {
     selectTag(checked, item) {
 
     },
+    /**
+    * @desc   : 获取客户来源
+    * @author : 常皓宁
+    * @date   : 2024/4/9 10:06
+    */
+    getCusFrom(){
+      let params = {
+        dataSourceCode: 'customerFrom'
+      }
+      this.excute(this.$service.commonService, this.$service.commonService.getInitData, params, false).then(res => {//调用api查询方法
+        if (res.code === this.$config.SUCCESS_CODE) {
+          this.customerFromList = res.data
+        }
+      })
+    },
+
+    /**
+     * @desc   : 获取客户渠道
+     * @author : 常皓宁
+     * @date   : 2024/4/9 10:06
+     */
+    getChannel(){
+      let params = {
+        dataSourceCode: 'saleChannel'
+      }
+      this.excute(this.$service.commonService, this.$service.commonService.getInitData, params, false).then(res => {//调用api查询方法
+        if (res.code === this.$config.SUCCESS_CODE) {
+          this.channelList = res.data
+        }
+      })
+    },
+
+    /**
+     * @desc   : 查询事件
+     * @author : 付斌
+     * @date   : 2024-02-01 14:24
+     */
+    initData() {
+      this.getCusFrom()
+      this.getChannel()
+    },
   },
   created() {
-    this.focusItem = 'customerName';    // 给第一个组件赋值,可以在混入中自动去聚焦
-    this.primaryKey = 'customerId'  // 设置主键Id
+    this.focusItem = 'cusName';    // 给第一个组件赋值,可以在混入中自动去聚焦
+    this.primaryKey = 'cusId'  // 设置主键Id
     // 查询集团字典
     this.getDictionaryData()
   },

+ 39 - 21
src/view/mst/customer/index.vue

@@ -10,8 +10,6 @@
         <BaseIndexButton ref="edit" name="edit"></BaseIndexButton>
         <BaseIndexButton ref="check" name="check" :isMustChooseFlag="false"></BaseIndexButton>
         <BaseIndexButton ref="followTask" name="followTask" :isMustChooseFlag="false"></BaseIndexButton>
-        <BaseIndexButton ref="downloadTemplate" name="downloadTemplate"></BaseIndexButton>
-        <BaseIndexButton ref="import" name="import"></BaseIndexButton>
       </template>
       <template #right>
         <BaseIndexButton ref="add" name="add"></BaseIndexButton>
@@ -28,15 +26,16 @@
     <card style="padding: 0">
       <DkTabs ref="tab" v-model="tabsModel" :options="tabsOptions" @on-click="clickTab"></DkTabs>
       <DkTable :id="'table-'+$options.name" ref="table-select" :data="tableData"
-               :height="this.tableHeight-50" primaryKey="customerId"
+               :height="this.tableHeight-50" primaryKey="cusId"
+               :page-size-opts="pageSizeOpts"
                :page-size="pageInfo.pageSize"
-               @pageChange="pageSizeChange"
+               :choose-flag="false"
                name="table">
-        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="customerCode"
+        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="cusCode"
                        fixed="left" @on-link="openCustomerMessage"></DkTableColumn>
-        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="customerName"
+        <DkTableColumn :type="$libaray.checkButtonHasRight('customer-detail')?'link':''" field="cusName"
                        fixed="left" @on-link="openCustomerMessage"></DkTableColumn>
-        <DkTableColumn field="customerPhone"></DkTableColumn>
+        <DkTableColumn field="cusPhone"></DkTableColumn>
         <DkTableColumn field="channelName"></DkTableColumn>
         <DkTableColumn field="addressFull"></DkTableColumn>
         <DkTableColumn field="contactName"></DkTableColumn>
@@ -71,7 +70,7 @@
     </card>
 
     <!--    跟进任务-->
-    <FollowTask v-model="followTaskModal" :customer-names="customerInfo6.customerNames"
+    <FollowTask v-model="followTaskModal" :customer-names="customerInfo6.cusNames"
                 :customer-ids="customerInfo6.customerIds" @ok="initData(1)"
                 ref="modal_follow_task"
     />
@@ -99,16 +98,10 @@
 
 <script>
 import {indexMixin} from '@/mixins'
-import FollowTask from '../cus-follow/follow-task'
-import Follow from "../cus-follow/follow";
 
 export default {
   name: 'customer',
   mixins: [indexMixin],
-  components: {
-    FollowTask,
-    Follow
-  },
   data() {
     let self = this
     return {
@@ -121,7 +114,7 @@ export default {
       // 客户信息 跟进任务
       customerInfo6: {
         customerIds: [],
-        customerNames: [],
+        cusNames: [],
         followUsers: []
       },
       // 错误信息
@@ -154,11 +147,11 @@ export default {
       searchCond: {},
       searchContent: [
         {
-          valueFormat: {code: 'customerName'},
+          valueFormat: {code: 'cusName'},
           valueKind: 'STR'
         },
         {
-          valueFormat: {code: 'customerPhone'},
+          valueFormat: {code: 'cusPhone'},
           valueKind: 'STR'
         },
         {
@@ -250,11 +243,11 @@ export default {
         },
       ],
       tableData: [],
-      tabsModel: null,
+      tabsModel: self.$t('potentialCus'),
       tabsOptions: [
-        {label: self.$t('潜在客户'), name: self.$t('潜在客户'), index: 0},
-        {label: self.$t('公海客户'), name: self.$t('公海客户'), index: 1},
-        {label: self.$t('成交客户'), name: self.$t('成交客户'), index: 2},
+        {label: self.$t('potentialCus'), name: self.$t('potentialCus'), index: 0},
+        {label: self.$t('seasCus'), name: self.$t('seasCus'), index: 1},
+        {label: self.$t('dealCus'), name: self.$t('dealCus'), index: 2},
         {label: self.$t('allCustomers'), name: self.$t('allCustomers'), index: 3},
       ],
       //业务部门list
@@ -308,6 +301,13 @@ export default {
      * @date   : 2024-02-01 14:20
      */
     clickTab(val) {
+      this.$nextTick(() => {
+        //查询条件
+        this.loading = true
+        this.tableData = []
+        this.pageInfo.currentPage = 1
+        this.searchData()
+      })
     },
     /**
      * @desc   : 下载模板
@@ -367,6 +367,24 @@ export default {
 
     },
     /**
+     * @desc   : 查询参数设定
+     * @author : 常皓宁
+     * @date   : 2024/4/7 11:22
+     */
+    setSearchParams(params) {
+      params.flgValid = true
+      if (this.tabsModel === this.$t('allReceipt')) {
+        params.saleStatus = ''
+      } else if (this.tabsModel === this.$t('potentialCus')) {
+        params.saleStatus = '销售状态-潜客'
+      } else if (this.tabsModel === this.$t('seasCus')) {
+        params.saleStatus = '销售状态-公海'
+      } else if (this.tabsModel === this.$t('dealCus')) {
+        params.saleStatus = '销售状态-成交'
+      }
+      return params
+    },
+    /**
      * @desc   : 查询数据
      * @author : 付斌
      * @date   : 2024-02-01 14:22