|
|
@@ -29,13 +29,21 @@
|
|
|
<span>{{ selectedRow.orderprice }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
+ <Field label="挂牌价格" v-if="selectedRow.pricemode === 3">
|
|
|
+ <template #input>
|
|
|
+ <RadioGroup v-model="priceMode" direction='horizontal'>
|
|
|
+ <Radio :name="1">市价</Radio>
|
|
|
+ <Radio :name="2">限价</Radio>
|
|
|
+ </RadioGroup>
|
|
|
+ </template>
|
|
|
+ </Field>
|
|
|
<Field label="可摘数量">
|
|
|
<template #input>
|
|
|
<span>{{ selectedRow.orderqty }}</span>
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <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>
|
|
|
<Field name="OrderQty" :rules="formRules.OrderQty" label="摘牌数量">
|
|
|
<template #input>
|
|
|
@@ -68,7 +76,7 @@
|
|
|
</Field>
|
|
|
</Form>
|
|
|
<template #footer>
|
|
|
- <Button type="danger" block round @click="formRef?.submit">摘牌</Button>
|
|
|
+ <Button type="danger" block round @click="formRef?.submit">{{ selectedRow.buyorsell === 0 ? '卖出' : '买入' }}</Button>
|
|
|
</template>
|
|
|
</app-popup>
|
|
|
</template>
|
|
|
@@ -115,6 +123,8 @@ const amount = shallowRef(0.0)
|
|
|
const permargin = shallowRef(0.0)
|
|
|
/// 价格类型
|
|
|
const priceMove = shallowRef(props.selectedRow.pricemode)
|
|
|
+/// 价格类型
|
|
|
+const priceMode = shallowRef(EPriceMode.PRICEMODE_MARKET)
|
|
|
/// 保证金配置
|
|
|
const margin = shallowRef<Model.TjmdTodayAccountMarginRsp>()
|
|
|
/// 商品信息
|
|
|
@@ -185,7 +195,7 @@ const onSubmit = () => {
|
|
|
|
|
|
/// 获取对应的市场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
|