|
|
@@ -16,7 +16,7 @@
|
|
|
<Cell title="持仓均价" :value="formatDecimal(selectedRow.averageprice)" />
|
|
|
<Cell title="参考损益">
|
|
|
<template #value>
|
|
|
- <span :class="closepl ? 'g-up-color' : 'g-down-color'">{{ formatDecimal(closepl) }}</span>
|
|
|
+ <span :class="closepl ? 'g-price-up' : 'g-price-down'">{{ formatDecimal(closepl) }}</span>
|
|
|
</template>
|
|
|
</Cell>
|
|
|
</CellGroup>
|
|
|
@@ -25,10 +25,12 @@
|
|
|
<Form class="goods-close__form" ref="formRef" @submit="onDeliverySumit" v-if="props">
|
|
|
<Field name="DeliveryLot" type="digit" :rules="formRules.DeliveryLot" label="交收数量">
|
|
|
<template #input>
|
|
|
- <Stepper v-model="formData.DeliveryLot" input-width="100" theme="round" button-size="22" :min="0" :max="selectedRow.enableqty" :auto-fixed="false" integer />
|
|
|
+ <Stepper v-model="formData.DeliveryLot" theme="round" button-size="22" :min="0"
|
|
|
+ :max="selectedRow.enableqty" :auto-fixed="false" integer />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field name="DeliveryInfo" v-model="formData.DeliveryInfo" type="textarea" autosize clearable :rules="formRules.DeliveryInfo" maxlength="50" label="交收信息" placeholder="请输入交收信息">
|
|
|
+ <Field name="DeliveryInfo" v-model="formData.DeliveryInfo" type="textarea" autosize clearable
|
|
|
+ :rules="formRules.DeliveryInfo" maxlength="50" label="交收信息" placeholder="请输入交收信息">
|
|
|
</Field>
|
|
|
</Form>
|
|
|
</CellGroup>
|
|
|
@@ -43,7 +45,7 @@
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, PropType, computed } from 'vue'
|
|
|
import AppModal from '@/components/base/modal/index.vue'
|
|
|
-import { CellGroup, Cell, Button, FieldRule, Form, Field, Stepper} from 'vant'
|
|
|
+import { CellGroup, Cell, Button, FieldRule, Form, Field, Stepper } from 'vant'
|
|
|
import { getBuyOrSellName, BuyOrSell } from '@/constants/order'
|
|
|
import { formatDecimal } from '@/filters'
|
|
|
import { useOfflineDelivery } from '@/business/trade'
|
|
|
@@ -96,7 +98,7 @@ const onDeliverySumit = () => {
|
|
|
message: '确认要交收吗?',
|
|
|
showCancelButton: true,
|
|
|
}).then(() => {
|
|
|
- const { marketid, goodsid, goodscode, buyorsell } = props.selectedRow
|
|
|
+ const { marketid, goodsid, goodscode, buyorsell } = props.selectedRow
|
|
|
/// 市场ID
|
|
|
formData.Header = { MarketID: marketid, GoodsID: goodsid }
|
|
|
formData.GoodsCode = goodscode
|