huangbin 4 năm trước cách đây
mục cha
commit
634f035f38

+ 10 - 0
src/views/order/funding_information/components/funding_information_funding_summary/components/funding_information_funding_summary_withdraw/index.vue

@@ -114,6 +114,16 @@ export default defineComponent({
                 message.error('请先签约银行!');
                 return;
             }
+            const max = props.selectedRow.currentbalance;
+            if (max) {
+                if (formState.price > max) {
+                    message.error(`提现金额不能超过${max}`);
+                    return;
+                }
+            } else {
+                message.error('没有余额可提现');
+                return;
+            }
             validateAction<FormState>(formRef, formState).then((res) => {
                 const signBank = getSignBank()!;
                 const param: buildOutMoneyReqParam = {