From acdc3555ac68488f2a4691f5c2c0b1bdb45ae7c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98huanghaiixia=E2=80=99?= <980486410@.com> Date: Thu, 22 Jan 2026 17:31:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/dayPlan/Demand/index.ts | 49 ++- .../common/ContractDemandListModal.vue | 5 +- ...Modal.vue => pointDelyDemandListModal.vue} | 7 +- src/components/common/rejectReplyModal.vue | 59 +++ .../dayPlan/Demand/components/basicForm.vue | 356 +++++++++++------- .../dayPlan/Demand/components/createForm.vue | 170 ++++----- src/views/dayPlan/Demand/index.vue | 16 +- .../dayPlan/PngAppro/components/basicForm.vue | 98 +++-- .../PngAppro/components/createForm.vue | 15 +- src/views/dayPlan/PngAppro/indexJsz.vue | 30 +- .../dayPlan/PngMeasureSalesPur/index.vue | 6 +- 11 files changed, 527 insertions(+), 284 deletions(-) rename src/components/common/{upLoadDemandListModal.vue => pointDelyDemandListModal.vue} (89%) create mode 100644 src/components/common/rejectReplyModal.vue 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 @@