|
|
@@ -1,123 +1,132 @@
|
|
|
<template>
|
|
|
- <!--仓单贸易 贸易圈挂牌 挂牌求购 -->
|
|
|
- <Drawer :title="'挂牌求购'" :placement="'right'" :visible="visible" @cancel="cancel" class="top486">
|
|
|
- <div class="post_buying">
|
|
|
- <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-col :span="24">
|
|
|
- <a-form-item label="挂牌价格" name="FixedPrice">
|
|
|
- <a-input-number
|
|
|
- class="commonInput"
|
|
|
- style="width: 260px"
|
|
|
- :min="0"
|
|
|
- v-model:value="formState.FixedPrice"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="挂牌数量" name="OrderQty">
|
|
|
- <a-input-number
|
|
|
- class="commonInput"
|
|
|
- style="width: 260px"
|
|
|
- :min="0"
|
|
|
- v-model:value="formState.OrderQty"
|
|
|
- />
|
|
|
- <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
+ <!--仓单贸易 贸易圈挂牌 挂牌求购 -->
|
|
|
+ <Drawer :title="'挂牌求购'"
|
|
|
+ :placement="'right'"
|
|
|
+ :visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ class="top486">
|
|
|
+ <div class="post_buying">
|
|
|
+ <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-col :span="24">
|
|
|
+ <a-form-item label="挂牌价格"
|
|
|
+ name="FixedPrice">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ style="width: 260px"
|
|
|
+ :min="0"
|
|
|
+ v-model:value="formState.FixedPrice" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="挂牌数量"
|
|
|
+ name="OrderQty">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ style="width: 260px"
|
|
|
+ :min="0"
|
|
|
+ v-model:value="formState.OrderQty" />
|
|
|
+ <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="起摘数量" name="delistingQty">
|
|
|
- <a-input-number
|
|
|
- class="commonInput"
|
|
|
- v-model:value="formState.delistingQty"
|
|
|
- :min="0"
|
|
|
- style="width: 260px"
|
|
|
- />
|
|
|
- <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="履约保证金" name="margin">
|
|
|
- <a-input-number
|
|
|
- class="commonInput"
|
|
|
- v-model:value="formState.margin"
|
|
|
- :min="0"
|
|
|
- style="width: 260px"
|
|
|
- />
|
|
|
- <span class="input-enumdicname">%</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="挂牌有效期" name="DeliveryMonth">
|
|
|
- <a-date-picker
|
|
|
- style="width: 260px"
|
|
|
- v-model:value="formState.DeliveryMonth"
|
|
|
- :allowClear="false"
|
|
|
- class="commonDatePicker dialogDatePicker"
|
|
|
- />
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="起摘数量"
|
|
|
+ name="delistingQty">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ v-model:value="formState.delistingQty"
|
|
|
+ :min="0"
|
|
|
+ style="width: 260px" />
|
|
|
+ <span class="input-enumdicname">{{selectedRow.enumdicname}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="履约保证金"
|
|
|
+ name="margin">
|
|
|
+ <a-input-number class="commonInput"
|
|
|
+ v-model:value="formState.margin"
|
|
|
+ :min="0"
|
|
|
+ style="width: 260px" />
|
|
|
+ <span class="input-enumdicname">%</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="挂牌有效期"
|
|
|
+ name="DeliveryMonth">
|
|
|
+ <a-date-picker style="width: 260px"
|
|
|
+ v-model:value="formState.DeliveryMonth"
|
|
|
+ :allowClear="false"
|
|
|
+ class="commonDatePicker dialogDatePicker" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
|
|
|
- <a-col :span="24" @click="openPermance">
|
|
|
- <a-form-item label="履约方式">
|
|
|
- <span class="white ml8">选择履约模板</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24" @click="openFriend">
|
|
|
- <a-form-item label="指定朋友">
|
|
|
- <span class="white ml8">选择朋友</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="挂牌金额">
|
|
|
- <span class="white ml8">55555</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="履约保证金">
|
|
|
- <span class="white ml8">55555</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="可用资金">
|
|
|
- <span class="white ml8">55555</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" @click="submit">买入</a-button>
|
|
|
- <a-button class="ml10 cancelBtn" @click="cancel">取消</a-button>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
+ <a-col :span="24"
|
|
|
+ @click="openPermance">
|
|
|
+ <a-form-item label="履约方式">
|
|
|
+ <span
|
|
|
+ class="white ml8">{{selectedPermance ? selectedPermance.templatename : '选择履约模板'}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24"
|
|
|
+ @click="openFriend">
|
|
|
+ <a-form-item label="指定朋友">
|
|
|
+ <span class="white ml8">{{frineds ? `已选${frineds.length}人` : '选择朋友'}}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="挂牌金额">
|
|
|
+ <span class="white ml8">55555</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="履约保证金">
|
|
|
+ <span class="white ml8">55555</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="可用资金">
|
|
|
+ <span class="white ml8">55555</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
</div>
|
|
|
- </Drawer>
|
|
|
- <!-- 选择朋友 -->
|
|
|
- <Friend v-if="showFriend" @cancel="chooseFriend" @update="chooseFriend" />
|
|
|
- <!-- 选择履约模板 -->
|
|
|
- <Permance v-if="showPermance" @cancel="choosePermance" @update="choosePermance" />
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="24"
|
|
|
+ class="fixedBtns">
|
|
|
+ <a-form-item class="btnCenter">
|
|
|
+ <a-button class="listedBtn"
|
|
|
+ @click="submit">买入</a-button>
|
|
|
+ <a-button class="ml10 cancelBtn"
|
|
|
+ @click="cancel">取消</a-button>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
+ <!-- 选择朋友 -->
|
|
|
+ <Friend v-if="showFriend"
|
|
|
+ @cancel="chooseFriend"
|
|
|
+ @update="chooseFriend" />
|
|
|
+ <!-- 选择履约模板 -->
|
|
|
+ <Permance v-if="showPermance"
|
|
|
+ @cancel="choosePermance"
|
|
|
+ @update="choosePermance" />
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -134,7 +143,7 @@ import { getAccountTypeList, getUserId } from '@/services/bus/account';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment, { Moment } from 'moment';
|
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
-import { QueryOrderQuoteMyqQsp, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
+import { QueryOrderQuoteMyqQsp, QueryPermancePlanTmpRsp, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
import { handleForm, hanldeOpenAndCloseComponent } from './setup';
|
|
|
import { validateAction } from '@/common/setup/form';
|
|
|
import { FormParam } from './interface';
|
|
|
@@ -162,7 +171,7 @@ export default defineComponent({
|
|
|
// 选择朋友
|
|
|
const { show: showFriend, selected: frineds, close: chooseFriend, open: openFriend } = hanldeOpenAndCloseComponent<number[]>();
|
|
|
// 履约模板
|
|
|
- const { show: showPermance, selected: selectedPermance, close: choosePermance, open: openPermance } = hanldeOpenAndCloseComponent<number>();
|
|
|
+ const { show: showPermance, selected: selectedPermance, close: choosePermance, open: openPermance } = hanldeOpenAndCloseComponent<QueryPermancePlanTmpRsp>();
|
|
|
const loading = ref<boolean>(false);
|
|
|
const accountList = getAccountTypeList([2]);
|
|
|
if (accountList.length) {
|
|
|
@@ -253,10 +262,12 @@ export default defineComponent({
|
|
|
showFriend,
|
|
|
chooseFriend,
|
|
|
openFriend,
|
|
|
+ frineds,
|
|
|
|
|
|
showPermance,
|
|
|
choosePermance,
|
|
|
openPermance,
|
|
|
+ selectedPermance,
|
|
|
};
|
|
|
},
|
|
|
});
|