修改供应商审核接口查询
This commit is contained in:
parent
2ea1ad8033
commit
dbb0c117f7
|
|
@ -5,6 +5,7 @@ const { createConfirm } = useMessage();
|
||||||
|
|
||||||
enum Api {
|
enum Api {
|
||||||
list = '/configSuppliersApply/nuConfigSuppliersApply/list',
|
list = '/configSuppliersApply/nuConfigSuppliersApply/list',
|
||||||
|
listPage = '/configSuppliersApply/nuConfigSuppliersApply/listPage',
|
||||||
save = '/configSuppliersApply/nuConfigSuppliersApply/add',
|
save = '/configSuppliersApply/nuConfigSuppliersApply/add',
|
||||||
edit = '/configSuppliersApply/nuConfigSuppliersApply/edit',
|
edit = '/configSuppliersApply/nuConfigSuppliersApply/edit',
|
||||||
deleteOne = '/configSuppliersApply/nuConfigSuppliersApply/delete',
|
deleteOne = '/configSuppliersApply/nuConfigSuppliersApply/delete',
|
||||||
|
|
@ -31,6 +32,7 @@ export const getImportUrl = Api.importExcel;
|
||||||
* @param params
|
* @param params
|
||||||
*/
|
*/
|
||||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||||
|
export const listPage = (params) => defHttp.get({ url: Api.listPage, params });
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除单个
|
* 删除单个
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ import { ref, reactive } from 'vue';
|
||||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||||
import { useListPage } from '/@/hooks/system/useListPage';
|
import { useListPage } from '/@/hooks/system/useListPage';
|
||||||
import { columns, superQuerySchema } from './NuConfigSuppliersApply.data';
|
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 { downloadFile } from '/@/utils/common/renderUtils';
|
||||||
import NuConfigSuppliersApplyModal from './components/NuConfigSuppliersApplyModal.vue'
|
import NuConfigSuppliersApplyModal from './components/NuConfigSuppliersApplyModal.vue'
|
||||||
import { useUserStore } from '/@/store/modules/user';
|
import { useUserStore } from '/@/store/modules/user';
|
||||||
|
|
@ -83,7 +83,7 @@ const userStore = useUserStore();
|
||||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
tableProps: {
|
tableProps: {
|
||||||
title: 'nu_config_suppliers_apply',
|
title: 'nu_config_suppliers_apply',
|
||||||
api: list,
|
api: listPage,
|
||||||
columns,
|
columns,
|
||||||
canResize: false,
|
canResize: false,
|
||||||
useSearchForm: false,
|
useSearchForm: false,
|
||||||
|
|
@ -93,7 +93,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||||
},
|
},
|
||||||
beforeFetch: async (params) => {
|
beforeFetch: async (params) => {
|
||||||
if (!queryParam.applyStatus) {
|
if (!queryParam.applyStatus) {
|
||||||
queryParam.applyStatus = '1,2,3,4,5'
|
// queryParam.applyStatus = '1,2,3,4,5'
|
||||||
}
|
}
|
||||||
return Object.assign(params, queryParam);
|
return Object.assign(params, queryParam);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue