修正【兑换码管理】编辑立减金,加款对话框中,加款点击提交按钮,前端提示“加款失败”
This commit is contained in:
parent
ef6c841d9b
commit
7dd7311a2f
|
@ -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(
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
Loading…
Reference in New Issue