|
|
@@ -90,7 +90,7 @@ import { Form, FormInstance, Button, CellGroup, FieldRule, Field, RadioGroup, Ra
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { BuyOrSell } from '@/constants/order'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
-import { useAccountStore, useFuturesStore, usePositionStore } from '@/stores'
|
|
|
+import { useAccountStore, useFuturesStore, usePositionStore, useUserStore } from '@/stores'
|
|
|
import { EPriceMode, EListingSelectType, EDelistingType, EBuildType, EValidType, EOrderOperateType } from '@/constants/client'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
|
@@ -112,6 +112,7 @@ const props = defineProps({
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+const userStore = useUserStore()
|
|
|
const accountStore = useAccountStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
const positionStore = usePositionStore()
|
|
|
@@ -122,8 +123,24 @@ const { formData, formSubmit } = useOrder()
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const showModal = shallowRef(true)
|
|
|
const refresh = shallowRef(true) // 是否刷新父组件数据
|
|
|
-const qtyStepList = [1, 5, 10, 20, 30, 50] // 数量步长列表
|
|
|
-const qtyStep = shallowRef(qtyStepList[0]) // 数量步长
|
|
|
+
|
|
|
+
|
|
|
+// 数量步长列表
|
|
|
+const qtyStepList = computed(() => {
|
|
|
+ // 任务 #6640
|
|
|
+ const param1009 = userStore.getSystemParamValue('1009')
|
|
|
+
|
|
|
+ if (param1009) {
|
|
|
+ const values = param1009.split(',')
|
|
|
+ const { traderules = [], agreeunit = 0 } = quote.value ?? {}
|
|
|
+ const { ParamValue = 1 } = traderules.find((e) => e.RuleID === 103) ?? {}
|
|
|
+ const min = ParamValue * agreeunit // ParamValue 是数量
|
|
|
+
|
|
|
+ return values.map((value) => (+value) * min)
|
|
|
+ }
|
|
|
+ return []
|
|
|
+})
|
|
|
+const qtyStep = shallowRef(qtyStepList.value[0]) // 数量步长
|
|
|
|
|
|
const isTrademode16 = computed(() => quote.value?.trademode === 16)
|
|
|
|