perf:编辑附加信息初始值

main
LiaoYijun 6 days ago
parent cd5dbb3be5
commit 5b5ebe896c

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

Loading…
Cancel
Save