huangbin 4 gadi atpakaļ
vecāks
revīzija
74698231fd

+ 4 - 5
src/views/market/spot_trade/components/filter/index.vue

@@ -51,9 +51,8 @@
 
 <script lang="ts">
 import FilterOption from '@/common/components/filter/index.vue';
-import { defineComponent, PropType } from 'vue';
+import { defineComponent, onMounted, PropType } from 'vue';
 import { ref } from 'vue';
-import { handlMiddleGoods } from '@/views/report/setup';
 import { initData } from '@/common/methods';
 import { handleFtDeliveryGoods, handleWarehouse } from '../../setup';
 import { queryWrStandardFactoryItem } from '@/services/go/wrtrade';
@@ -62,7 +61,6 @@ import { message, TreeSelect } from 'ant-design-vue';
 import { EnumRouterName } from '@/common/constants/enumRouterName';
 import { Moment } from 'moment';
 import moment from 'moment';
-import { handleGoods } from '@/views/order/spot_warran/components/spot_warrant_spot_details/components/listing/setup';
 import { addSubscribeQuotation, removeSubscribeQuotation } from '@/services/socket/quota';
 import { v4 } from 'uuid';
 import { getGoodsList, getQuoteDayInfoByCodeFindPrice } from '@/services/bus/goods';
@@ -126,6 +124,9 @@ export default defineComponent({
             const arr = [{ exchangeCode: 250, goodsCode: goods!.goodscode, subState: 0 }];
             addSubscribeQuotation(uuid, arr);
         }
+        onMounted(() => {
+            removeSubscribeQuotation(uuid);
+        });
         // 交收月
         const time = ref<Moment>(); // string 交收月
         function search(isQuery: boolean) {
@@ -214,8 +215,6 @@ export default defineComponent({
             goodsChange,
             isWR,
             isFloat,
-            // findGoodsCode,
-            // handleGoodsChange,
         };
     },
 });