priceTerms代码
This commit is contained in:
87
src/api/mdm/PriceTerms/index.ts
Normal file
87
src/api/mdm/PriceTerms/index.ts
Normal 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,
|
||||
},
|
||||
);
|
||||
}
|
||||
83
src/api/mdm/PriceTerms/model/PriceTermsModel.ts
Normal file
83
src/api/mdm/PriceTerms/model/PriceTermsModel.ts
Normal 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>;
|
||||
Reference in New Issue
Block a user