diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts index 9e6ea39..82add4a 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersApply.api.ts @@ -5,6 +5,7 @@ const { createConfirm } = useMessage(); enum Api { list = '/configSuppliersApply/nuConfigSuppliersApply/list', + listPage = '/configSuppliersApply/nuConfigSuppliersApply/listPage', save = '/configSuppliersApply/nuConfigSuppliersApply/add', edit = '/configSuppliersApply/nuConfigSuppliersApply/edit', deleteOne = '/configSuppliersApply/nuConfigSuppliersApply/delete', @@ -31,6 +32,7 @@ export const getImportUrl = Api.importExcel; * @param params */ export const list = (params) => defHttp.get({ url: Api.list, params }); +export const listPage = (params) => defHttp.get({ url: Api.listPage, params }); /** * 删除单个 diff --git a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersAuditList.vue b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersAuditList.vue index 4622a52..f34bece 100644 --- a/src/views/invoicing/configSuppliersApply/NuConfigSuppliersAuditList.vue +++ b/src/views/invoicing/configSuppliersApply/NuConfigSuppliersAuditList.vue @@ -66,7 +66,7 @@ import { ref, reactive } from 'vue'; import { BasicTable, useTable, TableAction } from '/@/components/Table'; import { useListPage } from '/@/hooks/system/useListPage'; import { columns, superQuerySchema } from './NuConfigSuppliersApply.data'; -import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuConfigSuppliersApply.api'; +import { listPage, deleteOne, batchDelete, getImportUrl, getExportUrl } from './NuConfigSuppliersApply.api'; import { downloadFile } from '/@/utils/common/renderUtils'; import NuConfigSuppliersApplyModal from './components/NuConfigSuppliersApplyModal.vue' import { useUserStore } from '/@/store/modules/user'; @@ -83,7 +83,7 @@ const userStore = useUserStore(); const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ tableProps: { title: 'nu_config_suppliers_apply', - api: list, + api: listPage, columns, canResize: false, useSearchForm: false, @@ -93,7 +93,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({ }, beforeFetch: async (params) => { if (!queryParam.applyStatus) { - queryParam.applyStatus = '1,2,3,4,5' + // queryParam.applyStatus = '1,2,3,4,5' } return Object.assign(params, queryParam); },