@@ -110,7 +110,7 @@ const formRules: { [key in keyof Proto.HdWRDealOrderReq]?: FieldRule[] } = {
if (val > props.quoteDetail.orderqty) {
return '剩余数量不足'
}
- if (val > enableqty) {
+ if (props.buyorsell === BuyOrSell.Sell && val > enableqty) {
return '可用数量不足'
return true