|
|
@@ -44,7 +44,7 @@
|
|
|
<Field name="TPPrice" :rules="formRules.TPPrice">
|
|
|
<template #input>
|
|
|
<app-stepper v-model="formData.TPPrice"
|
|
|
- :min="selectedRow.buyorsell === BuyOrSell.Sell && quote?.decimalvalue"
|
|
|
+ :min="selectedRow.buyorsell === BuyOrSell.Sell ? quote?.decimalvalue : 0"
|
|
|
:decimal-length="quote?.decimalplace" :step="quote?.decimalvalue"
|
|
|
:disabled="!formData.TPFlag" />
|
|
|
</template>
|
|
|
@@ -60,7 +60,7 @@
|
|
|
<Field name="SLPrice" :rules="formRules.SLPrice">
|
|
|
<template #input>
|
|
|
<app-stepper v-model="formData.SLPrice"
|
|
|
- :min="selectedRow.buyorsell === BuyOrSell.Buy && quote?.decimalvalue"
|
|
|
+ :min="selectedRow.buyorsell === BuyOrSell.Buy ? quote?.decimalvalue : 0"
|
|
|
:decimal-length="quote?.decimalplace" :step="quote?.decimalvalue"
|
|
|
:disabled="!formData.SLFlag" />
|
|
|
</template>
|
|
|
@@ -145,7 +145,7 @@ const pricePoints = computed(() => {
|
|
|
}
|
|
|
if (sellslpoint) {
|
|
|
const lossPoint = sellslpoint / multiplier
|
|
|
- price.stopLoss = lastPrice - lossPoint // 卖止损
|
|
|
+ price.stopLoss = lastPrice + lossPoint // 卖止损
|
|
|
}
|
|
|
}
|
|
|
|