diff --git a/src/components/knockGold/Dialog.jsx b/src/components/knockGold/Dialog.jsx index 99c6e970..9484cc05 100644 --- a/src/components/knockGold/Dialog.jsx +++ b/src/components/knockGold/Dialog.jsx @@ -16,7 +16,7 @@ export default ({ data, onChangeMoney }) => { function submit() { if (ref.current.validator()) { if ( - Number(stateData?.recharge_amount) + Number(stateData.addNew) < + Number(stateData?.recharge_amount) + Number(stateData.addNew) <= Number(stateData?.all_budget) ) { addFund({ recharge_amount: stateData.addNew }, data.goods_id).then( diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index ff68d44c..1d98a0dc 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -419,6 +419,7 @@ export default class exchangedit extends React.Component { _object.show_url = o.show_url _object.detail_url = o.detail_url _object.map_product_name = o.map_product_name + _object.goods_id = o.goods_id _object.type = o.type } else { _object = { ...o.origin, type: o.type }