日计划
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>;
|
||||
114
src/api/dayPlan/PngMeasureSalesPur/index.ts
Normal file
114
src/api/dayPlan/PngMeasureSalesPur/index.ts
Normal file
@ -0,0 +1,114 @@
|
||||
import { LngPngMeasureSalesPurPageModel, LngPngMeasureSalesPurPageParams, LngPngMeasureSalesPurPageResult } from './model/PngMeasureSalesPurModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/dayPlan/pngMeasureSalesPur/page',
|
||||
List = '/dayPlan/pngMeasureSalesPur/list',
|
||||
Info = '/dayPlan/pngMeasureSalesPur/info',
|
||||
LngPngMeasureSalesPur = '/dayPlan/pngMeasureSalesPur',
|
||||
|
||||
|
||||
Export = '/dayPlan/pngMeasureSalesPur/export',
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngPngMeasureSalesPur分页列表
|
||||
*/
|
||||
export async function getLngPngMeasureSalesPurPage(params: LngPngMeasureSalesPurPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngMeasureSalesPurPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngPngMeasureSalesPur信息
|
||||
*/
|
||||
export async function getLngPngMeasureSalesPur(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngMeasureSalesPurPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngPngMeasureSalesPur
|
||||
*/
|
||||
export async function addLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngPngMeasureSalesPur,
|
||||
params: lngPngMeasureSalesPur,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngPngMeasureSalesPur
|
||||
*/
|
||||
export async function updateLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngPngMeasureSalesPur,
|
||||
params: lngPngMeasureSalesPur,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngPngMeasureSalesPur(批量删除)
|
||||
*/
|
||||
export async function deleteLngPngMeasureSalesPur(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngPngMeasureSalesPur,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @description: 导出LngPngMeasureSalesPur
|
||||
*/
|
||||
export async function exportLngPngMeasureSalesPur(
|
||||
params?: object,
|
||||
mode: ErrorMessageMode = 'modal'
|
||||
) {
|
||||
return defHttp.download(
|
||||
{
|
||||
url: Api.Export,
|
||||
method: 'GET',
|
||||
params,
|
||||
responseType: 'blob',
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngPngMeasureSalesPur分页参数 模型
|
||||
*/
|
||||
export interface LngPngMeasureSalesPurPageParams extends BasicPageParams {
|
||||
id: string;
|
||||
|
||||
datePlan: string;
|
||||
|
||||
dateMea: string;
|
||||
|
||||
suCode: string;
|
||||
|
||||
pointUpCode: string;
|
||||
|
||||
pointDelyCode: string;
|
||||
|
||||
qtySalesGj: string;
|
||||
|
||||
qtySalesM3: string;
|
||||
|
||||
qtyMeaGj: string;
|
||||
|
||||
qtyMeaM3: string;
|
||||
|
||||
rateM3Gj: string;
|
||||
|
||||
cfmCuUserId: string;
|
||||
|
||||
cfmCuUserTime: string;
|
||||
|
||||
cfmEmpId: string;
|
||||
|
||||
cfmEmpTime: string;
|
||||
|
||||
kpId: string;
|
||||
|
||||
transSign: string;
|
||||
|
||||
createDate: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngPngMeasureSalesPur分页返回值模型
|
||||
*/
|
||||
export interface LngPngMeasureSalesPurPageModel {
|
||||
id: string;
|
||||
|
||||
datePlan: string;
|
||||
|
||||
dateMea: string;
|
||||
|
||||
suCode: string;
|
||||
|
||||
pointUpCode: string;
|
||||
|
||||
pointDelyCode: string;
|
||||
|
||||
qtySalesGj: string;
|
||||
|
||||
qtySalesM3: string;
|
||||
|
||||
qtyMeaGj: string;
|
||||
|
||||
qtyMeaM3: string;
|
||||
|
||||
rateM3Gj: string;
|
||||
|
||||
cfmCuUserId: string;
|
||||
|
||||
cfmCuUserTime: string;
|
||||
|
||||
cfmEmpId: string;
|
||||
|
||||
cfmEmpTime: string;
|
||||
|
||||
kpId: string;
|
||||
|
||||
transSign: string;
|
||||
|
||||
createDate: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
0;
|
||||
|
||||
/**
|
||||
* @description: LngPngMeasureSalesPur分页返回值结构
|
||||
*/
|
||||
export type LngPngMeasureSalesPurPageResult = BasicFetchResult<LngPngMeasureSalesPurPageModel>;
|
||||
Reference in New Issue
Block a user