|
|
@@ -6,7 +6,7 @@
|
|
|
<el-scrollbar class="pricing-listing__form" always>
|
|
|
<h4 class="header-title" v-if="selectedGoods?.trademode === 10">{{ t('quote.pricing.title1') }}</h4>
|
|
|
<h4 class="header-title" v-else-if="selectedGoods?.trademode === 54">积分购买</h4>
|
|
|
- <h4 class="header-title" v-else>{{ t('quote.pricing.title2') }}</h4>
|
|
|
+ <h4 class="header-title" v-else>{{ t('quote.pricing.title2') }}</h4>
|
|
|
<el-form ref="formRef" class="el-form--vertical" label-width="60px" :show-message="false" :model="formData"
|
|
|
:rules="formRules">
|
|
|
<el-form-item prop="GoodsID" :label="t('quote.pricing.goods')">
|
|
|
@@ -15,13 +15,15 @@
|
|
|
v-for="(item, index) in marketGoodsList" :key="index" />
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="selectedGoods?.trademode === 10" prop="BuyOrSell" :label="t('quote.pricing.buyorsell')">
|
|
|
+ <el-form-item v-if="selectedGoods?.trademode === 10" prop="BuyOrSell"
|
|
|
+ :label="t('quote.pricing.buyorsell')">
|
|
|
<el-radio-group v-model="formData.BuyOrSell">
|
|
|
<el-radio v-for="(item, index) in getBuyOrSellList()" :key="index" :label="item.label"
|
|
|
:value="item.value" />
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="selectedGoods?.trademode === 10" prop="PriceMode" :label="t('quote.pricing.pricemode')">
|
|
|
+ <el-form-item v-if="selectedGoods?.trademode === 10" prop="PriceMode"
|
|
|
+ :label="t('quote.pricing.pricemode')">
|
|
|
<el-radio-group v-model="formData.PriceMode">
|
|
|
<el-radio v-for="(item, index) in getPricemode2List()" :key="index" :label="item.label"
|
|
|
:value="item.value" />
|
|
|
@@ -29,11 +31,11 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="OrderQty" :label="t('quote.pricing.orderqty')">
|
|
|
<div class="g-qty-group">
|
|
|
- <el-input-number ref="qtyRef" :placeholder="t('common.pleaseenter')" :min="0" :max="9999999999"
|
|
|
- :precision="0" :step="qtyStep || 1" v-model="formData.OrderQty"
|
|
|
- @keyup.enter="submitFocus" />
|
|
|
+ <el-input-number ref="qtyRef" :placeholder="t('common.pleaseenter')" :min="0" :precision="0"
|
|
|
+ :step="qtyStep || 1" v-model="formData.OrderQty" @keyup.enter="submitFocus" />
|
|
|
<el-radio-group size="small" v-model="qtyStep" :validate-event="false" @change="onRadioChange">
|
|
|
- <el-radio v-for="(value, index) in qtyStepList" :key="index" :label="value" :value="value" border />
|
|
|
+ <el-radio v-for="(value, index) in qtyStepList" :key="index" :label="value" :value="value"
|
|
|
+ border />
|
|
|
</el-radio-group>
|
|
|
<template
|
|
|
v-if="(formData.BuyOrSell === BuyOrSell.Buy || selectedGoods?.tradeproperty !== 2) && settingStore.getSettingValue('showOrderEnableQty')">
|
|
|
@@ -47,10 +49,12 @@
|
|
|
</template>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="selectedGoods?.trademode === 53 || selectedGoods?.trademode === 54" class="el-form-item--row" prop="AddrInfo" :label="t('quote.pricing.address')">
|
|
|
+ <el-form-item v-if="selectedGoods?.trademode === 53 || selectedGoods?.trademode === 54"
|
|
|
+ class="el-form-item--row" prop="AddrInfo" :label="t('quote.pricing.address')">
|
|
|
<div class="el-form-item--col">
|
|
|
- <el-input type="textarea" :placeholder="t('performance.pleaseentertheaddress')" :rows="3" v-model="formData.AddrInfo" />
|
|
|
- <el-icon :size="20" style="cursor: pointer;" @click="showAddress = true" >
|
|
|
+ <el-input type="textarea" :placeholder="t('performance.pleaseentertheaddress')" :rows="3"
|
|
|
+ v-model="formData.AddrInfo" />
|
|
|
+ <el-icon :size="20" style="cursor: pointer;" @click="showAddress = true">
|
|
|
<CirclePlusFilled />
|
|
|
</el-icon>
|
|
|
</div>
|
|
|
@@ -61,15 +65,16 @@
|
|
|
</el-form-item> -->
|
|
|
<el-form-item prop="OrderPrice" :label="t('quote.pricing.price')"
|
|
|
v-if="formData.PriceMode === PriceMode.Limit">
|
|
|
- <el-input-number ref="priceRef" :placeholder="t('common.pleaseenter')" :max="9999999999" :min="0"
|
|
|
+ <el-input-number ref="priceRef" :placeholder="t('common.pleaseenter')" :min="0"
|
|
|
v-model="formData.OrderPrice" :auto-fixed="false" :decimal-length="decimalplace"
|
|
|
:step="decimalvalue" @keyup.enter="submitFocus" />
|
|
|
</el-form-item>
|
|
|
<el-form-item class="footer-btnbar">
|
|
|
<template v-if="formData.BuyOrSell === BuyOrSell.Buy">
|
|
|
<el-button ref="submitRef" type="danger" :disabled="!selectedGoodsId || !formData.OrderQty"
|
|
|
- @click="onBeforeSubmit(BuildType.Open)" v-if="!selectedGoods?.iscannotbuy">{{ ![53, 54].includes(selectedGoods?.trademode) ?
|
|
|
- t('operation.order') : t('operation.buynow') }}</el-button>
|
|
|
+ @click="onBeforeSubmit(BuildType.Open)" v-if="!selectedGoods?.iscannotbuy">{{ ![53,
|
|
|
+ 54].includes(selectedGoods?.trademode) ?
|
|
|
+ t('operation.order') : t('operation.buynow') }}</el-button>
|
|
|
<!-- <el-button type="primary"
|
|
|
:disabled="!formData.OrderQty || !sellQty || (formData.OrderQty > sellQty)"
|
|
|
@click="onBeforeSubmit(BuildType.Close)" v-if="!isTrademode16 && riskcontrolmode != 1">
|