|
@@ -1,90 +1,102 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 挂单 -->
|
|
|
|
|
- <Drawer :title="'挂牌'"
|
|
|
|
|
- :placement="'bottom'"
|
|
|
|
|
- :visible="visible">
|
|
|
|
|
- <!-- 挂牌 -->
|
|
|
|
|
- <div class="listed">
|
|
|
|
|
- <div class="condition">
|
|
|
|
|
- <a-button class="conditionBtn">螺纹钢</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">12</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">江铜</a-button>
|
|
|
|
|
- <a-button class="conditionBtn">华南仓库</a-button>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="formBar">
|
|
|
|
|
- <a-form class="inlineForm"
|
|
|
|
|
- :form="form"
|
|
|
|
|
- @submit="handleSearch">
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="挂牌方式">
|
|
|
|
|
- <a-select class="inlineFormSelect"
|
|
|
|
|
- default-value="1"
|
|
|
|
|
- style="width: 140px">
|
|
|
|
|
- <a-select-option value="1">
|
|
|
|
|
- 一口价
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- <a-select-option value="2">
|
|
|
|
|
- 一口价2
|
|
|
|
|
- </a-select-option>
|
|
|
|
|
- </a-select>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="挂牌价">
|
|
|
|
|
- <a-input class="commonInput"
|
|
|
|
|
- style="width: 140px" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="挂牌数量">
|
|
|
|
|
- <a-input class="commonInput"
|
|
|
|
|
- suffix="吨"
|
|
|
|
|
- style="width: 140px" />
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- <a-col :span="12">
|
|
|
|
|
- <a-form-item label="起摘数量"
|
|
|
|
|
- class="relative">
|
|
|
|
|
- <a-input class="commonInput"
|
|
|
|
|
- suffix="吨"
|
|
|
|
|
- style="width: 140px" />
|
|
|
|
|
- <div class="tip">最小单位:1吨</div>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- <a-row :gutter="24">
|
|
|
|
|
- <a-col :span="24">
|
|
|
|
|
- <a-form-item>
|
|
|
|
|
- <a-progress class="formProgress"
|
|
|
|
|
- :percent="30" />
|
|
|
|
|
- <div class="unit"><span>0</span><span>300吨</span></div>
|
|
|
|
|
- </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">挂牌</a-button>
|
|
|
|
|
- <a-button class="ml10 cancelBtn">取消</a-button>
|
|
|
|
|
- </a-form-item>
|
|
|
|
|
- </a-col>
|
|
|
|
|
- </a-row>
|
|
|
|
|
- </a-form>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </Drawer>
|
|
|
|
|
|
|
+ <!-- 挂单 -->
|
|
|
|
|
+ <Drawer :title="'挂牌'" :placement="'bottom'" :visible="visible">
|
|
|
|
|
+ <div class="listed">
|
|
|
|
|
+ <div class="condition">
|
|
|
|
|
+ <a-button class="conditionBtn">螺纹钢</a-button>
|
|
|
|
|
+ <a-button class="conditionBtn">12mm-江铜</a-button>
|
|
|
|
|
+ <!-- <a-button class="conditionBtn">江铜</a-button> -->
|
|
|
|
|
+ <a-button class="conditionBtn">华南仓库</a-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="formBar">
|
|
|
|
|
+ <a-form class="inlineForm dialogForm" :form="form" @submit="handleSearch">
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="挂牌方式">
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect"
|
|
|
|
|
+ default-value="1"
|
|
|
|
|
+ style="width: 140px"
|
|
|
|
|
+ >
|
|
|
|
|
+ <a-select-option value="1">一口价</a-select-option>
|
|
|
|
|
+ <a-select-option value="2">一口价2</a-select-option>
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="挂牌价">
|
|
|
|
|
+ <a-input class="commonInput" style="width: 140px" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="挂牌数量">
|
|
|
|
|
+ <a-input class="commonInput" suffix="吨" style="width: 140px" />
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <a-form-item label="起摘数量" class="relative">
|
|
|
|
|
+ <a-input class="commonInput" suffix="吨" style="width: 140px" />
|
|
|
|
|
+ <div class="tip">最小单位:1吨</div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="12" class="mt-20">
|
|
|
|
|
+ <a-form-item>
|
|
|
|
|
+ <a-progress class="formProgress" :percent="30" />
|
|
|
|
|
+ <div class="unit">
|
|
|
|
|
+ <span>0</span>
|
|
|
|
|
+ <span>300吨</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ <a-col :span="12"> </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ <a-row :gutter="24">
|
|
|
|
|
+ <a-col :span="24">
|
|
|
|
|
+ <a-form-item label="行情商品">
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect"
|
|
|
|
|
+ style="width: 135px"
|
|
|
|
|
+ placeholder="请择交易所"
|
|
|
|
|
+ >
|
|
|
|
|
+ <!-- <a-select-option value="1">一口价</a-select-option>
|
|
|
|
|
+ <a-select-option value="2">一口价2</a-select-option>-->
|
|
|
|
|
+ </a-select>
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect ml5"
|
|
|
|
|
+ style="width: 135px"
|
|
|
|
|
+ placeholder="请选择商品"
|
|
|
|
|
+ ></a-select>
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ class="inlineFormSelect ml5"
|
|
|
|
|
+ style="width: 135px"
|
|
|
|
|
+ placeholder="请选择合约"
|
|
|
|
|
+ ></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">卖出</a-button>
|
|
|
|
|
+ <a-button class="ml10 cancelBtn">取消</a-button>
|
|
|
|
|
+ </a-form-item>
|
|
|
|
|
+ </a-col>
|
|
|
|
|
+ </a-row>
|
|
|
|
|
+ </a-form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
import { enumOrderComponents } from '@/common/constants/enumOrderComponents';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import {QueryWrPositionReq, WrHoldLB, WrPosition} from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
|
+import { QueryWrPositionReq, WrHoldLB, WrPosition } from '@/services/go/wrtrade/interface';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
import { hdWROrder } from '@/services/proto/warehousetrade';
|
|
@@ -103,7 +115,7 @@ export default defineComponent({
|
|
|
setup(props) {
|
|
setup(props) {
|
|
|
const data = props.selectedRow;
|
|
const data = props.selectedRow;
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
- debugger
|
|
|
|
|
|
|
+ debugger;
|
|
|
const param = {
|
|
const param = {
|
|
|
AccountID: data.accountid.toString(),
|
|
AccountID: data.accountid.toString(),
|
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
ClientSerialNo: uuidv4(), // 客户端流水号
|
|
@@ -146,7 +158,7 @@ export default defineComponent({
|
|
|
};
|
|
};
|
|
|
console.log(param);
|
|
console.log(param);
|
|
|
|
|
|
|
|
- console.log(props.selectedRow)
|
|
|
|
|
|
|
+ console.log(props.selectedRow);
|
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
requestResultLoadingAndInfo(hdWROrder, param, loading, ['挂牌成功', '挂牌失败:']).then(() => {
|
|
|
// cancel(true);
|
|
// cancel(true);
|
|
|
});
|
|
});
|
|
@@ -163,17 +175,19 @@ export default defineComponent({
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
.flex;
|
|
.flex;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
|
+
|
|
|
.condition {
|
|
.condition {
|
|
|
- width: 100%;
|
|
|
|
|
|
|
+ width: calc(100% - 32px);
|
|
|
height: 48px;
|
|
height: 48px;
|
|
|
- padding: 10px 16px;
|
|
|
|
|
|
|
+ margin: 0 16px;
|
|
|
|
|
+ padding: 10px 0;
|
|
|
border-bottom: 1px solid @m-black6;
|
|
border-bottom: 1px solid @m-black6;
|
|
|
.inlineflex;
|
|
.inlineflex;
|
|
|
.conditionBtn {
|
|
.conditionBtn {
|
|
|
align-self: center;
|
|
align-self: center;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
border: 0;
|
|
border: 0;
|
|
|
- width: 80px;
|
|
|
|
|
|
|
+ min-width: 80px;
|
|
|
height: 28px;
|
|
height: 28px;
|
|
|
line-height: 28px;
|
|
line-height: 28px;
|
|
|
background: @m-black7;
|
|
background: @m-black7;
|
|
@@ -195,12 +209,14 @@ export default defineComponent({
|
|
|
padding: 28px 16px 7px;
|
|
padding: 28px 16px 7px;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-::v-deep.formProgress {
|
|
|
|
|
|
|
+.mt-20 {
|
|
|
|
|
+ margin-top: -20px;
|
|
|
|
|
+}
|
|
|
|
|
+.formProgress {
|
|
|
width: 140px;
|
|
width: 140px;
|
|
|
// height: 3px;
|
|
// height: 3px;
|
|
|
// .rounded-corners(2px);
|
|
// .rounded-corners(2px);
|
|
|
- margin-left: 80px;
|
|
|
|
|
|
|
+ margin-left: 70px;
|
|
|
.ant-progress-outer {
|
|
.ant-progress-outer {
|
|
|
margin-right: 0;
|
|
margin-right: 0;
|
|
|
padding-right: 0;
|
|
padding-right: 0;
|
|
@@ -219,7 +235,8 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.unit {
|
|
.unit {
|
|
|
- margin-left: 80px;
|
|
|
|
|
|
|
+ margin-left: 70px;
|
|
|
|
|
+ width: 140px;
|
|
|
.flex;
|
|
.flex;
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
@@ -252,4 +269,7 @@ export default defineComponent({
|
|
|
.ml10 {
|
|
.ml10 {
|
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
|
}
|
|
}
|
|
|
|
|
+.ml5 {
|
|
|
|
|
+ margin-left: 5px;
|
|
|
|
|
+}
|
|
|
</style>;
|
|
</style>;
|