|
@@ -105,25 +105,29 @@ const onCancel = (isRefresh = false) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onCloseSumit = () => {
|
|
const onCloseSumit = () => {
|
|
|
- const { marketid, goodsid, buyorsell } = props.selectedRow
|
|
|
|
|
- /// 市场ID
|
|
|
|
|
- formData.Header = { GoodsID: goodsid }
|
|
|
|
|
- formData.MarketID = marketid
|
|
|
|
|
- formData.PriceMode = EPriceMode.PRICEMODE_LIMIT
|
|
|
|
|
- formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
|
|
- formData.GoodsID = goodsid
|
|
|
|
|
- formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTINGTHENLISTING
|
|
|
|
|
- formData.DelistingType = EDelistingType.DELISTINGTYPE_PRICE
|
|
|
|
|
- formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
|
|
- formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
|
|
- formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
|
|
|
|
+ formRef.value?.validate((valid) => {
|
|
|
|
|
+ if (valid) {
|
|
|
|
|
+ const { marketid, goodsid, buyorsell } = props.selectedRow
|
|
|
|
|
+ /// 市场ID
|
|
|
|
|
+ formData.Header = { GoodsID: goodsid }
|
|
|
|
|
+ formData.MarketID = marketid
|
|
|
|
|
+ formData.PriceMode = EPriceMode.PRICEMODE_LIMIT
|
|
|
|
|
+ formData.BuyOrSell = buyorsell === BuyOrSell.Buy ? BuyOrSell.Sell : BuyOrSell.Buy
|
|
|
|
|
+ formData.GoodsID = goodsid
|
|
|
|
|
+ formData.ListingSelectType = EListingSelectType.LISTINGSELECTTYPE_DELISTINGTHENLISTING
|
|
|
|
|
+ formData.DelistingType = EDelistingType.DELISTINGTYPE_PRICE
|
|
|
|
|
+ formData.BuildType = EBuildType.BUILDTYPE_CLOSE
|
|
|
|
|
+ formData.TimevalidType = EValidType.VALIDTYPE_DR
|
|
|
|
|
+ formData.OperateType = EOrderOperateType.ORDEROPERATETYPE_NORMAL
|
|
|
|
|
|
|
|
- formSubmit().then(() => {
|
|
|
|
|
- ElMessage.success('挂牌成功')
|
|
|
|
|
- onCancel(true)
|
|
|
|
|
- }).catch((err) => {
|
|
|
|
|
- ElMessage.error('挂牌失败:' + err)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ formSubmit().then(() => {
|
|
|
|
|
+ ElMessage.success('挂牌成功')
|
|
|
|
|
+ onCancel(true)
|
|
|
|
|
+ }).catch((err) => {
|
|
|
|
|
+ ElMessage.error('挂牌失败:' + err)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onRadioChange = (value: number) => {
|
|
const onRadioChange = (value: number) => {
|