priceTerms代码

This commit is contained in:
2025-10-20 18:09:26 +08:00
parent bcdaac263e
commit fd01bc3eae
7 changed files with 1392 additions and 0 deletions

View File

@ -0,0 +1,87 @@
import { LngBPriceTermPageModel, LngBPriceTermPageParams, LngBPriceTermPageResult } from './model/PriceTermsModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
Page = '/mdm/priceTerms/page',
List = '/mdm/priceTerms/list',
Info = '/mdm/priceTerms/info',
LngBPriceTerm = '/mdm/priceTerms',
}
/**
* @description: 查询LngBPriceTerm分页列表
*/
export async function getLngBPriceTermPage(params: LngBPriceTermPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngBPriceTermPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngBPriceTerm信息
*/
export async function getLngBPriceTerm(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngBPriceTermPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngBPriceTerm
*/
export async function addLngBPriceTerm(lngBPriceTerm: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngBPriceTerm,
params: lngBPriceTerm,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngBPriceTerm
*/
export async function updateLngBPriceTerm(lngBPriceTerm: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngBPriceTerm,
params: lngBPriceTerm,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngBPriceTerm批量删除
*/
export async function deleteLngBPriceTerm(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngBPriceTerm,
data: ids,
},
{
errorMessageMode: mode,
},
);
}

View File

@ -0,0 +1,83 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
* @description: LngBPriceTerm分页参数 模型
*/
export interface LngBPriceTermPageParams extends BasicPageParams {
code: string;
fullName: string;
freightSign: string;
insuranceSign: string;
sort: string;
valid: string;
note: string;
}
/**
* @description: LngBPriceTerm分页返回值模型
*/
export interface LngBPriceTermPageModel {
id: string;
code: string;
fullName: string;
freightSign: string;
insuranceSign: string;
sort: string;
valid: string;
note: string;
}
/**
* @description: LngBPriceTerm表类型
*/
export interface LngBPriceTermModel {
id: number;
code: string;
fullName: string;
freightSign: string;
insuranceSign: string;
sort: number;
valid: string;
note: string;
createUserId: number;
createDate: string;
modifyUserId: number;
modifyDate: string;
deleteMark: number;
tenantId: number;
deptId: number;
ruleUserId: number;
}
/**
* @description: LngBPriceTerm分页返回值结构
*/
export type LngBPriceTermPageResult = BasicFetchResult<LngBPriceTermPageModel>;