|
|
@@ -20,6 +20,12 @@
|
|
|
<el-form-item label="挂牌价格">
|
|
|
<span>{{ selectedRow.orderprice }}</span>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="卖出价格" v-if="selectedRow.pricemode === 3" prop="PriceMode">
|
|
|
+ <el-radio-group v-model="priceMode">
|
|
|
+ <el-radio :label="1">市价</el-radio>
|
|
|
+ <el-radio :label="2">限价</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="可摘数量">
|
|
|
<span>{{ selectedRow.orderqty }}</span>
|
|
|
</el-form-item>
|
|
|
@@ -35,8 +41,8 @@
|
|
|
<el-form-item label="可用资金">
|
|
|
<span>{{ accountStore.currentAccount.avaiableMoney?.toFixed(2) }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="priceMove === 3" prop="OrderPrice" label="摘牌价格">
|
|
|
- <el-input-number placeholder="请输入" :min="0" :step="Math.pow(10, -1*(goods?.decimalplace ?? 0))" :precision="(goods?.decimalplace ?? 2)" v-model="formData.OrderPrice" @change="calculateDelistingAmount"/>
|
|
|
+ <el-form-item v-if="priceMove === 3" prop="OrderPrice" :label="selectedRow.buyorsell === 0 ? '卖出价格' : '买入价格'">
|
|
|
+ <el-input-number placeholder="请输入" :min="0.0" :step="Math.pow(10, -1*(goods?.decimalplace ?? 0))" :precision="(goods?.decimalplace ?? 2)" v-model="formData.OrderPrice" @change="calculateDelistingAmount"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item prop="OrderQty" label="摘牌数量">
|
|
|
<div class="g-qty-group">
|
|
|
@@ -84,6 +90,8 @@ const userStore = useUserStore()
|
|
|
|
|
|
/// 价格类型
|
|
|
const priceMove = shallowRef(props.selectedRow.pricemode)
|
|
|
+/// 价格类型
|
|
|
+const priceMode = shallowRef(EPriceMode.PRICEMODE_MARKET)
|
|
|
/// 挂牌金额
|
|
|
const amount = shallowRef(0.0)
|
|
|
/// 履约保证金
|
|
|
@@ -187,7 +195,7 @@ const onSubmit = (buildType: number) => {
|
|
|
|
|
|
/// 获取对应的市场ID
|
|
|
formData.MarketID = marketid
|
|
|
- formData.PriceMode = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? EPriceMode.PRICEMODE_LIMIT : EPriceMode.PRICEMODE_MARKET
|
|
|
+ formData.PriceMode = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? EPriceMode.PRICEMODE_LIMIT : priceMode.value
|
|
|
formData.RelatedID = handleRequestBigNumber(orderid)
|
|
|
formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
formData.GoodsID = goodsid
|
|
|
@@ -196,7 +204,6 @@ const onSubmit = (buildType: number) => {
|
|
|
formData.BuildType = buildType
|
|
|
formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
- formData.MarketMaxSub = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? 0.0 : formData.MarketMaxSub
|
|
|
|
|
|
formSubmit().then(() => {
|
|
|
ElMessage.success('提交成功')
|