|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <!-- 付款-->
|
|
|
+ <!-- 回购仓单 -->
|
|
|
<Drawer :title="'回购仓单'"
|
|
|
:placement="'right'"
|
|
|
:visible="visible"
|
|
|
@@ -29,17 +29,17 @@
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="购买数量">
|
|
|
- <span class="white ml10">1000吨</span>
|
|
|
+ <span class="white ml10">{{ selectedRow.wrqty + " " + selectedRow.enumdicname }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="已回购数量">
|
|
|
- <span class="white ml10">1000吨</span>
|
|
|
+ <span class="white ml10">{{ selectedRow.buybackwrpositionqty + " " + selectedRow.enumdicname }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="待回购数量">
|
|
|
- <span class="white ml10">1000吨</span>
|
|
|
+ <span class="white ml10">{{ selectedRow.remainwrpositionqty + " " + selectedRow.enumdicname }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
@@ -52,17 +52,19 @@
|
|
|
style="width: 200px" />
|
|
|
|
|
|
<div class="day">吨</div>
|
|
|
- <div class="tip">本次可回购数量30吨</div>
|
|
|
+ <!-- 本次可回购数量=min{资金方对应仓单头寸可用数量,融资合同剩余待回购数量} -->
|
|
|
+ <div class="tip">{{ "本次可回购数量" + selectedRow.remainwrpositionqty + " " + selectedRow.enumdicname }}</div>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
+ <!--(回购数量/合同剩余数量) * 合同剩余金额 -->
|
|
|
<a-form-item label="本次回购金额">
|
|
|
- <span class="white ml10">100.00</span>
|
|
|
+ <span class="white ml10">{{ (((formState.num === 0 ? 1 : formState.num) * selectedRow.remainamount) / selectedRow.remainwrpositionqty).toFixed(2) + " 元" }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :span="12">
|
|
|
<a-form-item label="剩余保证金">
|
|
|
- <span class="white ml10">100.00</span>
|
|
|
+ <span class="white ml10">{{ selectedRow.initmargin + " 元" }}</span>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|