Selaa lähdekoodia

fixed: 贸易圈摘牌最大可以摘数量

huangbin 4 vuotta sitten
vanhempi
commit
abcb270479

+ 1 - 1
src/views/market/spot_trade/warehouse_pre_sale/warehouse_pre_sale_blocs/components/delisting/index.vue

@@ -224,7 +224,7 @@ export default defineComponent({
         function getMaxNum() {
             const qty = props.selectedRow.orderqty;
             let result = 0;
-            if (isBuy()) {
+            if (!isBuy()) {
                 // 交易规则
                 const rules = getRules();
                 const { buymarginvalue } = rules.length ? rules[0] : { buymarginvalue: 0 };

+ 1 - 1
src/views/market/spot_trade/warehouse_receipt_trade/warehouse_receipt_trade_blocs/components/delisting/index.vue

@@ -224,7 +224,7 @@ export default defineComponent({
         function getMaxNum() {
             const qty = props.selectedRow.orderqty;
             let result = 0;
-            if (isBuy()) {
+            if (!isBuy()) {
                 // 交易规则
                 const rules = getRules();
                 const { buymarginvalue } = rules.length ? rules[0] : { buymarginvalue: 0 };