|
@@ -10,7 +10,8 @@
|
|
|
<div class="name">{{selectedRow.goodscode}} {{selectedRow.goodsname}}</div>
|
|
<div class="name">{{selectedRow.goodscode}} {{selectedRow.goodsname}}</div>
|
|
|
<div class="arrowRightIcon"></div>
|
|
<div class="arrowRightIcon"></div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="green bdf1 ml20">
|
|
|
|
|
|
|
+ <div class="green bdf1 ml20"
|
|
|
|
|
+ @click="changeMarketOrDetail">
|
|
|
<div class="numBlock ml15">
|
|
<div class="numBlock ml15">
|
|
|
<div class="first">卖价</div>
|
|
<div class="first">卖价</div>
|
|
|
<div class="last">{{selectedRow.sellprice}}</div>
|
|
<div class="last">{{selectedRow.sellprice}}</div>
|
|
@@ -34,7 +35,8 @@
|
|
|
:record="selectedRow"
|
|
:record="selectedRow"
|
|
|
@click="openComponent" />
|
|
@click="openComponent" />
|
|
|
</div>
|
|
</div>
|
|
|
- <a-row class="buySellHall">
|
|
|
|
|
|
|
+ <a-row class="buySellHall"
|
|
|
|
|
+ v-if="showMarketOrDetail">
|
|
|
<a-col :span="12">
|
|
<a-col :span="12">
|
|
|
<Sell ref="sellRef"
|
|
<Sell ref="sellRef"
|
|
|
:parantSelectedRow="deliverGoods" />
|
|
:parantSelectedRow="deliverGoods" />
|
|
@@ -44,6 +46,8 @@
|
|
|
:parantSelectedRow="deliverGoods" />
|
|
:parantSelectedRow="deliverGoods" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
+ <StockExchange :deliverGoods="deliverGoods"
|
|
|
|
|
+ v-else />
|
|
|
<component :is="componentId"
|
|
<component :is="componentId"
|
|
|
v-if="componentId"
|
|
v-if="componentId"
|
|
|
:selectedRow="deliverGoods"
|
|
:selectedRow="deliverGoods"
|
|
@@ -69,6 +73,7 @@ import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import moment, { Moment } from 'moment';
|
|
import moment, { Moment } from 'moment';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
import { QueryDeliveryRelationRsp } from '@/services/go/delivery/interface';
|
|
|
|
|
+import StockExchange from '../stock-exchange/index.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
@@ -90,6 +95,7 @@ export default defineComponent({
|
|
|
LeftOutlined,
|
|
LeftOutlined,
|
|
|
Listing: defineAsyncComponent(() => import('../listing/index.vue')),
|
|
Listing: defineAsyncComponent(() => import('../listing/index.vue')),
|
|
|
Detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
Detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
+ StockExchange,
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
@@ -112,6 +118,11 @@ export default defineComponent({
|
|
|
};
|
|
};
|
|
|
const { componentId, closeComponent, openComponent } = handleModalComponent(queryFn, ref({}));
|
|
const { componentId, closeComponent, openComponent } = handleModalComponent(queryFn, ref({}));
|
|
|
|
|
|
|
|
|
|
+ const showMarketOrDetail = ref<boolean>(true);
|
|
|
|
|
+ function changeMarketOrDetail() {
|
|
|
|
|
+ showMarketOrDetail.value = !showMarketOrDetail.value;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
TimerUtils.setInterval(
|
|
TimerUtils.setInterval(
|
|
|
() => {
|
|
() => {
|
|
|
queryFn();
|
|
queryFn();
|
|
@@ -131,6 +142,8 @@ export default defineComponent({
|
|
|
closeComponent,
|
|
closeComponent,
|
|
|
openComponent,
|
|
openComponent,
|
|
|
btnListData,
|
|
btnListData,
|
|
|
|
|
+ showMarketOrDetail,
|
|
|
|
|
+ changeMarketOrDetail,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|