diff --git a/src/pages/authentication/auth-forms/BusCustomFormWizard.js b/src/pages/authentication/auth-forms/BusCustomFormWizard.js index 06f3220..e4326b5 100644 --- a/src/pages/authentication/auth-forms/BusCustomFormWizard.js +++ b/src/pages/authentication/auth-forms/BusCustomFormWizard.js @@ -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) => { diff --git a/src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js b/src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js index 68f67fb..28f118d 100644 --- a/src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js +++ b/src/pages/pnspsUserDetailPage_Individual/UserInformationCard_Individual.js @@ -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);