|
@@ -17,6 +17,16 @@
|
|
|
<span>{{ enableqty }}</span>
|
|
<span>{{ enableqty }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
|
|
+ <Field label="涨停">
|
|
|
|
|
+ <template #input>
|
|
|
|
|
+ <span>{{ quote?.limitup }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Field>
|
|
|
|
|
+ <Field label="跌停">
|
|
|
|
|
+ <template #input>
|
|
|
|
|
+ <span>{{ quote?.limitdown }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Field>
|
|
|
<Field name="OrderPrice" :rules="formRules.OrderPrice" label="转让价">
|
|
<Field name="OrderPrice" :rules="formRules.OrderPrice" label="转让价">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Stepper v-model="formData.OrderPrice" theme="round" :decimal-length="2" :auto-fixed="false"
|
|
<Stepper v-model="formData.OrderPrice" theme="round" :decimal-length="2" :auto-fixed="false"
|
|
@@ -45,6 +55,7 @@ import { shallowRef, PropType, computed, onMounted } from 'vue'
|
|
|
import { CellGroup, Form, Field, Stepper, Button, FieldRule, FormInstance } from 'vant'
|
|
import { CellGroup, Form, Field, Stepper, Button, FieldRule, FormInstance } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { useOrder } from '@/business/trade'
|
|
import { useOrder } from '@/business/trade'
|
|
|
|
|
+import { useFuturesStore } from '@/stores'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
import { BuyOrSell } from '@/constants/order'
|
|
import { BuyOrSell } from '@/constants/order'
|
|
|
import { EPriceMode, EValidType, EListingSelectType, EBuildType } from '@/constants/client'
|
|
import { EPriceMode, EValidType, EListingSelectType, EBuildType } from '@/constants/client'
|
|
@@ -57,9 +68,11 @@ const props = defineProps({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const { formData, formSubmit } = useOrder()
|
|
const { formData, formSubmit } = useOrder()
|
|
|
|
|
+const { getQuoteInfo } = useFuturesStore()
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
const refresh = shallowRef(false) // 是否刷新父组件数据
|
|
|
const showModal = shallowRef(true)
|
|
const showModal = shallowRef(true)
|
|
|
|
|
+const quote = getQuoteInfo(props.selectedRow.goodscode)
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
|
|
const formRules: { [key in keyof Proto.OrderReq]?: FieldRule[] } = {
|