diff --git a/src/api/dayPlan/Demand/index.ts b/src/api/dayPlan/Demand/index.ts index 6fd2ccf..e706a2a 100644 --- a/src/api/dayPlan/Demand/index.ts +++ b/src/api/dayPlan/Demand/index.ts @@ -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( + { + url: Api.saveAndSubmit, + params: lngPngDemand, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandRate(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.Rate, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandPurList(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PurList, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} +export async function getLngPngDemandContractQty(params, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.ContractQty, + params: params, + }, + { + errorMessageMode: mode, + }, + ); +} export async function getLngPngDemandPointDely(params, mode: ErrorMessageMode = 'modal') { return defHttp.get( { diff --git a/src/components/common/ContractDemandListModal.vue b/src/components/common/ContractDemandListModal.vue index 585560b..968b666 100644 --- a/src/components/common/ContractDemandListModal.vue +++ b/src/components/common/ContractDemandListModal.vue @@ -1,7 +1,6 @@