perf:编辑附加信息初始值

main
LiaoYijun 6 days ago
parent cd5dbb3be5
commit 5b5ebe896c

@ -238,6 +238,7 @@ const OrderProfile = ({ coliSN, ...props }) => {
<EditOutlined <EditOutlined
className='pl-1' className='pl-1'
onClick={() => { onClick={() => {
formExtra.setFieldsValue({ extra: orderDetail.COLI_Introduction })
setOpenExtra(true) setOpenExtra(true)
}} }}
/> />
@ -319,10 +320,8 @@ const OrderProfile = ({ coliSN, ...props }) => {
<Form <Form
layout={'vertical'} layout={'vertical'}
form={formExtra} form={formExtra}
initialValues={{ text: '' }}
scrollToFirstError scrollToFirstError
onFinish={(values) => { onFinish={(values) => {
console.log('Received values of form: ', values)
updateExtraInfo(orderId, values.extra) updateExtraInfo(orderId, values.extra)
.then(() => { .then(() => {
notification.success({ notification.success({

Loading…
Cancel
Save