|
@@ -25,12 +25,10 @@
|
|
|
<span>{{ formatDecimal(selectedRow.averageprice) }}</span>
|
|
<span>{{ formatDecimal(selectedRow.averageprice) }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item label="参考损益">
|
|
<el-form-item label="参考损益">
|
|
|
- <template #value>
|
|
|
|
|
- <span :class="closepl ? 'g-price-up' : 'g-price-down'">{{ formatDecimal(closepl) }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+ <span :class="handlePriceColor(closepl, 0)">{{ formatDecimal(closepl) }}</span>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="OrderQty" label="转让数量">
|
|
<el-form-item prop="OrderQty" label="转让数量">
|
|
|
- <el-input-number placeholder="请输入数量" v-model="formData.OrderQty" :max="selectedRow.enableqty" :min="0" />
|
|
|
|
|
|
|
+ <el-input-number placeholder="请输入数量" v-model="formData.OrderQty" :precision="0" :max="selectedRow.enableqty" :min="0" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item prop="OrderPrice" label="转让价格">
|
|
<el-form-item prop="OrderPrice" label="转让价格">
|
|
|
<el-input-number placeholder="请输入价格" v-model="formData.OrderPrice" :decimal-length="selectedRow.decimalplace" />
|
|
<el-input-number placeholder="请输入价格" v-model="formData.OrderPrice" :decimal-length="selectedRow.decimalplace" />
|
|
@@ -47,7 +45,7 @@
|
|
|
import { ref, PropType, computed, onMounted } from 'vue'
|
|
import { ref, PropType, computed, onMounted } from 'vue'
|
|
|
import { ElMessage, FormInstance, FormRules } from 'element-plus'
|
|
import { ElMessage, FormInstance, FormRules } from 'element-plus'
|
|
|
import { useOrder } from '@/business/trade'
|
|
import { useOrder } from '@/business/trade'
|
|
|
-import { formatDecimal } from '@/filters'
|
|
|
|
|
|
|
+import { formatDecimal, handlePriceColor } from '@/filters'
|
|
|
import { getBuyOrSellName, BuyOrSell } from '@/constants/order'
|
|
import { getBuyOrSellName, BuyOrSell } from '@/constants/order'
|
|
|
import { useFuturesStore } from '@/stores'
|
|
import { useFuturesStore } from '@/stores'
|
|
|
import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EPriceMode, EValidType } from '@/constants/client'
|
|
import { EBuildType, EDelistingType, EListingSelectType, EOrderOperateType, EPriceMode, EValidType } from '@/constants/client'
|