|
@@ -1,145 +1,140 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 仓单贸易&仓单预售 买/卖 摘牌 -->
|
|
|
|
|
- <Drawer
|
|
|
|
|
- :title="'摘牌'"
|
|
|
|
|
- :placement="'right'"
|
|
|
|
|
- :visible="visible"
|
|
|
|
|
- width="486px"
|
|
|
|
|
- height="580px"
|
|
|
|
|
- @cancel="cancel"
|
|
|
|
|
- class="top"
|
|
|
|
|
- >
|
|
|
|
|
- <div class="delisting">
|
|
|
|
|
- <a-form class="inlineForm dialogForm" ref="formRef" :model="formState" :rules="rules">
|
|
|
|
|
- <div class="formBar">
|
|
|
|
|
- <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">
|
|
|
|
|
- <a-col :span="24" class="mt-10">
|
|
|
|
|
- <a-form-item
|
|
|
|
|
- label="融资方案"
|
|
|
|
|
- @click="openComponent({code: 'ChooseFinance'})"
|
|
|
|
|
- name="caseId"
|
|
|
|
|
- >
|
|
|
|
|
- <div class="way">
|
|
|
|
|
- <div class="left">{{formState.case ? formState.case : '请选择'}}</div>
|
|
|
|
|
- <div class="right">
|
|
|
|
|
- <svg class="icon svg-icon" aria-hidden="true">
|
|
|
|
|
- <use xlink:href="#icon-fangan" />
|
|
|
|
|
- </svg>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </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"
|
|
|
|
|
- style="width: 260px;"
|
|
|
|
|
- />
|
|
|
|
|
- <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" v-if="getMargin()">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item :label="getMargin() ? '履约保证金' : ''">
|
|
|
|
|
- <!-- <a-row>
|
|
|
|
|
|
|
+ <!-- 仓单贸易&仓单预售 买/卖 摘牌 -->
|
|
|
|
|
+ <Drawer :title="'摘牌'"
|
|
|
|
|
+ :placement="'right'"
|
|
|
|
|
+ :visible="visible"
|
|
|
|
|
+ width="486px"
|
|
|
|
|
+ height="580px"
|
|
|
|
|
+ @cancel="cancel"
|
|
|
|
|
+ class="top">
|
|
|
|
|
+ <div class="delisting">
|
|
|
|
|
+ <a-form class="inlineForm dialogForm"
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="formState"
|
|
|
|
|
+ :rules="rules">
|
|
|
|
|
+ <div class="formBar">
|
|
|
|
|
+ <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">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="mt-10">
|
|
|
|
|
+ <a-form-item label="融资方案"
|
|
|
|
|
+ @click="openComponent({code: 'ChooseFinance'})"
|
|
|
|
|
+ name="caseId">
|
|
|
|
|
+ <div class="way">
|
|
|
|
|
+ <div class="left">{{formState.case ? formState.case : '请选择'}}</div>
|
|
|
|
|
+ <div class="right">
|
|
|
|
|
+ <svg class="icon svg-icon"
|
|
|
|
|
+ aria-hidden="true">
|
|
|
|
|
+ <use xlink:href="#icon-fangan" />
|
|
|
|
|
+ </svg>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </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"
|
|
|
|
|
+ style="width: 260px;" />
|
|
|
|
|
+ <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"
|
|
|
|
|
+ v-if="getMargin()">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item :label="getMargin() ? '履约保证金' : ''">
|
|
|
|
|
+ <!-- <a-row>
|
|
|
<a-col :span="8">-->
|
|
<a-col :span="8">-->
|
|
|
- <span class="white ml8">{{getMargin()}}</span>
|
|
|
|
|
- <!-- </a-col>
|
|
|
|
|
|
|
+ <span class="white ml8">{{getMargin()}}</span>
|
|
|
|
|
+ <!-- </a-col>
|
|
|
<a-col :span="5" class="tr">
|
|
<a-col :span="5" class="tr">
|
|
|
<span class="grey1">可用资金</span>
|
|
<span class="grey1">可用资金</span>
|
|
|
</a-col>
|
|
</a-col>
|
|
@@ -149,41 +144,39 @@
|
|
|
>{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
>{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>-->
|
|
</a-row>-->
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="可用资金">
|
|
|
|
|
- <span class="white ml8">{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </div>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24" class="fixedBtns">
|
|
|
|
|
- <a-form-item class="btnCenter">
|
|
|
|
|
- <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>
|
|
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="可用资金">
|
|
|
|
|
+ <span class="white ml8">{{getCanUseMoney(getSelectedAccount())}}</span>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
</div>
|
|
</div>
|
|
|
- </Drawer>
|
|
|
|
|
- <component
|
|
|
|
|
- :is="componentId"
|
|
|
|
|
- v-if="componentId"
|
|
|
|
|
- :selectedRow="selectedRow"
|
|
|
|
|
- :isFloat="isFloat()"
|
|
|
|
|
- @update="choose"
|
|
|
|
|
- @cancel="closeComponent"
|
|
|
|
|
- ></component>
|
|
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24"
|
|
|
|
|
+ class="fixedBtns">
|
|
|
|
|
+ <a-form-item class="btnCenter">
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </Drawer>
|
|
|
|
|
+ <component :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ :isFloat="isFloat()"
|
|
|
|
|
+ @update="choose"
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -261,7 +254,7 @@ export default defineComponent({
|
|
|
function choose(item: WrFAProductDetail) {
|
|
function choose(item: WrFAProductDetail) {
|
|
|
selecedFinance.value = item;
|
|
selecedFinance.value = item;
|
|
|
formState.caseId = item.productdetailid;
|
|
formState.caseId = item.productdetailid;
|
|
|
- formState.case = `${item.productname}-${item.username}-${item.financingdays}天-${(item.marginratio * 100).toFixed(2)}%-${item.interestratemode === 3 ? item.interestrate : (item.interestrate * 10000).toFixed(2)}%-${item.interestsettlemode === 1 ? '按日结息' : '按月结息'}-${item.interestminlen}天起息`;
|
|
|
|
|
|
|
+ formState.case = `${item.productname}-${item.username}-${item.financingdays}天-${(item.marginratio * 100).toFixed(2)}%-${item.interestratemode === 3 ? item.interestrate : (item.interestrate * 10000).toFixed(2)}‱-${item.interestsettlemode === 1 ? '按日结息' : '按月结息'}-${item.interestminlen}天起息`;
|
|
|
}
|
|
}
|
|
|
function submit() {
|
|
function submit() {
|
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|
|
validateAction<ListingForm>(formRef, formState).then((res) => {
|