|
@@ -38,15 +38,15 @@
|
|
|
</RadioGroup>
|
|
</RadioGroup>
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
- <Field name="MarketMaxSub" :rules="formRules.MarketMaxSub" :label="$t('quote.pricing.marketmaxsub1')" v-if="formData.PriceMode === PriceMode.Market">
|
|
|
|
|
|
|
+ <!-- <Field name="MarketMaxSub" :rules="formRules.MarketMaxSub" :label="$t('quote.pricing.marketmaxsub1')" v-if="formData.PriceMode === PriceMode.Market">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Stepper v-model="formData.MarketMaxSub" theme="round" button-size="22" :min="0" :max="999" :auto-fixed="false" />
|
|
<Stepper v-model="formData.MarketMaxSub" theme="round" button-size="22" :min="0" :max="999" :auto-fixed="false" />
|
|
|
</template>
|
|
</template>
|
|
|
- </Field>
|
|
|
|
|
|
|
+ </Field> -->
|
|
|
<Field name="OrderPrice" :rules="formRules.OrderPrice" :label="$t('position.goods.transferprice')" v-if="formData.PriceMode === PriceMode.Limit">
|
|
<Field name="OrderPrice" :rules="formRules.OrderPrice" :label="$t('position.goods.transferprice')" v-if="formData.PriceMode === PriceMode.Limit">
|
|
|
<template #input>
|
|
<template #input>
|
|
|
<Stepper v-model="formData.OrderPrice" theme="round" button-size="22" :min="0"
|
|
<Stepper v-model="formData.OrderPrice" theme="round" button-size="22" :min="0"
|
|
|
- :decimal-length="quote?.decimalplace" :step="quote?.decimalvalue" :auto-fixed="false" />
|
|
|
|
|
|
|
+ :decimal-length="decimalplace" :step="decimalplace" :auto-fixed="false" />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
<Field name="OrderQty" :rules="formRules.OrderQty" :label="$t('position.goods.orderqty')">
|
|
<Field name="OrderQty" :rules="formRules.OrderQty" :label="$t('position.goods.orderqty')">
|
|
@@ -87,6 +87,8 @@ const positionStore = usePositionStore()
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
|
const accountStore = useAccountStore()
|
|
const accountStore = useAccountStore()
|
|
|
const quote = futuresStore.getGoodsQuote(props.selectedRow.goodsCode)
|
|
const quote = futuresStore.getGoodsQuote(props.selectedRow.goodsCode)
|
|
|
|
|
+// 小数位以及步进值
|
|
|
|
|
+const { decimalplace = 0.0 } = quote.value ?? {}
|
|
|
const { global: { t } } = i18n
|
|
const { global: { t } } = i18n
|
|
|
|
|
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
@@ -133,12 +135,12 @@ const onPriceModeChanged = () => {
|
|
|
|
|
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
const formRules: { [key: string]: FieldRule[] } = {
|
|
const formRules: { [key: string]: FieldRule[] } = {
|
|
|
- MarketMaxSub: [{
|
|
|
|
|
- message: t('position.pricing.tips3'),
|
|
|
|
|
- validator: () => {
|
|
|
|
|
- return !!formData.MarketMaxSub
|
|
|
|
|
- }
|
|
|
|
|
- }],
|
|
|
|
|
|
|
+ // MarketMaxSub: [{
|
|
|
|
|
+ // message: t('position.pricing.tips3'),
|
|
|
|
|
+ // validator: () => {
|
|
|
|
|
+ // return !!formData.MarketMaxSub
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }],
|
|
|
OrderPrice: [{
|
|
OrderPrice: [{
|
|
|
message: t('position.transfer.tips3'),
|
|
message: t('position.transfer.tips3'),
|
|
|
validator: () => {
|
|
validator: () => {
|