|
|
@@ -92,7 +92,7 @@ const refresh = shallowRef(false)
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const qtyStepList = [1, 5, 10, 20, 30, 50] // 数量步长列表
|
|
|
const qtyStep = shallowRef(qtyStepList[0]) // 数量步长
|
|
|
-const { maxspread = 1000, minspread = -1000 } = futuresStore.getGoods(props.quoteGoods.goodsid) ?? {}
|
|
|
+const { maxspread = 1000, minspread = -1000, marketid, goodsid } = futuresStore.getGoods(props.quoteGoods.goodsid) ?? {}
|
|
|
|
|
|
// 商品盘面
|
|
|
const quote = futuresStore.getGoodsQuote(props.quoteGoods.refgoodsid) ?? {}
|
|
|
@@ -197,10 +197,8 @@ const onSubmit = () => {
|
|
|
formRef.value?.validate((valid) => {
|
|
|
if (valid) {
|
|
|
ElMessageBox.confirm('是否立即挂牌?').then(() => {
|
|
|
- /// 买卖方向
|
|
|
- const { goodsid } = props.quoteGoods ?? {}
|
|
|
/// 获取对应的市场ID
|
|
|
- formData.MarketID = futuresStore.getGoodsMarket(goodsid)
|
|
|
+ formData.MarketID = marketid
|
|
|
formData.OrderPrice = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? formData.OrderPrice : 0.0
|
|
|
formData.PriceMode = priceMove.value
|
|
|
formData.MarketMaxSub = priceMove.value === EPriceMode.PRICEMODE_LIMIT ? 0.0 : formData.MarketMaxSub
|