|
@@ -224,7 +224,7 @@ export default defineComponent({
|
|
|
function getMaxNum() {
|
|
function getMaxNum() {
|
|
|
const qty = props.selectedRow.orderqty;
|
|
const qty = props.selectedRow.orderqty;
|
|
|
let result = 0;
|
|
let result = 0;
|
|
|
- if (isBuy()) {
|
|
|
|
|
|
|
+ if (!isBuy()) {
|
|
|
// 交易规则
|
|
// 交易规则
|
|
|
const rules = getRules();
|
|
const rules = getRules();
|
|
|
const { buymarginvalue } = rules.length ? rules[0] : { buymarginvalue: 0 };
|
|
const { buymarginvalue } = rules.length ? rules[0] : { buymarginvalue: 0 };
|