客户需求

This commit is contained in:
‘huanghaiixia’
2026-01-16 17:28:00 +08:00
parent 620d3be942
commit e97ba3bcfb
20 changed files with 3222 additions and 239 deletions

View File

@ -0,0 +1,115 @@
import { LngPngDemandPageModel, LngPngDemandPageParams, LngPngDemandPageResult } from './model/DemandModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
Page = '/dayPlan/demand/page',
List = '/dayPlan/demand/list',
Info = '/dayPlan/demand/info',
LngPngDemand = '/dayPlan/demand',
Export = '/dayPlan/demand/export',
DataLog = '/dayPlan/demand/datalog',
}
/**
* @description: 查询LngPngDemand分页列表
*/
export async function getLngPngDemandPage(params: LngPngDemandPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPngDemandPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngPngDemand信息
*/
export async function getLngPngDemand(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPngDemandPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngPngDemand
*/
export async function addLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngPngDemand,
params: lngPngDemand,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngPngDemand
*/
export async function updateLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngPngDemand,
params: lngPngDemand,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngPngDemand批量删除
*/
export async function deleteLngPngDemand(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngPngDemand,
data: ids,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 导出LngPngDemand
*/
export async function exportLngPngDemand(
params?: object,
mode: ErrorMessageMode = 'modal'
) {
return defHttp.download(
{
url: Api.Export,
method: 'GET',
params,
responseType: 'blob',
},
{
errorMessageMode: mode,
},
);
}

View File

@ -0,0 +1,66 @@
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
/**
* @description: LngPngDemand分页参数 模型
*/
export interface LngPngDemandPageParams extends BasicPageParams {
verNo: string;
datePlan: string;
pointDelyCode: string;
qtyDemandGj: string;
qtyDemandM3: string;
priceSalesGj: string;
priceSalesM3: string;
ksId: string;
id: string;
orgId: string;
note: string;
reply: string;
}
/**
* @description: LngPngDemand分页返回值模型
*/
export interface LngPngDemandPageModel {
id: string;
verNo: string;
datePlan: string;
pointDelyCode: string;
qtyDemandGj: string;
qtyDemandM3: string;
priceSalesGj: string;
priceSalesM3: string;
ksId: string;
note: string;
reply: string;
orgId: string;
}
0;
/**
* @description: LngPngDemand分页返回值结构
*/
export type LngPngDemandPageResult = BasicFetchResult<LngPngDemandPageModel>;

View File

@ -8,12 +8,54 @@ enum Api {
List = '/dayPlan/pngAppro/list',
Info = '/dayPlan/pngAppro/info',
LngPngAppro = '/dayPlan/pngAppro',
approve = '/dayPlan/pngAppro/approveXS',
records = '/magic-api/approve/records',
compare = '/dayPlan/pngAppro/compare'
}
/**
* @description: 获取LngPngAppro信息
*/
export async function getLngPngApproCompare(demandOrgId: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPngApproPageModel>(
{
url: Api.compare,
params: { demandOrgId },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 审批LngPngAppro
*/
export async function approveLngPngAppro(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.approve,
params: lngPngAppro,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngPngAppro审批记录
*/
export async function getLngPngApproRecords(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPngApproPageModel>(
{
url: Api.records,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 查询LngPngAppro分页列表
*/

View File

@ -8,12 +8,26 @@ enum Api {
List = '/dayPlan/pngMeasureSalesPur/list',
Info = '/dayPlan/pngMeasureSalesPur/info',
LngPngMeasureSalesPur = '/dayPlan/pngMeasureSalesPur',
PageAdd = '/magic-api/dayPlan/dayPlanSelectList',
Export = '/dayPlan/pngMeasureSalesPur/export',
}
/**
* @description: 查询LngPngMeasureSalesPur分页列表
*/
export async function getLngPngMeasureSalesPurPageAdd(params: LngPngMeasureSalesPurPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPngMeasureSalesPurPageResult>(
{
url: Api.PageAdd,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 查询LngPngMeasureSalesPur分页列表