|
@@ -1,136 +1,155 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 预售仓单 现货明细 挂牌 -->
|
|
|
|
|
- <Drawer :title="'挂牌'"
|
|
|
|
|
- :placement="'bottom'"
|
|
|
|
|
- :visible="visible"
|
|
|
|
|
- @cancel="cancel">
|
|
|
|
|
- <div class="listed">
|
|
|
|
|
- <div class="condition">
|
|
|
|
|
- <a-button class="conditionBtn">{{selectedRow.deliverygoodsname}}</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">{{selectedRow.wrtypename}}</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">{{selectedRow.warehousename}}</a-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="formBar">
|
|
|
|
|
- <a-form class="inlineForm dialogForm"
|
|
|
|
|
- ref="formRef"
|
|
|
|
|
- :model="formState"
|
|
|
|
|
- :rules="rules">
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="挂牌方式"
|
|
|
|
|
- name="WRPriceType">
|
|
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
|
|
- default-value="1"
|
|
|
|
|
- v-model:value="formState.WRPriceType"
|
|
|
|
|
- style="width: 140px">
|
|
|
|
|
- <a-select-option :value="1">一口价</a-select-option>
|
|
|
|
|
- <a-select-option :value="2">浮动价</a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12"
|
|
|
|
|
- v-if="formState.WRPriceType === 1">
|
|
|
|
|
- <a-form-item label="挂牌价"
|
|
|
|
|
- name="FixedPrice">
|
|
|
|
|
- <a-input-number class="dialogInput"
|
|
|
|
|
- style="width: 140px"
|
|
|
|
|
- v-model:value="formState.FixedPrice"
|
|
|
|
|
- placeholder="请输入挂牌价" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12"
|
|
|
|
|
- v-if="formState.WRPriceType === 2">
|
|
|
|
|
- <a-form-item label="基差"
|
|
|
|
|
- name="PriceMove">
|
|
|
|
|
- <a-input class="commonInput"
|
|
|
|
|
- v-model:value="formState.PriceMove"
|
|
|
|
|
- style="width: 140px" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="挂牌数量"
|
|
|
|
|
- name="OrderQty">
|
|
|
|
|
- <a-input-number class="dialogInput"
|
|
|
|
|
- style="width: 140px"
|
|
|
|
|
- :suffix="selectedRow.enumdicname"
|
|
|
|
|
- v-model:value="formState.OrderQty"
|
|
|
|
|
- placeholder="请输入挂牌数量" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="起摘数量"
|
|
|
|
|
- class="relative">
|
|
|
|
|
- <a-input class="commonInput"
|
|
|
|
|
- :suffix="selectedRow.enumdicname"
|
|
|
|
|
- style="width: 140px" />
|
|
|
|
|
- <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12"
|
|
|
|
|
- class="mt-20">
|
|
|
|
|
- <a-form-item>
|
|
|
|
|
- <a-slider v-model:value="formState.OrderQty"
|
|
|
|
|
- :min="0"
|
|
|
|
|
- :max="selectedRow.enableqty"
|
|
|
|
|
- class="formSlider" />
|
|
|
|
|
- <div class="unit">
|
|
|
|
|
- <span>0</span>
|
|
|
|
|
- <span>{{selectedRow.enableqty}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12"> </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24"
|
|
|
|
|
- v-if="formState.WRPriceType === 2">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item label="行情商品"
|
|
|
|
|
- name="goodsid">
|
|
|
|
|
- <!-- <a-select class="inlineFormSelect"
|
|
|
|
|
|
|
+ <!-- 预售仓单 现货明细 挂牌 -->
|
|
|
|
|
+ <Drawer :title="'挂牌'" :placement="'bottom'" :visible="visible" @cancel="cancel">
|
|
|
|
|
+ <div class="listed">
|
|
|
|
|
+ <div class="condition">
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.deliverygoodsname}}</a-button>
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.wrtypename}}</a-button>
|
|
|
|
|
+ <a-button class="conditionBtn">{{selectedRow.warehousename}}</a-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="formBar">
|
|
|
|
|
+ <a-form
|
|
|
|
|
+ class="inlineForm dialogForm"
|
|
|
|
|
+ ref="formRef"
|
|
|
|
|
+ :model="formState"
|
|
|
|
|
+ :rules="rules"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="挂牌方式" name="WRPriceType">
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect"
|
|
|
|
|
+ default-value="1"
|
|
|
|
|
+ v-model:value="formState.WRPriceType"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-select-option :value="1">一口价</a-select-option>
|
|
|
|
|
+ <a-select-option :value="2">浮动价</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12" v-if="formState.WRPriceType === 1">
|
|
|
|
|
+ <a-form-item label="挂牌价" name="FixedPrice">
|
|
|
|
|
+ <a-input-number
|
|
|
|
|
+ class="dialogInput"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ v-model:value="formState.FixedPrice"
|
|
|
|
|
+ placeholder="请输入挂牌价"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12" v-if="formState.WRPriceType === 2">
|
|
|
|
|
+ <a-form-item label="基差" name="PriceMove">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ class="commonInput"
|
|
|
|
|
+ v-model:value="formState.PriceMove"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="挂牌数量" name="OrderQty">
|
|
|
|
|
+ <a-input-number
|
|
|
|
|
+ class="dialogInput"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
|
|
+ v-model:value="formState.OrderQty"
|
|
|
|
|
+ placeholder="请输入挂牌数量"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="起摘数量" class="relative">
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ class="commonInput"
|
|
|
|
|
+ :suffix="selectedRow.enumdicname"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="tip">最小单位:1{{selectedRow.enumdicname}}</div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="交收月" name="time">
|
|
|
|
|
+ <a-month-picker
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ v-model:value="time"
|
|
|
|
|
+ :allowClear="false"
|
|
|
|
|
+ class="commonDatePicker dialogDatePicker"
|
|
|
|
|
+ />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item> </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12" class="mt-20">
|
|
|
|
|
+ <a-form-item>
|
|
|
|
|
+ <a-slider
|
|
|
|
|
+ v-model:value="formState.OrderQty"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ :max="selectedRow.enableqty"
|
|
|
|
|
+ class="formSlider"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div class="unit">
|
|
|
|
|
+ <span>0</span>
|
|
|
|
|
+ <span>{{selectedRow.enableqty}}{{selectedRow.enumdicname}}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12"> </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24" v-if="formState.WRPriceType === 2">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="行情商品" name="goodsid">
|
|
|
|
|
+ <!-- <a-select class="inlineFormSelect"
|
|
|
style="width: 135px"
|
|
style="width: 135px"
|
|
|
placeholder="请择交易所">
|
|
placeholder="请择交易所">
|
|
|
</a-select>-->
|
|
</a-select>-->
|
|
|
- <a-select class="inlineFormSelect ml5"
|
|
|
|
|
- @change="groupsChange"
|
|
|
|
|
- style="width: 135px"
|
|
|
|
|
- v-model:value="formState.goodsgroupid"
|
|
|
|
|
- placeholder="请选择商品">
|
|
|
|
|
- <a-select-option v-for="item in goodsGroup"
|
|
|
|
|
- :value="item.goodsgroupid"
|
|
|
|
|
- :key="item.goodsgroupid">{{item.goodsgroupname}}
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- <a-select class="inlineFormSelect ml5"
|
|
|
|
|
- style="width: 135px"
|
|
|
|
|
- v-model:value="formState.goodsid"
|
|
|
|
|
- placeholder="请选择合约">
|
|
|
|
|
- <a-select-option v-for="item in goodsList"
|
|
|
|
|
- :value="item.goodsid"
|
|
|
|
|
- :key="item.goodsid">{{item.goodsname}}</a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24"
|
|
|
|
|
- type="flex"
|
|
|
|
|
- justify="center">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item class="tc">
|
|
|
|
|
- <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>
|
|
|
|
|
- </div>
|
|
|
|
|
- </Drawer>
|
|
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect ml5"
|
|
|
|
|
+ @change="groupsChange"
|
|
|
|
|
+ style="width: 135px"
|
|
|
|
|
+ v-model:value="formState.goodsgroupid"
|
|
|
|
|
+ placeholder="请选择商品"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-select-option
|
|
|
|
|
+ v-for="item in goodsGroup"
|
|
|
|
|
+ :value="item.goodsgroupid"
|
|
|
|
|
+ :key="item.goodsgroupid"
|
|
|
|
|
+ >{{item.goodsgroupname}}</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect ml5"
|
|
|
|
|
+ style="width: 135px"
|
|
|
|
|
+ v-model:value="formState.goodsid"
|
|
|
|
|
+ placeholder="请选择合约"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-select-option
|
|
|
|
|
+ v-for="item in goodsList"
|
|
|
|
|
+ :value="item.goodsid"
|
|
|
|
|
+ :key="item.goodsid"
|
|
|
|
|
+ >{{item.goodsname}}</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24" type="flex" justify="center">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item class="tc">
|
|
|
|
|
+ <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>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
@@ -151,8 +170,8 @@ import { ListingForm } from './interface';
|
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
import { getMarketRunByTradeMode } from '@/services/bus/market';
|
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
|
import { getGoodsGroupsByTradeMode } from '@/services/bus/goods';
|
|
import { getGoodsGroupsByTradeMode } from '@/services/bus/goods';
|
|
|
-import {BuyOrSell, TradeMode} from '@/common/constants/enumCommon';
|
|
|
|
|
-import {HdWROrderReq, WRGoodsInfo} from '@/services/proto/warehousetrade/interface';
|
|
|
|
|
|
|
+import { BuyOrSell, TradeMode } from '@/common/constants/enumCommon';
|
|
|
|
|
+import { HdWROrderReq, WRGoodsInfo } from '@/services/proto/warehousetrade/interface';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
name: ModalEnum.spot_warrant_spot_details_listed,
|
|
@@ -188,7 +207,7 @@ export default defineComponent({
|
|
|
// SubNum: '0', // 提单子单号
|
|
// SubNum: '0', // 提单子单号
|
|
|
SubNum: 0,
|
|
SubNum: 0,
|
|
|
// WRFactorTypeId: '2121626946446000001', // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
// WRFactorTypeId: '2121626946446000001', // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
- WRFactorTypeId: props.selectedRow.wrfactortypeid, // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
|
|
|
|
+ WRFactorTypeId: props.selectedRow.wrfactortypeid, // 仓单要素ID(wrholdlb的WRFactorTypeId字段),卖的时候填写 uint64
|
|
|
IsSpecified: 0, // 是否指定对手 0:不指定 1:指定 uint32
|
|
IsSpecified: 0, // 是否指定对手 0:不指定 1:指定 uint32
|
|
|
// MatchUserIDs: 0, // 仓单贸易对手资金账号ID集合(指定对手时填写) uint32
|
|
// MatchUserIDs: 0, // 仓单贸易对手资金账号ID集合(指定对手时填写) uint32
|
|
|
OrderQty: 1, // 委托数量(可挂部分数据量) ======
|
|
OrderQty: 1, // 委托数量(可挂部分数据量) ======
|
|
@@ -216,10 +235,9 @@ export default defineComponent({
|
|
|
wrstandardid: props.selectedRow.wrstandardid,
|
|
wrstandardid: props.selectedRow.wrstandardid,
|
|
|
HasWr: 0, // 0 无仓单 1: 有仓单
|
|
HasWr: 0, // 0 无仓单 1: 有仓单
|
|
|
};
|
|
};
|
|
|
- debugger
|
|
|
|
|
|
|
+ debugger;
|
|
|
console.log(param);
|
|
console.log(param);
|
|
|
- requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {});
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -349,4 +367,10 @@ export default defineComponent({
|
|
|
.ml5 {
|
|
.ml5 {
|
|
|
margin-left: 5px;
|
|
margin-left: 5px;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+::v-deep.dialogDatePicker.ant-calendar-picker .ant-input {
|
|
|
|
|
+ background: @m-grey21;
|
|
|
|
|
+ border: 1px solid @m-grey14;
|
|
|
|
|
+ .rounded-corners(3px);
|
|
|
|
|
+}
|
|
|
</style>;
|
|
</style>;
|