|
|
@@ -31,7 +31,7 @@ const userStore = useUserStore()
|
|
|
const onBeforeClose = (action: string) => {
|
|
|
if (action === 'confirm') {
|
|
|
fullloading((hideLoading) => {
|
|
|
- const { marketid, goodsid, holderqty, tradeid, agreeunit, buyorsell } = props.selectedItem ?? {}
|
|
|
+ const { marketid, goodsid, holderqty, freezeqty, tradeid, agreeunit, buyorsell } = props.selectedItem ?? {}
|
|
|
|
|
|
/// 获取对应的市场ID
|
|
|
formData.Header = { GoodsID: goodsid, MarketID: marketid }
|
|
|
@@ -41,7 +41,7 @@ const onBeforeClose = (action: string) => {
|
|
|
formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_HOLDER_CLOSE
|
|
|
formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
- formData.OrderQty = holderqty / agreeunit // 数量÷合约乘数
|
|
|
+ formData.OrderQty = holderqty-freezeqty // 数量÷合约乘数
|
|
|
formData.RelatedID = handleRequestBigNumber(tradeid) // 关联单号
|
|
|
formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy // 持仓反方向
|
|
|
const param112 = userStore.getSystemParamValue('112')
|