代码生成
This commit is contained in:
90
src/api/price/PricePurPngApp/index.ts
Normal file
90
src/api/price/PricePurPngApp/index.ts
Normal file
@ -0,0 +1,90 @@
|
||||
import { LngPricePurPngAppPageModel, LngPricePurPngAppPageParams, LngPricePurPngAppPageResult } from './model/PricePurPngAppModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/price/pricePurPngApp/page',
|
||||
List = '/price/pricePurPngApp/list',
|
||||
Info = '/price/pricePurPngApp/info',
|
||||
LngPricePurPngApp = '/price/pricePurPngApp',
|
||||
|
||||
|
||||
|
||||
|
||||
DataLog = '/price/pricePurPngApp/datalog',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngPricePurPngApp分页列表
|
||||
*/
|
||||
export async function getLngPricePurPngAppPage(params: LngPricePurPngAppPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPricePurPngAppPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngPricePurPngApp信息
|
||||
*/
|
||||
export async function getLngPricePurPngApp(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPricePurPngAppPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngPricePurPngApp
|
||||
*/
|
||||
export async function addLngPricePurPngApp(lngPricePurPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngPricePurPngApp,
|
||||
params: lngPricePurPngApp,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngPricePurPngApp
|
||||
*/
|
||||
export async function updateLngPricePurPngApp(lngPricePurPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngPricePurPngApp,
|
||||
params: lngPricePurPngApp,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngPricePurPngApp(批量删除)
|
||||
*/
|
||||
export async function deleteLngPricePurPngApp(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngPricePurPngApp,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
165
src/api/price/PricePurPngApp/model/PricePurPngAppModel.ts
Normal file
165
src/api/price/PricePurPngApp/model/PricePurPngAppModel.ts
Normal file
@ -0,0 +1,165 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngApp分页参数 模型
|
||||
*/
|
||||
export interface LngPricePurPngAppPageParams extends BasicPageParams {
|
||||
id: string;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
comId: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngApp分页返回值模型
|
||||
*/
|
||||
export interface LngPricePurPngAppPageModel {
|
||||
id: string;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
comId: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngApp表类型
|
||||
*/
|
||||
export interface LngPricePurPngAppModel {
|
||||
id: number;
|
||||
|
||||
comId: number;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
dateSubmit: string;
|
||||
|
||||
approCode: string;
|
||||
|
||||
timeAppro: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
|
||||
lngPricePurPngAppSuList?: LngPricePurPngAppSuModel;
|
||||
|
||||
lngPricePurPngAppSuDtlList?: LngPricePurPngAppSuDtlModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngAppSu表类型
|
||||
*/
|
||||
export interface LngPricePurPngAppSuModel {
|
||||
id: number;
|
||||
|
||||
pppaId: number;
|
||||
|
||||
suCode: string;
|
||||
|
||||
kId: number;
|
||||
|
||||
kpppId: number;
|
||||
|
||||
pointUpCode: string;
|
||||
|
||||
kpppsId: number;
|
||||
|
||||
pointDelyCode: string;
|
||||
|
||||
transSign: string;
|
||||
|
||||
uomCode: string;
|
||||
|
||||
dateFrom: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngAppSuDtl表类型
|
||||
*/
|
||||
export interface LngPricePurPngAppSuDtlModel {
|
||||
id: number;
|
||||
|
||||
pppasId: number;
|
||||
|
||||
priceCode: string;
|
||||
|
||||
sort: number;
|
||||
|
||||
rateM3Gj: number;
|
||||
|
||||
rateQtyGj: number;
|
||||
|
||||
rateQtyM3: number;
|
||||
|
||||
priceGj: number;
|
||||
|
||||
priceM3: number;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPricePurPngApp分页返回值结构
|
||||
*/
|
||||
export type LngPricePurPngAppPageResult = BasicFetchResult<LngPricePurPngAppPageModel>;
|
||||
90
src/api/price/PriceSalesPngApp/index.ts
Normal file
90
src/api/price/PriceSalesPngApp/index.ts
Normal file
@ -0,0 +1,90 @@
|
||||
import { LngPriceSalesPngAppPageModel, LngPriceSalesPngAppPageParams, LngPriceSalesPngAppPageResult } from './model/PriceSalesPngAppModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/price/priceSalesPngApp/page',
|
||||
List = '/price/priceSalesPngApp/list',
|
||||
Info = '/price/priceSalesPngApp/info',
|
||||
LngPriceSalesPngApp = '/price/priceSalesPngApp',
|
||||
|
||||
|
||||
|
||||
|
||||
DataLog = '/price/priceSalesPngApp/datalog',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngPriceSalesPngApp分页列表
|
||||
*/
|
||||
export async function getLngPriceSalesPngAppPage(params: LngPriceSalesPngAppPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPriceSalesPngAppPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngPriceSalesPngApp信息
|
||||
*/
|
||||
export async function getLngPriceSalesPngApp(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPriceSalesPngAppPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngPriceSalesPngApp
|
||||
*/
|
||||
export async function addLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngPriceSalesPngApp,
|
||||
params: lngPriceSalesPngApp,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngPriceSalesPngApp
|
||||
*/
|
||||
export async function updateLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngPriceSalesPngApp,
|
||||
params: lngPriceSalesPngApp,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngPriceSalesPngApp(批量删除)
|
||||
*/
|
||||
export async function deleteLngPriceSalesPngApp(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngPriceSalesPngApp,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
159
src/api/price/PriceSalesPngApp/model/PriceSalesPngAppModel.ts
Normal file
159
src/api/price/PriceSalesPngApp/model/PriceSalesPngAppModel.ts
Normal file
@ -0,0 +1,159 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngApp分页参数 模型
|
||||
*/
|
||||
export interface LngPriceSalesPngAppPageParams extends BasicPageParams {
|
||||
id: string;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
comId: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngApp分页返回值模型
|
||||
*/
|
||||
export interface LngPriceSalesPngAppPageModel {
|
||||
id: string;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
comId: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngApp表类型
|
||||
*/
|
||||
export interface LngPriceSalesPngAppModel {
|
||||
id: number;
|
||||
|
||||
comId: number;
|
||||
|
||||
appName: string;
|
||||
|
||||
priceTypeCode: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
dateSubmit: string;
|
||||
|
||||
approCode: string;
|
||||
|
||||
timeAppro: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
|
||||
lngPriceSalesPngAppCuList?: LngPriceSalesPngAppCuModel;
|
||||
|
||||
lngPriceSalesPngAppCuDtlList?: LngPriceSalesPngAppCuDtlModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngAppCu表类型
|
||||
*/
|
||||
export interface LngPriceSalesPngAppCuModel {
|
||||
id: number;
|
||||
|
||||
pspaId: number;
|
||||
|
||||
cuCode: string;
|
||||
|
||||
kId: number;
|
||||
|
||||
ksppId: number;
|
||||
|
||||
pointDelyCode: string;
|
||||
|
||||
uomCode: string;
|
||||
|
||||
dateFrom: string;
|
||||
|
||||
priceDesc: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngAppCuDtl表类型
|
||||
*/
|
||||
export interface LngPriceSalesPngAppCuDtlModel {
|
||||
id: number;
|
||||
|
||||
pspacId: number;
|
||||
|
||||
priceCode: string;
|
||||
|
||||
sort: number;
|
||||
|
||||
rateM3Gj: number;
|
||||
|
||||
rateQtyGj: number;
|
||||
|
||||
rateQtyM3: number;
|
||||
|
||||
priceGj: number;
|
||||
|
||||
priceM3: number;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPriceSalesPngApp分页返回值结构
|
||||
*/
|
||||
export type LngPriceSalesPngAppPageResult = BasicFetchResult<LngPriceSalesPngAppPageModel>;
|
||||
Reference in New Issue
Block a user