|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<!-- 单据查询 成交单-->
|
|
|
<div class="platinum_document_query_success">
|
|
|
- <Filter @search="updateColumn" />
|
|
|
+ <Filter @search="search" />
|
|
|
<contextMenu :contextMenuList="firstBtn">
|
|
|
<a-table :columns="columns"
|
|
|
class="topTable hiddenFirstCol"
|
|
|
@@ -22,10 +22,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, queryTableList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
+import { getUserId } from '@/services/bus/account';
|
|
|
+import { queryTradeDetail } from '@/services/go/ermcp/qhj';
|
|
|
+import { QueryTradeDetailReq } from '@/services/go/ermcp/qhj/interface';
|
|
|
import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
|
|
|
import Filter from '../../compoments/filter/index.vue';
|
|
|
-import { queryTableList } from './setup';
|
|
|
// import ControlModal from './compoments/controlModal/index.vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
@@ -33,23 +35,37 @@ export default defineComponent({
|
|
|
components: { Filter, contextMenu, BtnList },
|
|
|
setup() {
|
|
|
// 表头数据
|
|
|
- const { columns, registerColumn, updateColumn } = getTableColumns();
|
|
|
+ const { columns, registerColumn } = getTableColumns();
|
|
|
// 表格事件
|
|
|
const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
// 表格操作按钮列表
|
|
|
const [firstBtn] = _getBtnList('platinum_document_query_success', false).value;
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList();
|
|
|
+ function search(value: any) {
|
|
|
+ const { includesub, goodsid, filtername, userid, ordertime, userinfotype } = value;
|
|
|
+ const len = ordertime.length;
|
|
|
+ const param: QueryTradeDetailReq = {
|
|
|
+ userid: userid[0] ? userid[0] : getUserId(),
|
|
|
+ userinfotype: userinfotype[0] ? userinfotype[0] : 0,
|
|
|
+ filtername: filtername[0],
|
|
|
+ begindate: len > 1 ? ordertime[0] : '',
|
|
|
+ enddate: len > 1 ? ordertime[len - 1] : '',
|
|
|
+ goodsid: goodsid[0],
|
|
|
+ includesub,
|
|
|
+ };
|
|
|
+ queryTable(queryTradeDetail, param);
|
|
|
+ }
|
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
|
- queryTable();
|
|
|
+ queryTable(queryTradeDetail, { userid: getUserId() });
|
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_qhj_deal_order', ['tradetime', 'accountid', 'goodsid']);
|
|
|
});
|
|
|
|
|
|
return {
|
|
|
columns,
|
|
|
- updateColumn,
|
|
|
+ search,
|
|
|
expandedRowKeys,
|
|
|
selectedRow,
|
|
|
Rowclick,
|