Commit c2c406c5 authored by 邓超's avatar 邓超

fix: 修改台账管理字段保存失败问题

parent 2565e509
Pipeline #40255 passed with stages
in 39 minutes 24 seconds
......@@ -75,10 +75,28 @@ const AddModal = props => {
if (validate) {
setLoading(true);
let obj = form.getFieldsValue();
console.log(obj, 'obj');
console.log(inputValue, 'inputValue');
const {
AddFields,
EditFields,
Fields,
MobileFields,
SearchFields,
WebFields,
} = inputValue;
let fieldsObj = {
AddFields,
EditFields,
Fields,
MobileFields,
SearchFields,
WebFields,
};
let data =
type == 'add'
? { ...obj, ...inputValue, Order: maxLength }
: { ...obj, Order, ID: formObj.ID };
: { ...obj, Order, ...fieldsObj, ID: formObj.ID };
GetCMLedger_OperateLedger(data)
.then(res => {
setLoading(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment