Selaa lähdekoodia

fix bug

master
Anna Ho 1 vuosi sitten
vanhempi
commit
a9d87fbbf0
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. +3
    -1
      src/pages/authentication/auth-forms/BusCustomFormWizard.js
  2. +1
    -1
      src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js

+ 3
- 1
src/pages/authentication/auth-forms/BusCustomFormWizard.js Näytä tiedosto

@@ -146,6 +146,7 @@ const BusCustomFormWizard = (props) => {
termsAndConAccept == true&&
fileList.length!==0&&
data.captchaField&&
data.brNo!==""&&
handlePassword(data.password)&&
handleEmail(data.email)&&
handlePhone(data.phone)&&
@@ -443,7 +444,7 @@ const BusCustomFormWizard = (props) => {
phone: yup.string().min(8,'請輸入最少8位數字').required('請輸入聯絡電話'),
fax: yup.string().min(8,'請輸入最少8位數字'),
brExpiryDate: yup.string().min(8,'請輸入商業登記證有效日期'),
brNo: yup.string().min(8,'請輸入商業登記證號碼'),
brNo: yup.string().min(8,'請輸入商業登記證號碼').required('請輸入商業登記證號碼'),
captchaField: yup.string().required('請輸入驗證').oneOf([captcha], '請輸入有效驗證'),
})
@@ -713,6 +714,7 @@ const BusCustomFormWizard = (props) => {
value={formik.values.brNo.trim()}
name="brNo"
onChange={formik.handleChange}
onBlur={formik.handleBlur}
placeholder="與與商業登記證相同如有"
inputProps={{
onKeyDown: (e) => {


+ 1
- 1
src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js Näytä tiedosto

@@ -38,7 +38,7 @@ const UserInformationCard_Individual = ({formData, loadDataFun}) => {
tel_countryCode: yup.string().min(3,'請輸入3位數字').required('請輸入國際區號'),
fax_countryCode: yup.string().min(3,'請輸入3位數字'),
phoneNumber: yup.string().min(8,'請輸入8位數字').required('請輸入聯絡電話'),
faxNumber: yup.string().min(8,'請輸入8位數字').required('請輸入8位數字'),
faxNumber: yup.string().min(8,'請輸入8位數字').nullable(),
}),
onSubmit:values=>{
console.log(values);


Ladataan…
Peruuta
Tallenna