Parcourir la source

feat: 客户信息新增一项“微信号”

outaozhen il y a 4 ans
Parent
commit
6c2f4989ec

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

@@ -102,6 +102,11 @@ const ClientForm = props => {
         span: 24
       },
       {
+        dataIndex: 'wechat',
+        label: '微信号',
+        span: 24
+      },
+      {
         dataIndex: 'qq',
         label: 'QQ',
         span: 24
@@ -173,8 +178,7 @@ const ClientForm = props => {
                 tagType={TagTypeEnum.PERSONTAG}
                 tagColumn={TagDataTypeEnum.CLIENT}
                 checkCallBack={refreshClient}
-                modeType={LabelModeType.column}
-              >
+                modeType={LabelModeType.column}>
                 <Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
               </PersonLabel>
             </div>
@@ -201,8 +205,7 @@ const ClientForm = props => {
                 tagType={TagTypeEnum.TEAMTAG}
                 tagColumn={TagDataTypeEnum.CLIENT}
                 checkCallBack={refreshClient}
-                modeType={LabelModeType.column}
-              >
+                modeType={LabelModeType.column}>
                 <Add theme="filled" size="20" fill="#868e96" className="cursor-pointer" />
               </PersonLabel>
             </div>
@@ -257,12 +260,7 @@ const ClientForm = props => {
         </Col>
         <Col span={2} />
       </Row>
-      <EditableForm
-        dataSource={client}
-        columns={columns}
-        tartgetUrl="/client/update"
-        type={updatePayload}
-      />
+      <EditableForm dataSource={client} columns={columns} tartgetUrl="/client/update" type={updatePayload} />
     </div>
   )
 }

+ 7 - 0
src/pages/Customer/Client/index.jsx

@@ -212,6 +212,13 @@ const Client = props => {
       search: false
     },
     {
+      title: '微信号',
+      dataIndex: 'wechat',
+      key: 'wechat',
+      width: 120,
+      search: false
+    },
+    {
       title: 'QQ',
       dataIndex: 'qq',
       key: 'qq',