|
|
@@ -162,29 +162,35 @@ const onRadioChange = (value: number) => {
|
|
|
|
|
|
// 提交摘牌
|
|
|
const onSubmit = () => {
|
|
|
- const { goodsid, orderid, orderprice, buyorsell } = props.selectedRow
|
|
|
- const { marketid = 0 } = quote.value ?? {}
|
|
|
-
|
|
|
- /// 获取对应的市场ID
|
|
|
- formData.MarketID = marketid
|
|
|
- formData.PriceMode = EPriceMode.PRICEMODE_LIMIT
|
|
|
- formData.RelatedID = orderid
|
|
|
- formData.OrderPrice = orderprice
|
|
|
- formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
- formData.GoodsID = goodsid
|
|
|
- formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTING
|
|
|
- formData.DelistingType = EDelistingType.DELISTINGTYPE_SELECTED
|
|
|
- formData.BuildType = EBuildType.BUILDTYPE_OPEN
|
|
|
- formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
- formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
- formData.OrderQty = orderQty.value / agreeunit.value // 数量÷合约乘数
|
|
|
-
|
|
|
- fullloading((hideLoading) => {
|
|
|
- formSubmit().then(() => {
|
|
|
- hideLoading()
|
|
|
- dialog('摘牌提交成功。').then(() => closed(true))
|
|
|
- }).catch((err) => {
|
|
|
- hideLoading(err, 'fail')
|
|
|
+ dialog({
|
|
|
+ message: '确认要提交吗?',
|
|
|
+ showCancelButton: true,
|
|
|
+ }).then(() => {
|
|
|
+
|
|
|
+ const { goodsid, orderid, orderprice, buyorsell } = props.selectedRow
|
|
|
+ const { marketid = 0 } = quote.value ?? {}
|
|
|
+
|
|
|
+ /// 获取对应的市场ID
|
|
|
+ formData.MarketID = marketid
|
|
|
+ formData.PriceMode = EPriceMode.PRICEMODE_LIMIT
|
|
|
+ formData.RelatedID = orderid
|
|
|
+ formData.OrderPrice = orderprice
|
|
|
+ formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
+ formData.GoodsID = goodsid
|
|
|
+ formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTING
|
|
|
+ formData.DelistingType = EDelistingType.DELISTINGTYPE_SELECTED
|
|
|
+ formData.BuildType = EBuildType.BUILDTYPE_OPEN
|
|
|
+ formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
+ formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
+ formData.OrderQty = orderQty.value / agreeunit.value // 数量÷合约乘数
|
|
|
+
|
|
|
+ fullloading((hideLoading) => {
|
|
|
+ formSubmit().then(() => {
|
|
|
+ hideLoading()
|
|
|
+ dialog('摘牌提交成功。').then(() => closed(true))
|
|
|
+ }).catch((err) => {
|
|
|
+ hideLoading(err, 'fail')
|
|
|
+ })
|
|
|
})
|
|
|
})
|
|
|
}
|