diff --git a/src/components/popup/SurveySaleSubmitPopup.tsx b/src/components/popup/SurveySaleSubmitPopup.tsx index 17cd5e0..e0bbd39 100644 --- a/src/components/popup/SurveySaleSubmitPopup.tsx +++ b/src/components/popup/SurveySaleSubmitPopup.tsx @@ -139,7 +139,7 @@ export default function SurveySaleSubmitPopup() { to: submitData.receiver, cc: submitData.reference ?? '', subject: submitData.title, - content: contentsRef.current?.innerHTML ?? '', + content: generateEmailContent(), }) .then(() => { if (!isSubmittingSurvey) { @@ -160,7 +160,38 @@ export default function SurveySaleSubmitPopup() { } } - const contentsRef = useRef(null) + const generateEmailContent = () => ` +
+

+ HANASYS現地調査アプリを使用した現地調査結果が送信されました。 +

+

+ -担当者名: ${surveyDetail?.representative} +

+

+ -販売店名: + + ${surveyDetail?.store} (${surveyDetail?.storeId}) + +

+

+ -施工店名: + ${surveyDetail?.constructionPoint} +

+

+ + 現地調査結果PDFダウンロード + +

+

+ ※リンクをクリックしてローカル調査結果PDFをダウンロードできます。 +

+
+ ` const handleClose = () => { popupController.setSurveySaleSubmitPopup(false) @@ -185,36 +216,7 @@ export default function SurveySaleSubmitPopup() {
{field.id === 'contents' ? (
-
-

- HANASYS現地調査アプリを使用した現地調査結果が送信されました。 -

-

- -担当者名: {surveyDetail?.representative} -

-

- -販売店名: - - {surveyDetail?.store} ({surveyDetail?.storeId}) - -

-

- -施工店名: - {surveyDetail?.constructionPoint} -

-

- - 現地調査結果PDFダウンロード - -

-

- ※リンクをクリックしてローカル調査結果PDFをダウンロードできます。 -

-
+
) : ( <> diff --git a/src/components/survey-sale/detail/RoofForm.tsx b/src/components/survey-sale/detail/RoofForm.tsx index ecffd61..693a22f 100644 --- a/src/components/survey-sale/detail/RoofForm.tsx +++ b/src/components/survey-sale/detail/RoofForm.tsx @@ -492,7 +492,6 @@ export default function RoofForm(props: { className="textarea-form" name="memo" id="memo" - placeholder="TextArea Filed" value={roofInfo?.memo ?? ''} disabled={mode === 'READ'} onChange={(e) => setRoofInfo({ ...roofInfo, memo: e.target.value })}