|
@@ -19,7 +19,7 @@
|
|
|
<div class="name">{{ selectedRow.warehousename }}</div>
|
|
<div class="name">{{ selectedRow.warehousename }}</div>
|
|
|
<div class="arrowRightIcon"></div>
|
|
<div class="arrowRightIcon"></div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="titleBtn titleBtn3" v-if="!isWR(enumName)">
|
|
|
|
|
|
|
+ <div class="titleBtn titleBtn3" v-if="getAuctionwrType(AuctionwrType.noWr)">
|
|
|
<div class="arrowLeftIcon"></div>
|
|
<div class="arrowLeftIcon"></div>
|
|
|
<div class="name">
|
|
<div class="name">
|
|
|
<a-month-picker
|
|
<a-month-picker
|
|
@@ -34,7 +34,7 @@
|
|
|
|
|
|
|
|
<div class="priceBar bdf1 ml20">
|
|
<div class="priceBar bdf1 ml20">
|
|
|
<div class="greenBar green">
|
|
<div class="greenBar green">
|
|
|
- <div class="numBlock" v-if="isFloat()">
|
|
|
|
|
|
|
+ <div class="numBlock" v-if="getListingMode(ListingMode.float)">
|
|
|
<div class="first">卖基差</div>
|
|
<div class="first">卖基差</div>
|
|
|
<div class="last">{{ selectedRow.sellpricemove }}</div>
|
|
<div class="last">{{ selectedRow.sellpricemove }}</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -48,7 +48,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="redBar red">
|
|
<div class="redBar red">
|
|
|
- <div class="numBlock" v-if="isFloat()">
|
|
|
|
|
|
|
+ <div class="numBlock" v-if="getListingMode(ListingMode.float)">
|
|
|
<div class="first">买基差</div>
|
|
<div class="first">买基差</div>
|
|
|
<div class="last">{{ selectedRow.buypricemove }}</div>
|
|
<div class="last">{{ selectedRow.buypricemove }}</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -62,7 +62,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <a-button class="market" v-if="isFloat()" @click="openComponent({ code: 'GoodsChart' })">
|
|
|
|
|
|
|
+ <a-button
|
|
|
|
|
+ class="market"
|
|
|
|
|
+ v-if="getListingMode(ListingMode.float)"
|
|
|
|
|
+ @click="openComponent({ code: 'GoodsChart' })"
|
|
|
|
|
+ >
|
|
|
<div class="first">{{ selectedRow.goodscode }}</div>
|
|
<div class="first">{{ selectedRow.goodscode }}</div>
|
|
|
<div class="last red">{{ getGoodsPrice() }}</div>
|
|
<div class="last red">{{ getGoodsPrice() }}</div>
|
|
|
<LineChartOutlined />
|
|
<LineChartOutlined />
|
|
@@ -75,23 +79,11 @@
|
|
|
<BtnList :btnList="firstBtn" :record="selectedRow" @click="openComponent" />
|
|
<BtnList :btnList="firstBtn" :record="selectedRow" @click="openComponent" />
|
|
|
</div>
|
|
</div>
|
|
|
<a-row class="buySellHall">
|
|
<a-row class="buySellHall">
|
|
|
- <a-col :span="12" v-if="sellMarket.isMarket">
|
|
|
|
|
- <Sell
|
|
|
|
|
- :enumName="enumName"
|
|
|
|
|
- ref="sellRef"
|
|
|
|
|
- :parantSelectedRow="selectedRow"
|
|
|
|
|
- :time="time"
|
|
|
|
|
- :btnList="handleBtnList(sellMarket.btnList)"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <Sell :enumName="enumName" ref="sellRef" :parantSelectedRow="selectedRow" :time="time" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
- <a-col :span="12" v-if="buyMarket.isMarket">
|
|
|
|
|
- <Buy
|
|
|
|
|
- :enumName="enumName"
|
|
|
|
|
- ref="buyRef"
|
|
|
|
|
- :time="time"
|
|
|
|
|
- :parantSelectedRow="selectedRow"
|
|
|
|
|
- :btnList="handleBtnList(buyMarket.btnList)"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <a-col :span="12">
|
|
|
|
|
+ <Buy :enumName="enumName" ref="buyRef" :time="time" :parantSelectedRow="selectedRow" />
|
|
|
</a-col>
|
|
</a-col>
|
|
|
</a-row>
|
|
</a-row>
|
|
|
<component
|
|
<component
|
|
@@ -129,6 +121,8 @@ import moment, { Moment } from 'moment';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
import { QueryQuoteDayRsp } from '@/services/go/quote/interface';
|
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
import { OperationTabMenu } from '@/services/go/commonService/interface';
|
|
|
|
|
+import { getAuctionwrType, getListingMode } from '@/views/market/market-spot/setup'
|
|
|
|
|
+import { TradeMode, ListingMode, AuctionwrType } from '@/common/constants/enumCommon';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'update'],
|
|
emits: ['cancel', 'update'],
|
|
@@ -150,16 +144,9 @@ export default defineComponent({
|
|
|
LeftOutlined,
|
|
LeftOutlined,
|
|
|
DownOutlined,
|
|
DownOutlined,
|
|
|
LineChartOutlined,
|
|
LineChartOutlined,
|
|
|
- warehouse_receipt_trade_floating_price_spot_trade_warehouse_detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
- warehouse_receipt_trade_price_spot_trade_warehouse_detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
- warehouse_pre_sale_price_spot_trade_warehouse_detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
- warehouse_pre_sale_floating_price_spot_trade_warehouse_detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
-
|
|
|
|
|
- warehouse_receipt_trade_floating_price_spot_trade_warehouse_post_buying: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
|
|
- warehouse_receipt_trade_price_spot_trade_warehouse_post_buying: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
|
|
- warehouse_pre_sale_price_spot_trade_warehouse_post_buying: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
|
|
- warehouse_pre_sale_floating_price_spot_trade_warehouse_post_buying: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
|
|
|
|
|
|
|
|
|
+ detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
|
|
+ post_buying: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
HisChart: defineAsyncComponent(() => import('../history-chart/index.vue')),
|
|
HisChart: defineAsyncComponent(() => import('../history-chart/index.vue')),
|
|
|
GoodsChart: defineAsyncComponent(() => import('../goods-chart/index.vue')), // 待优化
|
|
GoodsChart: defineAsyncComponent(() => import('../goods-chart/index.vue')), // 待优化
|
|
|
},
|
|
},
|
|
@@ -168,13 +155,10 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
|
|
|
|
|
- const { isWR, isFloat } = handleIs(props.enumName, BuyOrSell.buy);
|
|
|
|
|
- // 买卖大厅 配置数据
|
|
|
|
|
- // 表格操作按钮列表
|
|
|
|
|
- // const { firstBtn, buyMarket, sellMarket } = handleSpotBtnList(props.enumName);
|
|
|
|
|
- const firstBtn: OperationTabMenu[] = []
|
|
|
|
|
- const buyMarket: OperationTabMenu[] = []
|
|
|
|
|
- const sellMarket: OperationTabMenu[] = []
|
|
|
|
|
|
|
+ const firstBtn: BtnListType[] = [
|
|
|
|
|
+ { lable: '详情', code: 'detail', className: 'operBtn' },
|
|
|
|
|
+ { lable: '挂牌求购', code: 'post_buying', className: 'operBtn' },
|
|
|
|
|
+ ]
|
|
|
|
|
|
|
|
// 获取浮动价商品实时价格
|
|
// 获取浮动价商品实时价格
|
|
|
|
|
|
|
@@ -184,7 +168,7 @@ export default defineComponent({
|
|
|
return result;
|
|
return result;
|
|
|
}
|
|
}
|
|
|
const uuid = v4();
|
|
const uuid = v4();
|
|
|
- if (isFloat()) {
|
|
|
|
|
|
|
+ if (getListingMode(ListingMode.float)) {
|
|
|
// 如果是浮动价需要行情订阅
|
|
// 如果是浮动价需要行情订阅
|
|
|
const arr = [{ exchangeCode: 250, goodsCode: props.selectedRow.goodscode, subState: 0 }];
|
|
const arr = [{ exchangeCode: 250, goodsCode: props.selectedRow.goodscode, subState: 0 }];
|
|
|
addSubscribeQuotation(uuid, arr);
|
|
addSubscribeQuotation(uuid, arr);
|
|
@@ -244,18 +228,17 @@ export default defineComponent({
|
|
|
buyRef,
|
|
buyRef,
|
|
|
sellRef,
|
|
sellRef,
|
|
|
cancel,
|
|
cancel,
|
|
|
- isFloat,
|
|
|
|
|
|
|
+ getListingMode,
|
|
|
getGoodsPrice,
|
|
getGoodsPrice,
|
|
|
visible,
|
|
visible,
|
|
|
firstBtn,
|
|
firstBtn,
|
|
|
- buyMarket,
|
|
|
|
|
- sellMarket,
|
|
|
|
|
componentId,
|
|
componentId,
|
|
|
closeComponent,
|
|
closeComponent,
|
|
|
openComponent,
|
|
openComponent,
|
|
|
enumName: props.enumName,
|
|
enumName: props.enumName,
|
|
|
- handleBtnList,
|
|
|
|
|
- isWR,
|
|
|
|
|
|
|
+ getAuctionwrType,
|
|
|
|
|
+ AuctionwrType,
|
|
|
|
|
+ ListingMode,
|
|
|
timeChange,
|
|
timeChange,
|
|
|
getSelectedRow,
|
|
getSelectedRow,
|
|
|
};
|
|
};
|