|
|
@@ -51,60 +51,18 @@ export default defineComponent({
|
|
|
};
|
|
|
queryTable(queryOrderQuote, param);
|
|
|
};
|
|
|
- Bus.$on('spotTrade', queryTableAction);
|
|
|
// 表格通用逻辑
|
|
|
const param: ComposeTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
|
menuType: EnumRouterName.warehouse_receipt_trade_price,
|
|
|
- tableName: 'table_pcweb_spot_trade_warehouse_price',
|
|
|
+ tableName: 'table_pcweb_financing_manage_order_transaction',
|
|
|
tableFilterKey: [],
|
|
|
isDetail: false,
|
|
|
};
|
|
|
- const {
|
|
|
- contextMenu,
|
|
|
- openContext,
|
|
|
- closeContext, // 右键
|
|
|
- columns,
|
|
|
- registerColumn,
|
|
|
- updateColumn, // 表头
|
|
|
- expandedRowKeys,
|
|
|
- selectedRow,
|
|
|
- Rowclick, // 表格折腾面板数据与单击、双击事件
|
|
|
- componentId,
|
|
|
- closeComponent, // 控制异步组件
|
|
|
- firstBtn, // 表格按钮
|
|
|
- } = handleComposeTable<WrOrderQuote>(param);
|
|
|
- function search(value: Object) {
|
|
|
- const param: QueryOrderQuoteReq = {
|
|
|
- wrpricetype: 1,
|
|
|
- haswr: 1,
|
|
|
- };
|
|
|
- Object.assign(param, value);
|
|
|
- queryTable(queryOrderQuote, param);
|
|
|
- }
|
|
|
- function buyOpen(value: any, goods: any) {
|
|
|
- componentId.value = 'postBuying';
|
|
|
- selectedRow.value = value;
|
|
|
- }
|
|
|
-
|
|
|
return {
|
|
|
- contextMenu,
|
|
|
- openContext,
|
|
|
- closeContext, // 右键
|
|
|
- columns,
|
|
|
- registerColumn,
|
|
|
- updateColumn, // 表头
|
|
|
- expandedRowKeys,
|
|
|
- selectedRow,
|
|
|
- Rowclick, // 表格折腾面板数据与单击、双击事件
|
|
|
- componentId,
|
|
|
- closeComponent, // 控制异步组件
|
|
|
- firstBtn, // 表格按钮
|
|
|
- name: EnumRouterName.warehouse_receipt_trade_price,
|
|
|
+ ...handleComposeTable<WrOrderQuote>(param),
|
|
|
loading,
|
|
|
tableList,
|
|
|
- search,
|
|
|
- buyOpen,
|
|
|
};
|
|
|
},
|
|
|
});
|