huangbin hace 4 años
padre
commit
d829e983e7

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

@@ -236,7 +236,7 @@ export default defineComponent({
             if (price && num && marginvalue) {
                 result = price * num * marginvalue;
             }
-            return result ? result.toFixed(2) : '--';
+            return result ? Math.floor(2) : '--';
         }
         function getMaxNum() {
             const qty = props.selectedRow.orderqty;

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

@@ -236,7 +236,7 @@ export default defineComponent({
             if (price && num && marginvalue) {
                 result = price * num * marginvalue;
             }
-            return result ? result.toFixed(2) : '--';
+            return result ? Math.floor(2) : '--';
         }
         function getMaxNum() {
             const qty = props.selectedRow.orderqty;