|
|
@@ -3,7 +3,7 @@
|
|
|
<div class="filterTable">
|
|
|
<div class="filter-custom-table">
|
|
|
<a-tree-select v-model:value="selectedFT"
|
|
|
- @change="changeFT"
|
|
|
+ @select="changeFT"
|
|
|
style="width: 200px"
|
|
|
:dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
|
|
|
:tree-data="FtDeliveryGoods"
|
|
|
@@ -65,6 +65,7 @@ import { Goods } from '@/services/go/ermcp/goodsInfo/interface';
|
|
|
import { handleIs, setGoodsPrice } from '../buy-sell-market/setup';
|
|
|
import { BuyOrSell, TradeMode } from '@/common/constants/enumCommon';
|
|
|
import { getMarketByTradeMode } from '@/services/bus/market';
|
|
|
+import TimerUtils from '@/utils/timer/timerUtil';
|
|
|
|
|
|
const ALL = TreeSelect.SHOW_ALL;
|
|
|
|
|
|
@@ -91,6 +92,17 @@ export default defineComponent({
|
|
|
// 仓单要素
|
|
|
const wrLsit = ref<SelectList[]>([]);
|
|
|
function changeFT(value: number, label: any, extra: any) {
|
|
|
+ const children = label?.children;
|
|
|
+ if (Array.isArray(children) && children.length) {
|
|
|
+ TimerUtils.setTimeout(
|
|
|
+ () => {
|
|
|
+ selectedFT.value = undefined;
|
|
|
+ },
|
|
|
+ 100,
|
|
|
+ 'filterTimer'
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ }
|
|
|
queryWrStandardFactoryItem({ wrstandardid: value }).then((res) => {
|
|
|
const result: SelectList[] = [];
|
|
|
res.forEach((el) => {
|
|
|
@@ -99,6 +111,7 @@ export default defineComponent({
|
|
|
wrLsit.value = result;
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
// 全部期货合约
|
|
|
const goodsList = getGoodsListByTrade(TradeMode.ListingAndSelection);
|
|
|
const selectedGoods = ref<Goods>();
|