|
|
@@ -51,7 +51,7 @@ import { shallowRef, PropType, onMounted, computed } from 'vue'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
import { CellGroup, Cell, Button, FieldRule, Form, Field, Stepper, FormInstance } from 'vant'
|
|
|
import { getBuyOrSellName, BuyOrSell } from '@/constants/order'
|
|
|
-import { formatDecimal, handleNumberValue, handleRequestBigNumber, handlePriceColor } from '@/filters'
|
|
|
+import { formatDecimal, handleNumberValue, handleRequestBigNumber, handlePriceColor, pow } from '@/filters'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
import { dialog, fullloading } from '@/utils/vant'
|
|
|
import { useFuturesStore, usePositionStore } from '@/stores'
|
|
|
@@ -72,7 +72,7 @@ const quote = futuresStore.getGoodsQuote(props.selectedRow.goodscode)
|
|
|
const priceStep = computed(() => {
|
|
|
const { quoteminunit = 0, decimalplace = 0 } = quote.value ?? {}
|
|
|
if (quoteminunit) {
|
|
|
- return quoteminunit * Math.pow(10, decimalplace * -1)
|
|
|
+ return quoteminunit * pow(10, decimalplace * -1)
|
|
|
}
|
|
|
return 1
|
|
|
})
|