|
@@ -40,7 +40,7 @@ import AppFilter from '@pc/components/base/table-filter/index.vue'
|
|
|
import AppPagination from '@pc/components/base/pagination/index.vue'
|
|
import AppPagination from '@pc/components/base/pagination/index.vue'
|
|
|
import AppOperation from '@pc/components/base/operation/index.vue'
|
|
import AppOperation from '@pc/components/base/operation/index.vue'
|
|
|
|
|
|
|
|
-const { getMarketOptions, registerMarketReadyCallback } = useMarket()
|
|
|
|
|
|
|
+const { getMarketOptions } = useMarket()
|
|
|
const buildtypeEnum = useEnum('buildtype') // 单据类型
|
|
const buildtypeEnum = useEnum('buildtype') // 单据类型
|
|
|
const queryParams = shallowRef<Model.ContractSheetReq>()
|
|
const queryParams = shallowRef<Model.ContractSheetReq>()
|
|
|
|
|
|
|
@@ -90,14 +90,14 @@ filterOptons.selectList = [
|
|
|
key: 'marketId',
|
|
key: 'marketId',
|
|
|
label: '市场',
|
|
label: '市场',
|
|
|
locked: true,
|
|
locked: true,
|
|
|
- options: [],
|
|
|
|
|
|
|
+ options: () => getMarketOptions([15, 97, 99], true),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
key: 'isHis',
|
|
key: 'isHis',
|
|
|
label: '查询类型',
|
|
label: '查询类型',
|
|
|
selectedValue: 0,
|
|
selectedValue: 0,
|
|
|
locked: true,
|
|
locked: true,
|
|
|
- options: [
|
|
|
|
|
|
|
+ options: () => [
|
|
|
{ label: '当前', value: 0 },
|
|
{ label: '当前', value: 0 },
|
|
|
{ label: '历史', value: 1 },
|
|
{ label: '历史', value: 1 },
|
|
|
],
|
|
],
|
|
@@ -105,22 +105,22 @@ filterOptons.selectList = [
|
|
|
{
|
|
{
|
|
|
key: 'buyOrSell',
|
|
key: 'buyOrSell',
|
|
|
label: '方向',
|
|
label: '方向',
|
|
|
- options: getBuyOrSellList(),
|
|
|
|
|
|
|
+ options: () => getBuyOrSellList(),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
key: 'buildType',
|
|
key: 'buildType',
|
|
|
label: '类型',
|
|
label: '类型',
|
|
|
- options: [],
|
|
|
|
|
|
|
+ options: () => buildtypeEnum.getEnumOptions(),
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
key: 'tradeTypes',
|
|
key: 'tradeTypes',
|
|
|
label: '成交类别',
|
|
label: '成交类别',
|
|
|
- options: [],
|
|
|
|
|
|
|
+ options: () => [],
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
key: 'feeSearchType',
|
|
key: 'feeSearchType',
|
|
|
label: '手续费',
|
|
label: '手续费',
|
|
|
- options: [],
|
|
|
|
|
|
|
+ options: () => [],
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
|
|
|
|
@@ -147,12 +147,4 @@ const processRequiredParams = (callback: (params: Model.ContractSheetReq) => voi
|
|
|
ElMessage.warning('请选择市场')
|
|
ElMessage.warning('请选择市场')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-registerMarketReadyCallback(() => {
|
|
|
|
|
- filterOptons.selectList[0].options = getMarketOptions([15, 97, 99], true)
|
|
|
|
|
-})
|
|
|
|
|
-
|
|
|
|
|
-buildtypeEnum.registerEnumReadyCallback(() => {
|
|
|
|
|
- filterOptons.selectList[3].options = buildtypeEnum.getEnumOptions()
|
|
|
|
|
-})
|
|
|
|
|
</script>
|
|
</script>
|