Przeglądaj źródła

fix: 客户、联系人文字修改

outaozhen 5 lat temu
rodzic
commit
7a145837df
30 zmienionych plików z 129 dodań i 129 usunięć
  1. 1 1
      src/pages/Customer/Business/components/BusinessDetail/Form.jsx
  2. 2 2
      src/pages/Customer/Business/components/BusinessDetail/TabList.jsx
  3. 1 1
      src/pages/Customer/Business/components/BusinessDetail/index.jsx
  4. 1 1
      src/pages/Customer/Business/index.jsx
  5. 7 7
      src/pages/Customer/Client/components/AddClient/index.jsx
  6. 7 7
      src/pages/Customer/Client/components/ClientDetail/Form.jsx
  7. 3 3
      src/pages/Customer/Client/components/ConnectClient/index.jsx
  8. 4 4
      src/pages/Customer/Client/index.jsx
  9. 12 12
      src/pages/Customer/Company/components/AddCompany/index.jsx
  10. 5 5
      src/pages/Customer/Company/components/ChangeCompany/index.jsx
  11. 7 7
      src/pages/Customer/Company/components/CompanyDetail/Form.jsx
  12. 2 2
      src/pages/Customer/Company/components/CompanyDetail/TabList.jsx
  13. 2 2
      src/pages/Customer/Company/components/ConnectCompany/index.jsx
  14. 2 2
      src/pages/Customer/Company/components/PersonLabel/const.js
  15. 2 2
      src/pages/Customer/Company/components/PersonLabel/index.jsx
  16. 7 7
      src/pages/Customer/Company/index.jsx
  17. 1 1
      src/pages/Customer/Company/model.js
  18. 1 1
      src/pages/Hr/Employee/components/ChangeSupervisor/index.jsx
  19. 2 2
      src/pages/Product/Lock/Lockstore/components/ChangeClient/index.jsx
  20. 2 2
      src/pages/Product/Lock/Lockstore/components/LocksDetail/Form.jsx
  21. 2 2
      src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx
  22. 3 3
      src/pages/Product/Lock/Lockstore/index.jsx
  23. 12 12
      src/pages/workbench/Dashboard/components/LeaderBoard.jsx
  24. 13 13
      src/pages/workbench/Dashboard/components/RatioPanels.jsx
  25. 5 5
      src/pages/workbench/Dashboard/components/ReminderList.jsx
  26. 2 2
      src/pages/workbench/Dashboard/consts.js
  27. 4 4
      src/pages/workbench/Dashboard/index.jsx
  28. 15 15
      src/services/customer.js
  29. 1 1
      src/services/lock.js
  30. 1 1
      src/services/staff.js

+ 1 - 1
src/pages/Customer/Business/components/BusinessDetail/Form.jsx

@@ -33,7 +33,7 @@ const Form = props => {
     },
     {
       dataIndex: 'customerId',
-      label: '客户名称',
+      label: '单位名称',
       editCellType: 'custom',
       customCell: <ChangeCompanyInput dataSource={changeCopInputData} />,
       span: 24

+ 2 - 2
src/pages/Customer/Business/components/BusinessDetail/TabList.jsx

@@ -107,7 +107,7 @@ const ContanctTabList = ({ businessId, clientList }) => {
     <div>
       <div className="pl-15px">
         <Tabs>
-          <TabPane tab="联系人" key="1">
+          <TabPane tab="客户" key="1">
             <div className="sheet-right-panel">
               <ProTable
                 size="small"
@@ -134,7 +134,7 @@ const ContanctTabList = ({ businessId, clientList }) => {
           size="small"
           className="mr-1"
           onClick={() => showConnectClientModal()}>
-          <Plus className="mr-1" /> 联系人
+          <Plus className="mr-1" /> 客户
         </Button>
       </div>
     </div>

+ 1 - 1
src/pages/Customer/Business/components/BusinessDetail/index.jsx

@@ -19,7 +19,7 @@ const Detail = props => {
     log: {},
     serviceLog: {},
     groupStatus: [],
-    linkClient: {} // 关联的联系人
+    linkClient: {} // 关联的客户
   })
 
   const initData = async id => {

+ 1 - 1
src/pages/Customer/Business/index.jsx

@@ -82,7 +82,7 @@ const Business = ({ dispatch, groupList, shouldUpdate, loading }) => {
     },
     {
       dataIndex: 'customerName',
-      title: '客户名称',
+      title: '单位名称',
       width: '20%',
       render: (text, record) => {
         return record.customerId !== consts.ENCRYPTION_ZERO ? (

+ 7 - 7
src/pages/Customer/Client/components/AddClient/index.jsx

@@ -14,7 +14,7 @@ const AddClient = props => {
     buttonProps,
     dataId,
     dataType,
-    btnTitle = '联系人',
+    btnTitle = '客户',
     defaultValues
   } = props
   const formRef = useRef(null)
@@ -28,7 +28,7 @@ const AddClient = props => {
     <ModalDragForm
       {...layout}
       formRef={formRef}
-      title="添加联系人"
+      title="添加客户"
       onVisibleChange={visible => {
         if (visible) {
           formRef.current?.setFieldsValue({ ...defaultValues })
@@ -74,7 +74,7 @@ const AddClient = props => {
         rules={[{ required: true, message: '请输入姓名' }]}
       />
       <Form.Item
-        label="联系人地区"
+        label="客户地区"
         name="districtIds"
         rules={[{ required: true, message: '请选择地区' }]}>
         <LazyCascader showFooter={true} />
@@ -108,12 +108,12 @@ const AddClient = props => {
       <ProFormText label="办公室" name="office" />
       <Row>
         <Col span={12}>
-          <ProFormText label="联系人地址" name="address" />
-          <ProFormText label="联系人地标" name="landmarks" />
+          <ProFormText label="客户地址" name="address" />
+          <ProFormText label="客户地标" name="landmarks" />
         </Col>
         <Col span={12}>
-          <ProFormText label="联系人乘车" name="ride" />
-          <ProFormText label="联系人住宿" name="stay" />
+          <ProFormText label="客户乘车" name="ride" />
+          <ProFormText label="客户住宿" name="stay" />
         </Col>
       </Row>
       <ProFormTextArea label="备注" name="mark" />

+ 7 - 7
src/pages/Customer/Client/components/ClientDetail/Form.jsx

@@ -35,13 +35,13 @@ const ContanctForm = props => {
     },
     {
       dataIndex: 'districtIds',
-      label: '联系人地区',
+      label: '客户地区',
       editCellType: 'cascader',
       span: 24
     },
     {
       dataIndex: 'companyName',
-      label: '客户名称',
+      label: '单位名称',
       editCellType: 'custom',
       customCell: <ChangeCompanyInput dataSource={changeCopInputData} />,
       span: 24
@@ -100,25 +100,25 @@ const ContanctForm = props => {
     },
     {
       dataIndex: 'address',
-      label: '联系人地址',
+      label: '客户地址',
       span: 24,
       editCellType: 'textarea'
     },
     {
       dataIndex: 'ride',
-      label: '联系人乘车',
+      label: '客户乘车',
       span: 24,
       editCellType: 'textarea'
     },
     {
       dataIndex: 'landmarks',
-      label: '联系人地标',
+      label: '客户地标',
       span: 24,
       editCellType: 'textarea'
     },
     {
       dataIndex: 'stay',
-      label: '联系人住宿',
+      label: '客户住宿',
       span: 24,
       editCellType: 'textarea'
     },
@@ -188,7 +188,7 @@ const ContanctForm = props => {
     <div>
       <Row>
         <Col span={8}>
-          <h2 className="text-gray-500">联系人</h2>
+          <h2 className="text-gray-500">客户</h2>
         </Col>
         {/* className={[ 'text-right', styles.textMuted ]} */}
         <Col span={16} className="text-right text-gray-500">

+ 3 - 3
src/pages/Customer/Client/components/ConnectClient/index.jsx

@@ -75,7 +75,7 @@ const ConnectClient = ({ dataId, onSelect, preUrl = 'client', showFooter = true
     }
   }
 
-  // 商机/软件锁关联联系人
+  // 商机/软件锁关联客户
   const connectClient = async clientId => {
     const { code = -1 } = await apiChangeClient(preUrl, { id: dataId, clientId })
     if (code === consts.RET_CODE.SUCCESS) {
@@ -106,7 +106,7 @@ const ConnectClient = ({ dataId, onSelect, preUrl = 'client', showFooter = true
         <Input
           prefix={<SearchOutlined />}
           className={styles.inputSearch}
-          placeholder="输入联系人名称搜索"
+          placeholder="输入客户名称搜索"
           onChange={handleInputChange}
         />
       }>
@@ -139,7 +139,7 @@ const ConnectClient = ({ dataId, onSelect, preUrl = 'client', showFooter = true
             dataId={dataId}
             dataType={preUrl}
             buttonProps={{ ghost: true }}
-            btnTitle={'添加并关联到新联系人'}
+            btnTitle={'添加并关联到新客户'}
           />
         </div>
       ) : null}

+ 4 - 4
src/pages/Customer/Client/index.jsx

@@ -129,7 +129,7 @@ const Client = props => {
     toggleDrawer()
   }
 
-  // 展示客户
+  // 展示单位
   const showDrawerComapny = id => {
     setDrawerProps({
       closable: true,
@@ -151,7 +151,7 @@ const Client = props => {
     //   search: false
     // },
     {
-      title: '联系人',
+      title: '客户',
       dataIndex: 'clientName',
       key: 'clientName',
       width: 50,
@@ -167,7 +167,7 @@ const Client = props => {
       search: false
     },
     {
-      title: '客户名称',
+      title: '单位名称',
       dataIndex: 'companyName',
       key: 'companyName',
       width: 150,
@@ -566,7 +566,7 @@ const Client = props => {
         search={{ filterType: 'light' }}
         toolbar={{
           search: (
-            <Tooltip placement="bottom" title="输入联系人、客户名称、电话邮箱等">
+            <Tooltip placement="bottom" title="输入客户、单位名称、电话邮箱等">
               <Input.Search
                 style={{ width: '300px' }}
                 allowClear={true}

+ 12 - 12
src/pages/Customer/Company/components/AddCompany/index.jsx

@@ -26,7 +26,7 @@ const AddCompanyModal = ({ reload, dataId, dataType, onConfirm, dispatch, nature
   return (
     <ModalDragForm
       formRef={formRef}
-      title="添加新客户"
+      title="添加新单位"
       {...layout}
       submitter={{
         render: ({ submit }, defaultDoms) => [
@@ -55,7 +55,7 @@ const AddCompanyModal = ({ reload, dataId, dataType, onConfirm, dispatch, nature
       trigger={
         <Button type="primary">
           <Plus className="mr-1" />
-          客户
+          单位
         </Button>
       }
       onFinish={async values => {
@@ -66,28 +66,28 @@ const AddCompanyModal = ({ reload, dataId, dataType, onConfirm, dispatch, nature
       }}>
       <ProFormText
         name="companyName"
-        label="客户名称"
-        placeholder="请输入客户全称"
-        rules={[{ required: true, message: '请输入客户全称' }]}
+        label="单位名称"
+        placeholder="请输入单位全称"
+        rules={[{ required: true, message: '请输入单位全称' }]}
       />
       {showDataItem ? <ProFormText name={`${dataType}Id`} hidden /> : null}
       <Form.Item
         name="districtIds"
-        label="客户地区"
+        label="单位地区"
         rules={[{ required: true, message: '请选择地区' }]}>
         <LazyCascader showFooter={true} />
       </Form.Item>
       <ProFormText
         name="phone"
-        label="客户电话"
-        placeholder="请输入客户电话"
-        rules={[{ required: true, message: '请输入客户电话' }]}
+        label="单位电话"
+        placeholder="请输入单位电话"
+        rules={[{ required: true, message: '请输入单位电话' }]}
       />
-      <ProFormCheckbox.Group name="natureIds" label="客户性质" options={natures} />
-      <ProFormText name="address" label="客户地址" placeholder="" />
+      <ProFormCheckbox.Group name="natureIds" label="单位性质" options={natures} />
+      <ProFormText name="address" label="单位地址" placeholder="" />
       <Row>
         <Col span={12}>
-          <ProFormText name="fax" label="客户传真" placeholder="" />
+          <ProFormText name="fax" label="单位传真" placeholder="" />
           <ProFormText name="ride" label="乘车路线" placeholder="" />
           <ProFormText name="stay" label="参考住宿" placeholder="" />
         </Col>

+ 5 - 5
src/pages/Customer/Company/components/ChangeCompany/index.jsx

@@ -12,7 +12,7 @@ import CompanyDetail from '@/pages/Customer/Company/components/CompanyDetail'
 export const ChangeCompMap = {
   CLIENT: {
     key: 'client',
-    title: '联系人'
+    title: '客户'
   },
   BUSINESS: {
     key: 'business',
@@ -29,7 +29,7 @@ const ChangeCompanyInput = props => {
       customerName,
       targetName,
       actionPayload = ChangeCompMap.CLIENT.key,
-      title = '联系人'
+      title = '客户'
     }
   } = props
   const refreshClient = () => {
@@ -51,7 +51,7 @@ const ChangeCompanyInput = props => {
   const notValueRender = (
     <div onClick={handleConnectCustomer} className={styles.notCompanyContent}>
       <LinkOne size="14" />
-      <span className="ml-5px">关联客户</span>
+      <span className="ml-5px">关联单位</span>
     </div>
   )
 
@@ -95,14 +95,14 @@ const ChangeCompanyInput = props => {
           {customerName}
         </div>
         <div className="w-55px">
-          <Tooltip placement="right" title="移除客户">
+          <Tooltip placement="right" title="移除单位">
             <span className={styles.unlinkIcon} onClick={removeCustomer}>
               <LinkInterrupt />
             </span>
           </Tooltip>
           <Tooltip
             placement="right"
-            title="更换客户"
+            title="更换单位"
             className="ml-5px"
             onClick={handleConnectCustomer}>
             <span className={styles.switchIcon}>

+ 7 - 7
src/pages/Customer/Company/components/CompanyDetail/Form.jsx

@@ -42,29 +42,29 @@ const CompanyForm = props => {
   const columns = [
     {
       dataIndex: 'companyName',
-      label: '客户全称',
+      label: '单位全称',
       span: 24
     },
     {
       dataIndex: 'districtIds',
-      label: '客户地区',
+      label: '单位地区',
       editCellType: 'cascader',
       span: 24
     },
     {
       dataIndex: 'phone',
-      label: '客户电话',
+      label: '单位电话',
       span: 24
     },
     {
       dataIndex: 'natureIds',
-      label: '客户性质',
+      label: '单位性质',
       editCellType: 'select',
       span: 24
     },
     {
       dataIndex: 'fax',
-      label: '客户传真',
+      label: '单位传真',
       span: 24
     },
     {
@@ -74,7 +74,7 @@ const CompanyForm = props => {
     },
     {
       dataIndex: 'address',
-      label: '客户地址',
+      label: '单位地址',
       span: 24,
       editCellType: 'textarea'
     },
@@ -161,7 +161,7 @@ const CompanyForm = props => {
     <div>
       <Row>
         <Col span={8}>
-          <h2 className="text-gray-500">客户</h2>
+          <h2 className="text-gray-500">单位</h2>
         </Col>
         <Col span={16} className="text-right text-gray-500">
           {customer.staffName} 创建于 {customer.createTime}

+ 2 - 2
src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

@@ -140,7 +140,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
   }
 
   const handleAddClient = async values => {
-    // 客户id
+    // 单位id
     const payload = formatValues({ ...values, customerId })
     const { code = -1, msg = '新增失败' } = await apiAddClient(payload)
     if (code === consts.RET_CODE.SUCCESS) {
@@ -156,7 +156,7 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
     <div>
       <div className="pl-15px">
         <Tabs>
-          <TabPane tab="联系人" key="联系人">
+          <TabPane tab="客户" key="客户">
             <div className="sheet-right-panel" ref={tRef}>
               <ProTable
                 size="small"

+ 2 - 2
src/pages/Customer/Company/components/ConnectCompany/index.jsx

@@ -74,7 +74,7 @@ const ConnectCompany = ({ dataId, onSelect, preUrl }) => {
     }
   }
 
-  // 联系人/商机关联客户
+  // 客户/商机关联单位
   const connectCustomer = async customerId => {
     const { code = -1 } = await apiChangeCustomer(preUrl, { id: dataId, customerId })
     if (code === consts.RET_CODE.SUCCESS) {
@@ -105,7 +105,7 @@ const ConnectCompany = ({ dataId, onSelect, preUrl }) => {
         <Input
           prefix={<SearchOutlined />}
           className={styles.inputSearch}
-          placeholder="输入客户名称搜索"
+          placeholder="输入单位名称搜索"
           onChange={handleInputChange}
         />
       }>

+ 2 - 2
src/pages/Customer/Company/components/PersonLabel/const.js

@@ -4,8 +4,8 @@ export const DropdownTypeEnum = {
 }
 // 数据类型
 export const TagDataTypeEnum = {
-  CLIENT: 1, // 联系人
-  COMPANY: 2 // 客户
+  CLIENT: 1, // 客户
+  COMPANY: 2 // 单位
 }
 // 标签类型
 export const TagTypeEnum = {

+ 2 - 2
src/pages/Customer/Company/components/PersonLabel/index.jsx

@@ -29,14 +29,14 @@ const PersonLabel = props => {
 
   const tags = useMemo(() => {
     if (tagColumn === TagDataTypeEnum.CLIENT) {
-      // 联系人
+      // 客户
       if (tagType === TagTypeEnum.PERSONTAG) {
         return props.clientPersonTags
       }
       return props.clientTeamTags
     }
     if (tagColumn === TagDataTypeEnum.COMPANY) {
-      // 客户
+      // 单位
       if (tagType === TagTypeEnum.PERSONTAG) {
         return props.companyPersonTags
       }

+ 7 - 7
src/pages/Customer/Company/index.jsx

@@ -147,7 +147,7 @@ const Company = props => {
 
   const columns = [
     {
-      title: '客户名称',
+      title: '单位名称',
       dataIndex: 'companyName',
       key: 'companyName',
       width: 150,
@@ -170,7 +170,7 @@ const Company = props => {
       width: 100
     },
     {
-      title: '客户电话',
+      title: '单位电话',
       dataIndex: 'phone',
       key: 'phone',
       search: false,
@@ -238,7 +238,7 @@ const Company = props => {
       )
     },
     {
-      title: '联系人',
+      title: '客户',
       dataIndex: 'clientTotal',
       key: 'clientTotal',
       search: false,
@@ -246,14 +246,14 @@ const Company = props => {
       width: 80
     },
     {
-      title: '客户性质',
+      title: '单位性质',
       dataIndex: 'nature',
       key: 'nature',
       search: false,
       width: 80
     },
     {
-      title: '客户地址',
+      title: '单位地址',
       dataIndex: 'address',
       key: 'address',
       search: false,
@@ -261,7 +261,7 @@ const Company = props => {
       width: 150
     },
     {
-      title: '客户传真',
+      title: '单位传真',
       dataIndex: 'fax',
       key: 'fax',
       search: false,
@@ -462,7 +462,7 @@ const Company = props => {
         search={{ filterType: 'light' }}
         toolbar={{
           search: (
-            <Tooltip placement="bottom" title="输入客户名称、客户性质等">
+            <Tooltip placement="bottom" title="输入单位名称、单位性质等">
               <Input.Search
                 style={{ width: '300px' }}
                 allowClear={true}

+ 1 - 1
src/pages/Customer/Company/model.js

@@ -8,7 +8,7 @@ import { queryNatures, queryTagList } from '@/services/customer'
 export default {
   namespace: 'company',
   state: {
-    natures: [], // 客户性质
+    natures: [], // 单位性质
     personTags: [], // 个人标签
     personTagColorMap: {}, // 个人标签的颜色映射关系
     teamTags: [], // 协作标签

+ 1 - 1
src/pages/Hr/Employee/components/ChangeSupervisor/index.jsx

@@ -47,7 +47,7 @@ const ChangeSupervisor = props => {
   const notValueRender = (
     <div onClick={handleConnectStaff} className={styles.notCompanyContent}>
       <LinkOne size="14" />
-      <span className="ml-5px">关联客户</span>
+      <span className="ml-5px">关联单位</span>
     </div>
   )
 

+ 2 - 2
src/pages/Product/Lock/Lockstore/components/ChangeClient/index.jsx

@@ -36,7 +36,7 @@ const ChangeClient = props => {
   const notValueRender = (
     <div onClick={handleConnectCustomer} className={styles.notCompanyContent}>
       <LinkOne size="14" />
-      <span className="ml-5px">关联联系人</span>
+      <span className="ml-5px">关联客户</span>
     </div>
   )
   const handleCompanyClick = () => {
@@ -62,7 +62,7 @@ const ChangeClient = props => {
         <div className="max-w-55px">
           <Tooltip
             placement="right"
-            title="更换联系人"
+            title="更换客户"
             className="ml-5px"
             onClick={handleConnectCustomer}>
             <span className={styles.switchIcon}>

+ 2 - 2
src/pages/Product/Lock/Lockstore/components/LocksDetail/Form.jsx

@@ -128,14 +128,14 @@ const LockForm = props => {
         <Col span={6}>负责人</Col>
         <Col span={18}>{longle.responsible}</Col>
         <Divider style={{ margin: '12px 0' }} />
-        <Col span={6}>客户</Col>
+        <Col span={6}>单位</Col>
         <Col span={18}>
           <span className="textPurple text-hex-967bbd cursor-pointer" onClick={handleCompanyClick}>
             {longle.customerName}
           </span>
         </Col>
         <Divider style={{ margin: '12px 0' }} />
-        <Col span={6}>联系人</Col>
+        <Col span={6}>客户</Col>
         <Col span={18}>
           <ChangeClient dataSource={changeCopInputData} />
         </Col>

+ 2 - 2
src/pages/Product/Lock/Lockstore/components/LocksDetail/LockModal.jsx

@@ -29,7 +29,7 @@ const LockModal = props => {
     5: '确认接收'
   }
   const placeholderEnum = {
-    6: '搜索联系人(姓名、手机、QQ、公司名称)',
+    6: '搜索客户(姓名、手机、QQ、公司名称)',
     2: '输入新锁号'
   }
   const [form] = Form.useForm()
@@ -162,7 +162,7 @@ const LockModal = props => {
     })
   }
 
-  // 关联联系人
+  // 关联客户
   const connectClient = async id => {
     const { code = -1 } = await apiSoftwareAddLonglelog({
       clientId: id,

+ 3 - 3
src/pages/Product/Lock/Lockstore/index.jsx

@@ -174,7 +174,7 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
     toggleDrawer()
   }
 
-  // 展示客户详情抽屉
+  // 展示单位详情抽屉
   const showCompanyDrawer = id => {
     setDrawerProps({
       closable: true,
@@ -292,7 +292,7 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
       )
     },
     {
-      title: '客户',
+      title: '单位',
       dataIndex: 'customerName',
       render: (text, record) => (
         <span
@@ -303,7 +303,7 @@ const LockStore = ({ prodList = [], dispatch, shouldUpdate }) => {
       )
     },
     {
-      title: '联系人',
+      title: '客户',
       dataIndex: 'client',
       width: 150,
       render: (text, record) => (

+ 12 - 12
src/pages/workbench/Dashboard/components/LeaderBoard.jsx

@@ -6,10 +6,10 @@ import React, { useState, useMemo } from 'react'
 const { Option } = Select
 
 const opMap = {
-  customer: '新增客户',
-  customerService: '客户服务',
-  client: '新增联系人',
-  clientService: '联系人服务',
+  customer: '新增单位',
+  customerService: '单位服务',
+  client: '新增客户',
+  clientService: '客户服务',
   business: '新增商机',
   businessService: '商机服务'
 }
@@ -37,25 +37,25 @@ const LeaderBoard = ({ loading = false, dataList = [] }) => {
         width: '40%'
       },
       {
-        title: '新增客户数',
+        title: '新增单位数',
         dataIndex: 'customer',
         align: 'center',
         width: '30%'
       },
       {
-        title: '客户服务',
+        title: '单位服务',
         dataIndex: 'customerService',
         align: 'center',
         width: '30%'
       },
       {
-        title: '新增联系人',
+        title: '新增客户',
         dataIndex: 'client',
         align: 'center',
         width: '30%'
       },
       {
-        title: '联系人服务',
+        title: '客户服务',
         dataIndex: 'clientService',
         align: 'center',
         width: '30%'
@@ -100,10 +100,10 @@ const LeaderBoard = ({ loading = false, dataList = [] }) => {
         <div className="px-4 pt-2 pb-0 flex items-center justify-between">
           <span>排行榜</span>
           <Select defaultValue="customer" onChange={e => setActiveOp(e)}>
-            <Option value="customer">新增客户</Option>
-            <Option value="customerService">客户服务</Option>
-            <Option value="client">新增联系人</Option>
-            <Option value="clientService">联系人服务</Option>
+            <Option value="customer">新增单位</Option>
+            <Option value="customerService">单位服务</Option>
+            <Option value="client">新增客户</Option>
+            <Option value="clientService">客户服务</Option>
             <Option value="business">新增商机</Option>
             <Option value="businessService">商机服务</Option>
             {/* <Option value="开票金额">开票金额</Option>

+ 13 - 13
src/pages/workbench/Dashboard/components/RatioPanels.jsx

@@ -13,11 +13,11 @@ import { useModal } from '@/components/Modal'
 const dataTypeEunm = {
   0: {
     key: 'client',
-    title: '新增联系人'
+    title: '新增客户'
   },
   1: {
     key: 'customer',
-    title: '新增客户'
+    title: '新增单位'
   },
   2: {
     key: 'business',
@@ -47,8 +47,8 @@ const renderBadge = (count, active = false) => {
 const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
   const { toggleDrawer, setDrawerProps } = useModal()
   const activeKeyMap = {
-    0: { key: 'clientName', title: '联系人', id: 'clientId' },
-    1: { key: 'customerName', title: '客户', id: 'customerId' },
+    0: { key: 'clientName', title: '客户', id: 'clientId' },
+    1: { key: 'customerName', title: '单位', id: 'customerId' },
     2: { key: 'businessName', title: '商机', id: 'businessId' }
   }
   const [state, setState] = useState({
@@ -132,7 +132,7 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
               key: '0',
               label: (
                 <span>
-                  联系人
+                  客户
                   {renderBadge(state.total, state.activeKey === '0')}
                 </span>
               )
@@ -141,7 +141,7 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
               key: '1',
               label: (
                 <span>
-                  客户
+                  单位
                   {renderBadge(state.total, state.activeKey === '1')}
                 </span>
               )
@@ -194,7 +194,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
     })
     toggleDrawer()
   }
-  // 展示客户
+  // 展示单位
   const showDrawerComapny = id => {
     setDrawerProps({
       zIndex: '1200',
@@ -212,7 +212,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
     0: [
       {
         dataIndex: 'clientName',
-        title: '联系人名称',
+        title: '客户名称',
         width: '10%',
         render: (clientName, record) => (
           <span
@@ -224,7 +224,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       },
       {
         dataIndex: 'companyName',
-        title: '客户名称',
+        title: '单位名称',
         width: '16%'
       },
       {
@@ -261,7 +261,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
     1: [
       {
         dataIndex: 'companyName',
-        title: '客户名称',
+        title: '单位名称',
         width: '16%',
         render: (companyName, record) => (
           <span
@@ -278,13 +278,13 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       },
       {
         dataIndex: 'nature',
-        title: '客户性质',
+        title: '单位性质',
         ellipsis: true,
         width: '14%'
       },
       {
         dataIndex: 'phone',
-        title: '客户电话',
+        title: '单位电话',
         width: '5%'
       },
       {
@@ -306,7 +306,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       },
       {
         dataIndex: 'customerName',
-        title: '客户名称',
+        title: '单位名称',
         width: '20%'
       },
       {

+ 5 - 5
src/pages/workbench/Dashboard/components/ReminderList.jsx

@@ -15,7 +15,7 @@ const ReminderList = props => {
   // })
   const clientColumns = [
     {
-      title: '联系人名称',
+      title: '客户名称',
       dataIndex: 'clientName',
       width: '7%'
     },
@@ -54,7 +54,7 @@ const ReminderList = props => {
   ]
   const customerColumns = [
     {
-      title: '客户名称',
+      title: '单位名称',
       dataIndex: 'companyName',
       width: '15%'
     },
@@ -98,7 +98,7 @@ const ReminderList = props => {
       width: '15%'
     },
     {
-      title: '客户名称',
+      title: '单位名称',
       dataIndex: 'customerName',
       width: '15%'
     },
@@ -141,8 +141,8 @@ const ReminderList = props => {
   }
 
   const titleMap = {
-    0: { title: '联系人' },
-    1: { title: '客户' },
+    0: { title: '客户' },
+    1: { title: '单位' },
     2: { title: '商机' }
   }
 

+ 2 - 2
src/pages/workbench/Dashboard/consts.js

@@ -52,8 +52,8 @@ export const cyclicalOp = [
 ]
 
 export const cardTypeMap = {
-  CLIENT: 0, // 联系人
-  COMPANY: 1, // 客户
+  CLIENT: 0, // 客户
+  COMPANY: 1, // 单位
   BUSINESS: 2, // 商机
   SERVICE: 3 // 服务记录
 }

+ 4 - 4
src/pages/workbench/Dashboard/index.jsx

@@ -277,7 +277,7 @@ const Dashboard = () => {
                     </div>
 
                     <div className="flex justify-between items-center">
-                      <div>新增客户</div>
+                      <div>新增单位</div>
                       <span>
                         {cyclicalOp.find(item => item.value === state.params.cyclical)?.title}
                       </span>
@@ -312,7 +312,7 @@ const Dashboard = () => {
                       </span>
                     </div>
                     <div className="flex justify-between items-center">
-                      <div>新增联系人</div>
+                      <div>新增客户</div>
                       <span>
                         {cyclicalOp.find(item => item.value === state.params.cyclical)?.title}
                       </span>
@@ -419,11 +419,11 @@ const Dashboard = () => {
               loading={state.loading}>
               <ul>
                 <li className="px-12px py-16px border-b-1">
-                  新增客户<b className="px-1">{state.aggregation.customerCount}</b>个,服务
+                  新增单位<b className="px-1">{state.aggregation.customerCount}</b>个,服务
                   <b className="px-1">{state.aggregation.customerServiceCount}</b>条
                 </li>
                 <li className="px-12px py-16px border-b-1">
-                  新增联系人<b className="px-1">{state.aggregation.clientCount}</b>个,服务
+                  新增客户<b className="px-1">{state.aggregation.clientCount}</b>个,服务
                   <b className="px-1">{state.aggregation.clientServiceCount}</b> 条
                 </li>
                 <li className="px-12px py-16px">

+ 15 - 15
src/services/customer.js

@@ -1,7 +1,7 @@
 import request from '@/basic/utils/request'
 
 /**
- * 获取客户列表
+ * 获取单位列表
  * @param {*} payload
  * @returns 结果集
  */
@@ -69,7 +69,7 @@ export async function apiBatchLink(payload) {
 }
 
 /**
- * 请求联系人列表
+ * 请求客户列表
  * @param {*} payload 载荷
  */
 export async function queryClient(payload) {
@@ -80,8 +80,8 @@ export async function queryClient(payload) {
 }
 
 /**
- * 获取联系人详情
- * @param {string} id 联系人记录id
+ * 获取客户详情
+ * @param {string} id 客户记录id
  */
 export async function apiContactDetail(id) {
   const params = { id }
@@ -90,7 +90,7 @@ export async function apiContactDetail(id) {
 }
 
 /**
- * 新增联系人
+ * 新增客户
  * @param {*} payload 载荷
  */
 export async function apiAddClient(payload) {
@@ -99,7 +99,7 @@ export async function apiAddClient(payload) {
 }
 
 /**
- * 新增联系人服务日志
+ * 新增客户服务日志
  * @param {*} payload 载荷
  */
 export async function apiAddService(payload) {
@@ -117,7 +117,7 @@ export async function apiAddBusiService(payload) {
 }
 
 /**
- * 联系人更换客户
+ * 客户更换单位
  * @param {*} payload
  * @returns
  */
@@ -127,7 +127,7 @@ export async function apiChangeCustomer(preUrl, payload) {
 }
 
 /**
- * 移除联系人的客户关系
+ * 移除客户的单位关系
  * @param {*} payload
  * @returns
  */
@@ -137,7 +137,7 @@ export async function apiDelCustomer(preUrl, payload) {
 }
 
 /**
- * 获取客户性质列表
+ * 获取单位性质列表
  * @returns
  */
 export async function queryNatures() {
@@ -146,7 +146,7 @@ export async function queryNatures() {
 }
 
 /**
- * 请求客户列表
+ * 请求单位列表
  * @param {*} payload 载荷
  */
 export async function queryCompany(params) {
@@ -157,8 +157,8 @@ export async function queryCompany(params) {
 }
 
 /**
- * 获取客户详情
- * @param {string} id 联系人记录id
+ * 获取单位详情
+ * @param {string} id 客户记录id
  */
 export async function apiCompanyDetail(id) {
   const params = { id }
@@ -167,7 +167,7 @@ export async function apiCompanyDetail(id) {
 }
 
 /**
- * 新增客户
+ * 新增单位
  * @param {string} data
  */
 export async function apiAddCompany(payload) {
@@ -176,7 +176,7 @@ export async function apiAddCompany(payload) {
 }
 
 /**
- * 新增客户服务日志
+ * 新增单位服务日志
  * @param {*} payload 载荷
  */
 export async function apiAddCustomerService(payload) {
@@ -210,7 +210,7 @@ export async function getBusinessDetailById(params) {
   })
 }
 
-/** 商机/锁库关联联系人 */
+/** 商机/锁库关联客户 */
 export async function apiChangeClient(preUrl, params) {
   let url = '/business/link/client'
   if (preUrl === 'software') {

+ 1 - 1
src/services/lock.js

@@ -1,6 +1,6 @@
 import request from '@/basic/utils/request'
 
-/** 请求客户列表 */
+/** 请求单位列表 */
 export async function queryLock(params) {
   return request.post('/software/list', {
     data: params

+ 1 - 1
src/services/staff.js

@@ -14,7 +14,7 @@ export async function queryStaff(payload) {
 
 /**
  * 获取员工详情
- * @param {string} id 联系人记录id
+ * @param {string} id 客户记录id
  */
 export async function apiStaffDetail(id) {
   const params = { id }