perf: 从订单详情创建WhatsApp会话, 填充订单号; 没有WhatsApp允许添加

dev/voice
Lei OT 7 months ago
parent 1692f70428
commit 1187f6fdc0

@ -67,7 +67,7 @@ export const ConversationItemForm = ({ initialValues, onFormInstanceReady }) =>
rules={[{ type: 'email', message: '请输入正确的邮箱地址' }]}>
<Input disabled={!initialValues.is_new && isNotEmpty(initialValues.email)} />
</Form.Item>
{initialValues.is_current_order && (
{/* {initialValues.is_current_order && (
<>
<Form.Item name={'coli_id'} label={'关联当前订单'} rules={[{ required: true, message: '关联的订单' }]} validateStatus='warning' help='请务必确认关联的订单是否正确'>
<Input placeholder='请先关联订单' disabled={initialValues.is_current_order} />
@ -76,7 +76,7 @@ export const ConversationItemForm = ({ initialValues, onFormInstanceReady }) =>
<Input placeholder='订单SN' />
</Form.Item>
</>
)}
)} */}
{/* <div className=' text-neutral-500 italic'>如果会话已存在, 将直接切换</div> */}
</Form>
)

@ -260,7 +260,7 @@ const CustomerProfile = () => {
size={"small"}
onClick={() => {
setNewChatModalVisible(true);
setNewChatFormValues((prev) => ({ ...prev, phone_number: customerDetail.whatsapp_phone_number, name: customerDetail.name, email: customerDetail.email, is_current_order: true }))
setNewChatFormValues((prev) => ({ ...prev, phone_number: customerDetail.whatsapp_phone_number, name: customerDetail.name, email: customerDetail.email, is_current_order: true, coli_id: orderDetail.order_no }))
}}>
{customerDetail.whatsapp_phone_number}
</Button>

Loading…
Cancel
Save