修正【兑换码管理】编辑立减金,加款对话框中,加款点击提交按钮,前端提示“加款失败”

This commit is contained in:
wangsongsole 2022-06-14 18:27:58 +08:00
parent ef6c841d9b
commit 7dd7311a2f
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default ({ data, onChangeMoney }) => {
function submit() { function submit() {
if (ref.current.validator()) { if (ref.current.validator()) {
if ( if (
Number(stateData?.recharge_amount) + Number(stateData.addNew) < Number(stateData?.recharge_amount) + Number(stateData.addNew) <=
Number(stateData?.all_budget) Number(stateData?.all_budget)
) { ) {
addFund({ recharge_amount: stateData.addNew }, data.goods_id).then( addFund({ recharge_amount: stateData.addNew }, data.goods_id).then(

View File

@ -419,6 +419,7 @@ export default class exchangedit extends React.Component {
_object.show_url = o.show_url _object.show_url = o.show_url
_object.detail_url = o.detail_url _object.detail_url = o.detail_url
_object.map_product_name = o.map_product_name _object.map_product_name = o.map_product_name
_object.goods_id = o.goods_id
_object.type = o.type _object.type = o.type
} else { } else {
_object = { ...o.origin, type: o.type } _object = { ...o.origin, type: o.type }