outaozhen пре 4 година
родитељ
комит
a6010ed060
1 измењених фајлова са 5 додато и 9 уклоњено
  1. 5 9
      src/pages/Customer/Client/components/AddClient/index.jsx

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

@@ -45,7 +45,7 @@ const AddClient = props => {
         return
       }
       const [lastName, ...firstName] = changedValues.clientName.split('')
-      const newClientName = `${lastName}(${firstName.join('')})工`
+      const newClientName = `${lastName}(${firstName.join('')})工`
       formRef.current?.setFieldsValue({ niceName: newClientName })
     }
     if ('qq' in changedValues) {
@@ -101,8 +101,7 @@ const AddClient = props => {
                 }
                 formRef.current && formRef.current.setFieldsValue(values)
                 submit()
-              }}
-            >
+              }}>
               添加并关联
             </Button>
           ) : null
@@ -114,8 +113,7 @@ const AddClient = props => {
         setValidStatusFtl('')
         !isNullOrUnDef(reload) && reload()
         return true
-      }}
-    >
+      }}>
       {showDataItem ? <ProFormText name={`${dataType}Id`} hidden /> : null}
       <ProFormText
         name="clientName"
@@ -126,8 +124,7 @@ const AddClient = props => {
       <Form.Item
         label="客户地区"
         name="districtIds"
-        rules={[{ required: true, message: '请选择地区' }]}
-      >
+        rules={[{ required: true, message: '请选择地区' }]}>
         <LazyCascader showFooter={true} />
       </Form.Item>
       <Row>
@@ -149,8 +146,7 @@ const AddClient = props => {
             name="telephone"
             validateStatus={validStatusFtl}
             hasFeedback
-            rules={[{ required: true, message: '请输入手机号码' }]}
-          >
+            rules={[{ required: true, message: '请输入手机号码' }]}>
             <TelephoneFormItem validateFn={status => setValidStatusFtl(status)} />
           </Form.Item>
           <ProFormText