|
@@ -1,160 +1,149 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 仓单贸易&仓单预售 买/卖 摘牌 -->
|
|
|
|
|
- <Drawer
|
|
|
|
|
- :title="'摘牌'"
|
|
|
|
|
- :placement="'right'"
|
|
|
|
|
- :visible="visible"
|
|
|
|
|
- width="486px"
|
|
|
|
|
- height="479px"
|
|
|
|
|
- @cancel="cancel"
|
|
|
|
|
- class="top"
|
|
|
|
|
- >
|
|
|
|
|
- <div class="delisting">
|
|
|
|
|
- <div class="formBar">
|
|
|
|
|
- <a-form
|
|
|
|
|
- class="inlineForm dialogForm"
|
|
|
|
|
- ref="formRef"
|
|
|
|
|
- :model="formState"
|
|
|
|
|
- :rules="rules"
|
|
|
|
|
- >
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="交易账户" name="accountid">
|
|
|
|
|
- <a-select
|
|
|
|
|
- class="inlineFormSelect"
|
|
|
|
|
- style="width: 260px"
|
|
|
|
|
- v-model:value="formState.accountid"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- >
|
|
|
|
|
- <a-select-option
|
|
|
|
|
- v-for="item in accountList"
|
|
|
|
|
- :value="item.accountid"
|
|
|
|
|
- :key="item.accountid"
|
|
|
|
|
- >{{item.accountid}}</a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="挂牌方">
|
|
|
|
|
- <span class="white ml8">{{selectedRow.username}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="基差" v-if="isFloat()">
|
|
|
|
|
- <span class="yellow ml8">{{selectedRow.pricemove}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- <a-form-item label="挂牌价格" v-if="!isFloat()">
|
|
|
|
|
- <span class="yellow ml8">{{selectedRow.fixedprice}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24"></a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-form-item label="挂牌数量">
|
|
|
|
|
- <span
|
|
|
|
|
- class="white ml8"
|
|
|
|
|
- >{{selectedRow.orderqty}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24" v-if="isBuy() && isWR()">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="现货仓单" name="LadingBillId">
|
|
|
|
|
- <a-select
|
|
|
|
|
- class="inlineFormSelect"
|
|
|
|
|
- style="width: 260px"
|
|
|
|
|
- v-model:value="formState.LadingBillId"
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- >
|
|
|
|
|
- <a-select-option
|
|
|
|
|
- v-for="item in wrHoldList"
|
|
|
|
|
- :value="item.id"
|
|
|
|
|
- :key="item.id"
|
|
|
|
|
- >{{item.name}}</a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="摘牌数量" class="relative" name="num">
|
|
|
|
|
- <a-input-number
|
|
|
|
|
- class="dialogInput yellowInput"
|
|
|
|
|
- style="width: 260px"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- :max="getMaxNum()"
|
|
|
|
|
- v-model:value="formState.num"
|
|
|
|
|
- />
|
|
|
|
|
- <span class="input-enumdicname-absolute">{{selectedRow.enumdicname}}</span>
|
|
|
|
|
- <div
|
|
|
|
|
- class="labelTip"
|
|
|
|
|
- >({{selectedRow.minivalue}}{{selectedRow.enumdicname}}起)</div>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24" class="mt-20">
|
|
|
|
|
- <a-form-item>
|
|
|
|
|
- <a-slider
|
|
|
|
|
- ::min="0"
|
|
|
|
|
- v-model:value="formState.num"
|
|
|
|
|
- :max="selectedRow.orderqty"
|
|
|
|
|
- class="formSlider"
|
|
|
|
|
- />
|
|
|
|
|
- <div class="unit">
|
|
|
|
|
- <span>0</span>
|
|
|
|
|
- <span>{{getMaxNum()}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12"> </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24" class="mt-20">
|
|
|
|
|
- <a-form-item :label="isFloat() ? '估算金额' : '摘牌金额'">
|
|
|
|
|
- <span class="white ml8">{{getMoney()}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24" class="mt-20">
|
|
|
|
|
- <a-form-item :label="getMargin() ? '履约保证金' : ''">
|
|
|
|
|
- <a-row>
|
|
|
|
|
- <a-col :span="8" v-if="getMargin()">
|
|
|
|
|
- <span class="white ml8">{{getMargin()}}</span>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="4" class="tr">
|
|
|
|
|
- <span class="grey1">可用资金</span>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <span
|
|
|
|
|
- class="white ml8"
|
|
|
|
|
- >{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item class="tc">
|
|
|
|
|
- <a-button
|
|
|
|
|
- class="listedBtn"
|
|
|
|
|
- :loading="loading"
|
|
|
|
|
- :disabled="loading"
|
|
|
|
|
- @click="submit"
|
|
|
|
|
- >{{isBuy() ? '卖出' : '买入'}}</a-button>
|
|
|
|
|
- <a-button class="ml10 cancelBtn" @click="cancel">取消</a-button>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </Drawer>
|
|
|
|
|
|
|
+ <!-- 仓单贸易&仓单预售 买/卖 摘牌 -->
|
|
|
|
|
+ <Drawer :title="'摘牌'"
|
|
|
|
|
+ :placement="'right'"
|
|
|
|
|
+ :visible="visible"
|
|
|
|
|
+ width="486px"
|
|
|
|
|
+ height="479px"
|
|
|
|
|
+ @cancel="cancel"
|
|
|
|
|
+ class="top">
|
|
|
|
|
+ <div class="delisting">
|
|
|
|
|
+ <div class="formBar">
|
|
|
|
|
+ <a-form class="inlineForm dialogForm"
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="formState"
|
|
|
|
|
+ :rules="rules">
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="交易账户"
|
|
|
|
|
+ name="accountid">
|
|
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
|
|
+ style="width: 260px"
|
|
|
|
|
+ v-model:value="formState.accountid"
|
|
|
|
|
+ placeholder="请选择">
|
|
|
|
|
+ <a-select-option v-for="item in accountList"
|
|
|
|
|
+ :value="item.accountid"
|
|
|
|
|
+ :key="item.accountid">{{item.accountid}}</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="挂牌方">
|
|
|
|
|
+ <span class="white ml8">{{selectedRow.username}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="基差"
|
|
|
|
|
+ v-if="isFloat()">
|
|
|
|
|
+ <span class="yellow ml8">{{selectedRow.pricemove}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ <a-form-item label="挂牌价格"
|
|
|
|
|
+ v-if="!isFloat()">
|
|
|
|
|
+ <span class="yellow ml8">{{selectedRow.fixedprice}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24"></a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-form-item label="挂牌数量">
|
|
|
|
|
+ <span class="white ml8">{{selectedRow.orderqty}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24"
|
|
|
|
|
+ v-if="isBuy() && isWR()">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="现货仓单"
|
|
|
|
|
+ name="LadingBillId">
|
|
|
|
|
+ <a-select class="inlineFormSelect"
|
|
|
|
|
+ style="width: 260px"
|
|
|
|
|
+ v-model:value="formState.LadingBillId"
|
|
|
|
|
+ placeholder="请选择">
|
|
|
|
|
+ <a-select-option v-for="item in wrHoldList"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ :key="item.id">{{item.name}}</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="摘牌数量"
|
|
|
|
|
+ class="relative"
|
|
|
|
|
+ name="num">
|
|
|
|
|
+ <a-input-number class="dialogInput yellowInput"
|
|
|
|
|
+ style="width: 260px"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ :max="getMaxNum()"
|
|
|
|
|
+ v-model:value="formState.num" />
|
|
|
|
|
+ <span class="input-enumdicname-absolute">{{selectedRow.enumdicname}}</span>
|
|
|
|
|
+ <div class="labelTip">({{selectedRow.minivalue}}{{selectedRow.enumdicname}}起)</div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="mt-20">
|
|
|
|
|
+ <a-form-item>
|
|
|
|
|
+ <a-slider ::min="0"
|
|
|
|
|
+ v-model:value="formState.num"
|
|
|
|
|
+ :max="selectedRow.orderqty"
|
|
|
|
|
+ class="formSlider" />
|
|
|
|
|
+ <div class="unit">
|
|
|
|
|
+ <span>0</span>
|
|
|
|
|
+ <span>{{getMaxNum()}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12"> </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="mt-20">
|
|
|
|
|
+ <a-form-item :label="isFloat() ? '估算金额' : '摘牌金额'">
|
|
|
|
|
+ <span class="white ml8">{{getMoney()}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="mt-20">
|
|
|
|
|
+ <a-form-item :label="getMargin() ? '履约保证金' : ''">
|
|
|
|
|
+ <a-row>
|
|
|
|
|
+ <a-col :span="8"
|
|
|
|
|
+ v-if="getMargin()">
|
|
|
|
|
+ <span class="white ml8">{{getMargin()}}</span>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="4"
|
|
|
|
|
+ class="tr">
|
|
|
|
|
+ <span class="grey1">可用资金</span>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <span class="white ml8">{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item class="tc">
|
|
|
|
|
+ <a-button class="listedBtn"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :disabled="loading"
|
|
|
|
|
+ @click="submit">{{isBuy() ? '卖出' : '买入'}}</a-button>
|
|
|
|
|
+ <a-button class="ml10 cancelBtn"
|
|
|
|
|
+ @click="cancel">取消</a-button>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -173,7 +162,7 @@ import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { handleForm, handleNumAndMoney, handleSpotWarrant, getWrPosition } from './setup';
|
|
import { handleForm, handleNumAndMoney, handleSpotWarrant, getWrPosition } from './setup';
|
|
|
import { handleIs } from '../../setup';
|
|
import { handleIs } from '../../setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
-import { ListingForm } from './interface';
|
|
|
|
|
|
|
+import { ListingForm, TempWrOrderQuoteDetail } from './interface';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
import { getCanUseMoney } from '@/services/bus/account';
|
|
@@ -187,7 +176,7 @@ export default defineComponent({
|
|
|
type: String as PropType<EnumRouterName>,
|
|
type: String as PropType<EnumRouterName>,
|
|
|
},
|
|
},
|
|
|
selectedRow: {
|
|
selectedRow: {
|
|
|
- type: Object as PropType<WrOrderQuoteDetail>,
|
|
|
|
|
|
|
+ type: Object as PropType<TempWrOrderQuoteDetail>,
|
|
|
default: {},
|
|
default: {},
|
|
|
},
|
|
},
|
|
|
parantSelectedRow: {
|
|
parantSelectedRow: {
|