|
|
@@ -53,20 +53,16 @@
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { defineAsyncComponent, defineComponent, BtnList, ModalEnum } from '@/common/export/commonTable';
|
|
|
+import { defineAsyncComponent, defineComponent, BtnList } from '@/common/export/commonTable';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
import { LeftOutlined } from '@ant-design/icons-vue';
|
|
|
-import { handleFinacing, handleIs, setGoodsPrice } from './setup';
|
|
|
import Buy from '../buy-market/index.vue';
|
|
|
import Sell from '../sell-market/index.vue';
|
|
|
-import { LineChartOutlined, DownOutlined } from '@ant-design/icons-vue';
|
|
|
import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
import { onMounted, PropType, ref } from 'vue';
|
|
|
-import { handleSpotBtnList } from '../../../setup';
|
|
|
-import { addSubscribeQuotation, removeSubscribeQuotation } from '@/services/socket/quota';
|
|
|
+
|
|
|
import Bus from '@/utils/eventBus/index';
|
|
|
-import { getQuoteDayInfoByCodeFindPrice } from '@/services/bus/goods';
|
|
|
import TimerUtils from '@/utils/timer/timerUtil';
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import moment, { Moment } from 'moment';
|
|
|
@@ -79,27 +75,20 @@ export default defineComponent({
|
|
|
type: Object as PropType<WrOrderQuote>,
|
|
|
default: {},
|
|
|
},
|
|
|
- enumName: {
|
|
|
- default: '',
|
|
|
- type: String as PropType<EnumRouterName>,
|
|
|
- },
|
|
|
},
|
|
|
components: {
|
|
|
Buy,
|
|
|
Sell,
|
|
|
BtnList,
|
|
|
LeftOutlined,
|
|
|
- DownOutlined,
|
|
|
- LineChartOutlined,
|
|
|
Listing: defineAsyncComponent(() => import('../listing/index.vue')),
|
|
|
Detail: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
- // [ModalEnum.spot_trade_warehouse_detail]: defineAsyncComponent(() => import('../detail/index.vue')),
|
|
|
- // [ModalEnum.spot_trade_warehouse_post_buying]: defineAsyncComponent(() => import('../post_buying/index.vue')),
|
|
|
},
|
|
|
setup(props, context) {
|
|
|
const time = ref<Moment>(moment(props.selectedRow.deliverymonth)); // string 交收月
|
|
|
const loading = ref<boolean>(false);
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
+
|
|
|
const btnListData: BtnListType[] = [
|
|
|
{ lable: '挂牌求购', code: 'Listing', className: 'operBtn' },
|
|
|
{ lable: '详情', code: 'Detail', className: 'btnDeafault' },
|
|
|
@@ -116,15 +105,7 @@ export default defineComponent({
|
|
|
sellRef.value?.queryTableAction();
|
|
|
};
|
|
|
const { componentId, closeComponent, openComponent } = handleModalComponent(queryFn, ref({}));
|
|
|
- function timeChange() {
|
|
|
- TimerUtils.setTimeout(
|
|
|
- () => {
|
|
|
- queryFn();
|
|
|
- },
|
|
|
- 200,
|
|
|
- 'debounce'
|
|
|
- );
|
|
|
- }
|
|
|
+
|
|
|
TimerUtils.setInterval(
|
|
|
() => {
|
|
|
queryFn();
|
|
|
@@ -143,7 +124,6 @@ export default defineComponent({
|
|
|
componentId,
|
|
|
closeComponent,
|
|
|
openComponent,
|
|
|
- timeChange,
|
|
|
btnListData,
|
|
|
};
|
|
|
},
|