li.shaoyi 2 年之前
父节点
当前提交
bd2cab73ee
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/mobile/views/supply-demand/detail/components/delisting/index.vue

+ 1 - 1
src/packages/mobile/views/supply-demand/detail/components/delisting/index.vue

@@ -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