|
@@ -117,10 +117,16 @@ const buyOrSell = getQueryStringToNumber('buyOrSell')
|
|
|
const buildType = getQueryStringToNumber('buildType')
|
|
const buildType = getQueryStringToNumber('buildType')
|
|
|
const orderQty = getQueryStringToNumber('orderQty')
|
|
const orderQty = getQueryStringToNumber('orderQty')
|
|
|
const quote = shallowRef<Model.GoodsQuote>()
|
|
const quote = shallowRef<Model.GoodsQuote>()
|
|
|
|
|
+
|
|
|
|
|
+const decimalplace = computed(() => {
|
|
|
|
|
+ const { decimalplace = 0.0 } = futuresStore.getGoodsQuote(goodsCode.value).value ?? {}
|
|
|
|
|
+ return decimalplace
|
|
|
|
|
+})
|
|
|
// 小数位以及步进值
|
|
// 小数位以及步进值
|
|
|
-const { decimalplace = 0.0 } = quote.value ?? {}
|
|
|
|
|
-const quoteminunit = quote.value?.quoteminunit ?? 1.0
|
|
|
|
|
-const decimalvalue = Math.pow(10.0, -decimalplace)*(quoteminunit == 0 ? 1 : quoteminunit)
|
|
|
|
|
|
|
+const decimalvalue = computed(() => {
|
|
|
|
|
+ const { quoteminunit = 1.0, decimalplace = 0.0 } = futuresStore.getGoodsQuote(goodsCode.value).value ?? {}
|
|
|
|
|
+ return Math.pow(10.0, -decimalplace)*(quoteminunit == 0 ? 1 : quoteminunit)
|
|
|
|
|
+})
|
|
|
const isTrademode16 = computed(() => quote.value?.trademode === 16)
|
|
const isTrademode16 = computed(() => quote.value?.trademode === 16)
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const system_1012 = getSystemParamValue('1012') ?? '1'
|
|
const system_1012 = getSystemParamValue('1012') ?? '1'
|