|
|
@ -37,7 +37,7 @@ const InfoForm = ({ onSubmit, onReset, onValuesChange, editablePerm, infoEditabl
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
form.resetFields();
|
|
|
|
form.resetFields();
|
|
|
|
const _formValue = serverData2Form(editingProduct);
|
|
|
|
const _formValue = serverData2Form(editingProduct);
|
|
|
|
const readyFormVal = pick(_formValue, ['quotation', 'lgc_details_mapped','city', 'dept', 'display_to_c'])
|
|
|
|
const readyFormVal = pick(_formValue, ['quotation', 'lgc_details_mapped','city', 'city_list', 'dept', 'display_to_c', 'sub_type_D'])
|
|
|
|
// form.setFieldsValue(serverData2Form(editingProduct));
|
|
|
|
// form.setFieldsValue(serverData2Form(editingProduct));
|
|
|
|
// ! setFieldsValue 导致赋值错误
|
|
|
|
// ! setFieldsValue 导致赋值错误
|
|
|
|
for (const _key in readyFormVal) {
|
|
|
|
for (const _key in readyFormVal) {
|
|
|
|