|
|
@@ -35,7 +35,7 @@
|
|
|
<!-- 下单 -->
|
|
|
<Form ref="formRef" class="g-form__container" @submit="onSubmit">
|
|
|
<CellGroup inset>
|
|
|
- <Field :label="$t('quote.pricing.pricemode')" v-if="quote?.trademode != 53">
|
|
|
+ <!-- <Field :label="$t('quote.pricing.pricemode')" v-if="quote?.trademode != 53">
|
|
|
<template #input>
|
|
|
<RadioGroup v-model="formData.PriceMode" direction="horizontal" @click="onPriceModeChanged">
|
|
|
<Radio v-for="(item, index) in getPricemode2List()" :key="index" :name="item.value">{{
|
|
|
@@ -43,7 +43,7 @@
|
|
|
}}</Radio>
|
|
|
</RadioGroup>
|
|
|
</template>
|
|
|
- </Field>
|
|
|
+ </Field> -->
|
|
|
<Field name="OrderQty" :label="$t('quote.pricing.orderqty')">
|
|
|
<template #input>
|
|
|
<div class="g-qty-group">
|
|
|
@@ -115,7 +115,7 @@ import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { shallowRef, onMounted, computed, defineAsyncComponent } from 'vue'
|
|
|
import { Form, Field, Button, FieldRule, FormInstance, Radio, RadioGroup, CellGroup, Icon, Tab, Tabs } from 'vant'
|
|
|
import { useOrder } from '@/business/trade'
|
|
|
-import { BuyOrSell, BuildType, getPricemode2List, PriceMode } from '@/constants/order'
|
|
|
+import { BuyOrSell, BuildType, PriceMode } from '@/constants/order'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { formatDecimal, handleNumberValue } from '@/filters'
|
|
|
@@ -127,19 +127,21 @@ import AppContact from '@mobile/components/modules/contact/index.vue'
|
|
|
const { getQueryString, getQueryStringToNumber } = useNavigation()
|
|
|
const { global: { t } } = i18n
|
|
|
const futuresStore = useFuturesStore()
|
|
|
-const goodsList = computed(() => {
|
|
|
- return futuresStore.getGoodsListByTradeMode(10)
|
|
|
-})
|
|
|
|
|
|
-// 如果为空默认显示第一个商品
|
|
|
-const goodsCode = shallowRef(getQueryString('goodscode') ?? goodsList.value[0].goodscode)
|
|
|
-const goodsid = shallowRef(getQueryStringToNumber('goodsid') ?? goodsList.value[0].goodsid)
|
|
|
+
|
|
|
const buyOrSell = getQueryStringToNumber('buyOrSell')
|
|
|
const buildType = getQueryStringToNumber('buildType')
|
|
|
const orderQty = getQueryStringToNumber('orderQty')
|
|
|
const quote = shallowRef<Model.GoodsQuote>()
|
|
|
const showContact = shallowRef(false) // 显示联系人选择列表
|
|
|
|
|
|
+const goodsList = computed(() => {
|
|
|
+ return futuresStore.getGoodsListByTradeMode(quote.value?.trademode ?? 10)
|
|
|
+})
|
|
|
+// 如果为空默认显示第一个商品
|
|
|
+const goodsCode = shallowRef(getQueryString('goodscode') ?? goodsList.value[0].goodscode)
|
|
|
+const goodsid = shallowRef(getQueryStringToNumber('goodsid') ?? goodsList.value[0].goodsid)
|
|
|
+
|
|
|
const decimalplace = computed(() => {
|
|
|
const { decimalplace = 0.0 } = futuresStore.getGoodsQuote(goodsCode.value).value ?? {}
|
|
|
return decimalplace
|