feat: 新建采购申请、个人中心菜单
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
import type {
|
||||
ProcurementApplicationVO,
|
||||
ProcurementApplicationForm,
|
||||
ProcurementApplicationQuery,
|
||||
} from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationList(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return requestClient.get<PageResult<ProcurementApplicationVO>>(
|
||||
'/domain/procurementApplication/list',
|
||||
{ params },
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出资产申请列表
|
||||
* @param params
|
||||
* @returns 资产申请列表
|
||||
*/
|
||||
export function procurementApplicationExport(
|
||||
params?: ProcurementApplicationQuery,
|
||||
) {
|
||||
return commonExport('/domain/procurementApplication/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询资产申请详情
|
||||
* @param id id
|
||||
* @returns 资产申请详情
|
||||
*/
|
||||
export function procurementApplicationInfo(id: ID) {
|
||||
return requestClient.get<ProcurementApplicationVO>(
|
||||
`/domain/procurementApplication/${id}`,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationAdd(data: ProcurementApplicationForm) {
|
||||
return requestClient.postWithMsg<void>(
|
||||
'/domain/procurementApplication',
|
||||
data,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新资产申请
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationUpdate(data: ProcurementApplicationForm) {
|
||||
return requestClient.putWithMsg<void>('/domain/procurementApplication', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除资产申请
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function procurementApplicationRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(
|
||||
`/domain/procurementApplication/${id}`,
|
||||
);
|
||||
}
|
197
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
197
apps/web-antd/src/api/property/assetManage/procurementApplication/model.d.ts
vendored
Normal file
@@ -0,0 +1,197 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface ProcurementApplicationVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue: string;
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
}
|
||||
|
||||
export interface ProcurementApplicationQuery extends PageQuery {
|
||||
/**
|
||||
* 标题
|
||||
*/
|
||||
title?: string;
|
||||
|
||||
/**
|
||||
* 申请人id
|
||||
*/
|
||||
applicat?: number;
|
||||
|
||||
/**
|
||||
* 申请人手机号
|
||||
*/
|
||||
phone?: string;
|
||||
|
||||
/**
|
||||
* 供应商id
|
||||
*/
|
||||
supplier?: number;
|
||||
|
||||
/**
|
||||
* 资产id
|
||||
*/
|
||||
capitalId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购方式
|
||||
*/
|
||||
buyType?: string;
|
||||
|
||||
/**
|
||||
* 采购单价
|
||||
*/
|
||||
buyUnitPrice?: number;
|
||||
|
||||
/**
|
||||
* 采购金额
|
||||
*/
|
||||
buyAmount?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: string;
|
||||
|
||||
/**
|
||||
* 申请时间
|
||||
*/
|
||||
applicationTime?: string;
|
||||
|
||||
/**
|
||||
* 搜索值
|
||||
*/
|
||||
searchValue?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user