|
|
@@ -1,55 +1,55 @@
|
|
|
<template>
|
|
|
- <!-- 买卖大厅 -->
|
|
|
- <div class="buy-sell-market">
|
|
|
- <div class="buy-sell-market-title">
|
|
|
- <a class="backIcon"
|
|
|
- @click="cancel">
|
|
|
- <LeftOutlined />
|
|
|
- </a>
|
|
|
- <div class="titleBtn">
|
|
|
- <div class="name">{{selectedRow.goodscode}} {{selectedRow.goodsname}}</div>
|
|
|
- <div class="arrowRightIcon"></div>
|
|
|
- </div>
|
|
|
- <div class="green bdf1 ml20">
|
|
|
- <div class="numBlock ml15">
|
|
|
- <div class="first">卖价</div>
|
|
|
- <div class="last">{{selectedRow.sellprice}}</div>
|
|
|
+ <!-- 买卖大厅 -->
|
|
|
+ <div class="buy-sell-market">
|
|
|
+ <div class="buy-sell-market-title">
|
|
|
+ <a class="backIcon" @click="cancel">
|
|
|
+ <LeftOutlined />
|
|
|
+ </a>
|
|
|
+ <div class="titleBtn">
|
|
|
+ <div class="name">{{selectedRow.goodscode}} {{selectedRow.goodsname}}</div>
|
|
|
+ <div class="arrowRightIcon"></div>
|
|
|
+ </div>
|
|
|
+ <div class="priceBar bdf1 ml20">
|
|
|
+ <div class="greenBar green" @click="changeMarketOrDetail">
|
|
|
+ <div class="numBlock ml15">
|
|
|
+ <div class="first">卖价</div>
|
|
|
+ <div class="last">{{selectedRow.sellprice}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="numBlock">
|
|
|
+ <div class="first">卖量</div>
|
|
|
+ <div class="last">{{selectedRow.sellqty}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="redBar red">
|
|
|
+ <div class="numBlock">
|
|
|
+ <div class="first">买价</div>
|
|
|
+ <div class="last">{{selectedRow.buyprice}}</div>
|
|
|
+ </div>
|
|
|
+ <div class="numBlock">
|
|
|
+ <div class="first">买量</div>
|
|
|
+ <div class="last">{{selectedRow.buyqty}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <BtnList :btnList="btnListData" :record="selectedRow" @click="openComponent" />
|
|
|
</div>
|
|
|
- <div class="numBlock">
|
|
|
- <div class="first">卖量</div>
|
|
|
- <div class="last">{{selectedRow.sellqty}}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="red ml35">
|
|
|
- <div class="numBlock">
|
|
|
- <div class="first">买价</div>
|
|
|
- <div class="last">{{selectedRow.buyprice}}</div>
|
|
|
- </div>
|
|
|
- <div class="numBlock">
|
|
|
- <div class="first">买量</div>
|
|
|
- <div class="last">{{selectedRow.buyqty}}</div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <BtnList :btnList="btnListData"
|
|
|
- :record="selectedRow"
|
|
|
- @click="openComponent" />
|
|
|
+ <a-row class="buySellHall" v-if="showMarketOrDetail">
|
|
|
+ <a-col :span="12">
|
|
|
+ <Sell ref="sellRef" :parantSelectedRow="deliverGoods" />
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <Buy ref="buyRef" :parantSelectedRow="deliverGoods" />
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <StockExchange :deliverGoods="deliverGoods" v-else />
|
|
|
+ <component
|
|
|
+ :is="componentId"
|
|
|
+ v-if="componentId"
|
|
|
+ :selectedRow="deliverGoods"
|
|
|
+ :parantSelectedRow="deliverGoods"
|
|
|
+ @cancel="closeComponent"
|
|
|
+ ></component>
|
|
|
</div>
|
|
|
- <a-row class="buySellHall">
|
|
|
- <a-col :span="12">
|
|
|
- <Sell ref="sellRef"
|
|
|
- :parantSelectedRow="deliverGoods" />
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <Buy ref="buyRef"
|
|
|
- :parantSelectedRow="deliverGoods" />
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <component :is="componentId"
|
|
|
- v-if="componentId"
|
|
|
- :selectedRow="deliverGoods"
|
|
|
- :parantSelectedRow="deliverGoods"
|
|
|
- @cancel="closeComponent"></component>
|
|
|
- </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -69,6 +69,7 @@ import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import moment, { Moment } from 'moment';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
+import StockExchange from '../stock-exchange/index.vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
|
@@ -90,6 +91,7 @@ export default defineComponent({
|
|
|
LeftOutlined,
|
|
|
Listing: defineAsyncComponent(() => import('../listing/index.vue')),
|
|
|
Detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
+ StockExchange,
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
const loading = ref<boolean>(false);
|
|
|
@@ -112,6 +114,11 @@ export default defineComponent({
|
|
|
};
|
|
|
const { componentId, closeComponent, openComponent } = handleModalComponent(queryFn, ref({}));
|
|
|
|
|
|
+ const showMarketOrDetail = ref<boolean>(true);
|
|
|
+ function changeMarketOrDetail() {
|
|
|
+ showMarketOrDetail.value = !showMarketOrDetail.value;
|
|
|
+ }
|
|
|
+
|
|
|
TimerUtils.setInterval(
|
|
|
() => {
|
|
|
queryFn();
|
|
|
@@ -131,9 +138,21 @@ export default defineComponent({
|
|
|
closeComponent,
|
|
|
openComponent,
|
|
|
btnListData,
|
|
|
+ showMarketOrDetail,
|
|
|
+ changeMarketOrDetail,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
+.priceBar {
|
|
|
+ .flex;
|
|
|
+ flex-direction: column;
|
|
|
+ height: 32px;
|
|
|
+ .greenBar,
|
|
|
+ .redBar {
|
|
|
+ height: 16px;
|
|
|
+ line-height: 16px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|