客户需求
This commit is contained in:
@ -10,12 +10,59 @@ enum Api {
|
||||
LngPngDemand = '/dayPlan/demand',
|
||||
ContractList ='/magic-api/dayPlan/queryPngDemandContractList',
|
||||
PointDelyList ='/magic-api/dayPlan/queryPngDemandPointDely',
|
||||
|
||||
ContractQty = '/magic-api/dayPlan/queryPngDemandContractQty',
|
||||
PurList = '/magic-api/dayPlan/queryPngDemandPurList',
|
||||
Rate = '/magic-api/dayPlan/queryPngDemandRate',
|
||||
saveAndSubmit = '/dayPlan/demand/saveAndSubmit',
|
||||
Export = '/dayPlan/demand/export',
|
||||
|
||||
|
||||
DataLog = '/dayPlan/demand/datalog',
|
||||
}
|
||||
export async function submitLngPngDemand(lngPngDemand: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.saveAndSubmit,
|
||||
params: lngPngDemand,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getLngPngDemandRate(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngDemandPageModel>(
|
||||
{
|
||||
url: Api.Rate,
|
||||
params: params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getLngPngDemandPurList(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngDemandPageModel>(
|
||||
{
|
||||
url: Api.PurList,
|
||||
params: params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getLngPngDemandContractQty(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngDemandPageModel>(
|
||||
{
|
||||
url: Api.ContractQty,
|
||||
params: params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
export async function getLngPngDemandPointDely(params, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngPngDemandPageModel>(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user