|
|
|
@ -72,8 +72,9 @@ const generateMailContent = (mailData) => `
|
|
|
|
|
* @property {string} toEmail - 收件人邮箱
|
|
|
|
|
* @property {string} conversationid - 会话ID
|
|
|
|
|
* @property {string} quoteid - 引用邮件ID
|
|
|
|
|
* @property {object} quickData - 纯文本输入的草稿. 仅在从快速窗口打开时传递
|
|
|
|
|
*/
|
|
|
|
|
const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, toEmail, conversationid, quoteid, initial = {}, mailData: _mailData, action = 'reply', ...props }) => {
|
|
|
|
|
const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, toEmail, conversationid, quoteid, initial = {}, mailData: _mailData, action = 'reply', quickData = {}, ...props }) => {
|
|
|
|
|
const { notification, message } = App.useApp();
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
|
|
|
|
@ -225,9 +226,10 @@ const EmailEditorPopup = ({ open, setOpen, fromEmail, fromUser, fromOrder, toEma
|
|
|
|
|
|
|
|
|
|
setInitialContent(thisBody)
|
|
|
|
|
} else if (action === 'new') {
|
|
|
|
|
const newEmail = { to: newToEmail, }
|
|
|
|
|
const newEmail = { to: newToEmail, subject: quickData?.subject || '' }
|
|
|
|
|
form.setFieldsValue(newEmail);
|
|
|
|
|
setInitialForm(newEmail);
|
|
|
|
|
setInitialContent(quickData?.content || '');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return () => {};
|
|
|
|
|