| @@ -69,7 +69,7 @@ const PublicNoticeApplyForm = ({loadedData, selections}) => { | |||||
| setIsWarningPopUp(true); | setIsWarningPopUp(true); | ||||
| return; | return; | ||||
| } | } | ||||
| console.log(values); | |||||
| // console.log(values); | |||||
| HttpUtils.postWithFiles({ | HttpUtils.postWithFiles({ | ||||
| url: UrlUtils.POST_PUBLIC_NOTICE_APPLY, | url: UrlUtils.POST_PUBLIC_NOTICE_APPLY, | ||||
| params: { | params: { | ||||
| @@ -89,6 +89,7 @@ const PublicNoticeApplyForm = ({loadedData, selections}) => { | |||||
| files: [attachment], | files: [attachment], | ||||
| onSuccess: function(){ | onSuccess: function(){ | ||||
| navigate("/publicNotice"); | navigate("/publicNotice"); | ||||
| // location.reload(); | |||||
| } | } | ||||
| }); | }); | ||||
| } | } | ||||
| @@ -134,15 +135,17 @@ const PublicNoticeApplyForm = ({loadedData, selections}) => { | |||||
| {FieldUtils.getTextField({ | {FieldUtils.getTextField({ | ||||
| label:"聯絡人:", | label:"聯絡人:", | ||||
| valueName:"contactPerson", | valueName:"contactPerson", | ||||
| form: formik | |||||
| form: formik, | |||||
| disabled:true | |||||
| })} | })} | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} md={12}> | <Grid item xs={12} md={12}> | ||||
| {FieldUtils.getPhoneField({ | {FieldUtils.getPhoneField({ | ||||
| label:"聯繫電話:", | label:"聯繫電話:", | ||||
| disabled:true, | |||||
| valueName:{ | valueName:{ | ||||
| code: "tel_countryCode", | code: "tel_countryCode", | ||||
| num:"phoneNumber" | |||||
| num:"phoneNumber", | |||||
| }, | }, | ||||
| form: formik | form: formik | ||||
| })} | })} | ||||
| @@ -150,9 +153,10 @@ const PublicNoticeApplyForm = ({loadedData, selections}) => { | |||||
| <Grid item xs={12} md={12}> | <Grid item xs={12} md={12}> | ||||
| {FieldUtils.getPhoneField({ | {FieldUtils.getPhoneField({ | ||||
| label:"聯繫傳真:", | label:"聯繫傳真:", | ||||
| disabled:true, | |||||
| valueName:{ | valueName:{ | ||||
| code: "fax_countryCode", | code: "fax_countryCode", | ||||
| num:"faxNumber" | |||||
| num:"faxNumber", | |||||
| }, | }, | ||||
| form: formik | form: formik | ||||
| })} | })} | ||||