日计划
This commit is contained in:
89
src/api/dayPlan/PngAppro/index.ts
Normal file
89
src/api/dayPlan/PngAppro/index.ts
Normal file
@ -0,0 +1,89 @@
|
||||
import { LngPngApproPageModel, LngPngApproPageParams, LngPngApproPageResult } from './model/PngApproModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/dayPlan/pngAppro/page',
|
||||
List = '/dayPlan/pngAppro/list',
|
||||
Info = '/dayPlan/pngAppro/info',
|
||||
LngPngAppro = '/dayPlan/pngAppro',
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngPngAppro分页列表
|
||||
*/
|
||||
export async function getLngPngApproPage(params: LngPngApproPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngApproPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngPngAppro信息
|
||||
*/
|
||||
export async function getLngPngAppro(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngApproPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngPngAppro
|
||||
*/
|
||||
export async function addLngPngAppro(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngPngAppro,
|
||||
params: lngPngAppro,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngPngAppro
|
||||
*/
|
||||
export async function updateLngPngAppro(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngPngAppro,
|
||||
params: lngPngAppro,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngPngAppro(批量删除)
|
||||
*/
|
||||
export async function deleteLngPngAppro(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngPngAppro,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
249
src/api/dayPlan/PngAppro/model/PngApproModel.ts
Normal file
249
src/api/dayPlan/PngAppro/model/PngApproModel.ts
Normal file
@ -0,0 +1,249 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngPngAppro分页参数 模型
|
||||
*/
|
||||
export interface LngPngApproPageParams extends BasicPageParams {
|
||||
id: string;
|
||||
|
||||
verNo: string;
|
||||
|
||||
datePlanStart: string;
|
||||
datePlanEnd: string;
|
||||
|
||||
cuCode: string;
|
||||
|
||||
demandId: string;
|
||||
|
||||
qtyDemandGj: string;
|
||||
|
||||
qtyDemandM3: string;
|
||||
|
||||
qtySalesGj: string;
|
||||
|
||||
qtySalesM3: string;
|
||||
|
||||
rateK: string;
|
||||
|
||||
rateMp: string;
|
||||
|
||||
rateS: string;
|
||||
|
||||
lastVerSign: string;
|
||||
|
||||
alterSign: string;
|
||||
|
||||
note: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPngAppro分页返回值模型
|
||||
*/
|
||||
export interface LngPngApproPageModel {
|
||||
id: string;
|
||||
|
||||
verNo: string;
|
||||
|
||||
datePlan: string;
|
||||
|
||||
cuCode: string;
|
||||
|
||||
demandId: string;
|
||||
|
||||
qtyDemandGj: string;
|
||||
|
||||
qtyDemandM3: string;
|
||||
|
||||
qtySalesGj: string;
|
||||
|
||||
qtySalesM3: string;
|
||||
|
||||
rateK: string;
|
||||
|
||||
rateMp: string;
|
||||
|
||||
rateS: string;
|
||||
|
||||
lastVerSign: string;
|
||||
|
||||
alterSign: string;
|
||||
|
||||
note: string;
|
||||
|
||||
approCode: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPngAppro表类型
|
||||
*/
|
||||
export interface LngPngApproModel {
|
||||
id: number;
|
||||
|
||||
demandId: number;
|
||||
|
||||
demandOrgId: number;
|
||||
|
||||
verNo: number;
|
||||
|
||||
lastVerSign: string;
|
||||
|
||||
alterSign: string;
|
||||
|
||||
datePlan: string;
|
||||
|
||||
cuCode: string;
|
||||
|
||||
comId: number;
|
||||
|
||||
ksId: number;
|
||||
|
||||
ksppId: number;
|
||||
|
||||
pointDelyCode: string;
|
||||
|
||||
ownLineSign: string;
|
||||
|
||||
powerCont: number;
|
||||
|
||||
powerPeak: number;
|
||||
|
||||
powerStop: number;
|
||||
|
||||
powerOther: number;
|
||||
|
||||
rateM3Gj: number;
|
||||
|
||||
qtyContractGj: number;
|
||||
|
||||
qtyContractM3: number;
|
||||
|
||||
qtyPlanGj: number;
|
||||
|
||||
qtyPlanM3: number;
|
||||
|
||||
qtyDemandGj: number;
|
||||
|
||||
qtyDemandM3: number;
|
||||
|
||||
qtySalesGj: number;
|
||||
|
||||
qtySalesM3: number;
|
||||
|
||||
periodTypeCode: string;
|
||||
|
||||
qtyMonthContractGj: number;
|
||||
|
||||
qtyMonthPlanGj: number;
|
||||
|
||||
qtyMonthSalesGj: number;
|
||||
|
||||
rateK: number;
|
||||
|
||||
rateMp: number;
|
||||
|
||||
rateS: number;
|
||||
|
||||
priceSalesGj: number;
|
||||
|
||||
priceSalesM3: number;
|
||||
|
||||
amountSales: number;
|
||||
|
||||
approCode: string;
|
||||
|
||||
reply: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
|
||||
lngPngApproPurList?: LngPngApproPurModel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPngApproPur表类型
|
||||
*/
|
||||
export interface LngPngApproPurModel {
|
||||
id: number;
|
||||
|
||||
approId: number;
|
||||
|
||||
demandId: number;
|
||||
|
||||
demandPurId: number;
|
||||
|
||||
datePlan: string;
|
||||
|
||||
comId: number;
|
||||
|
||||
suCode: string;
|
||||
|
||||
kpId: number;
|
||||
|
||||
kpppId: number;
|
||||
|
||||
pointUpCode: string;
|
||||
|
||||
staCode: string;
|
||||
|
||||
ownSign: string;
|
||||
|
||||
onlineSign: string;
|
||||
|
||||
transSign: string;
|
||||
|
||||
rateM3Gj: number;
|
||||
|
||||
qtyDemandGj: number;
|
||||
|
||||
qtyDemandM3: number;
|
||||
|
||||
qtySalesGj: number;
|
||||
|
||||
qtySalesM3: number;
|
||||
|
||||
pricePurGj: number;
|
||||
|
||||
pricePurM3: number;
|
||||
|
||||
amountPur: number;
|
||||
|
||||
sort: number;
|
||||
|
||||
addSign: string;
|
||||
|
||||
note: string;
|
||||
|
||||
createUserId: number;
|
||||
|
||||
createDate: string;
|
||||
|
||||
modifyUserId: number;
|
||||
|
||||
modifyDate: string;
|
||||
|
||||
tenantId: number;
|
||||
|
||||
deptId: number;
|
||||
|
||||
ruleUserId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPngAppro分页返回值结构
|
||||
*/
|
||||
export type LngPngApproPageResult = BasicFetchResult<LngPngApproPageModel>;
|
||||
Reference in New Issue
Block a user