diff --git a/src/api/dayPlan/PngAppro/index.ts b/src/api/dayPlan/PngAppro/index.ts index c368ae2..cfc8b1e 100644 --- a/src/api/dayPlan/PngAppro/index.ts +++ b/src/api/dayPlan/PngAppro/index.ts @@ -5,15 +5,78 @@ import { ErrorMessageMode } from '/#/axios'; enum Api { // Page = '/dayPlan/pngAppro/page', Page = '/magic-api/dayPlan/pngApproXs/page', + PageJsz = '/magic-api/dayPlan/pngApproJsz/page', + PageGd = '/magic-api//dayPlan/pngApproGd/page', List = '/dayPlan/pngAppro/list', Info = '/dayPlan/pngAppro/info', LngPngAppro = '/dayPlan/pngAppro', approve = '/dayPlan/pngAppro/approveXS', + approveSZ = '/dayPlan/pngAppro/approveJSZ', + approveGD = '/dayPlan/pngAppro/approveGD', records = '/magic-api/approve/records', compare = '/dayPlan/pngAppro/compare' } +/** + * @description: 审批LngPngAppro + */ +export async function approveLngPngApproSZ(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.approveSZ, + params: lngPngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 审批LngPngAppro + */ +export async function approveLngPngApproGD(lngPngAppro: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.approveGD, + params: lngPngAppro, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 查询LngPngAppro分页列表 + */ +export async function getLngPngApproPageGd(params: LngPngApproPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PageGd, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + +/** + * @description: 查询LngPngAppro分页列表 + */ +export async function getLngPngApproPageJsz(params: LngPngApproPageParams, mode: ErrorMessageMode = 'modal') { + return defHttp.get( + { + url: Api.PageJsz, + params, + }, + { + errorMessageMode: mode, + }, + ); +} + + /** * @description: 获取LngPngAppro信息 */ diff --git a/src/api/dayPlan/PngMeasureSalesPur/index.ts b/src/api/dayPlan/PngMeasureSalesPur/index.ts index 8035293..a15b2f1 100644 --- a/src/api/dayPlan/PngMeasureSalesPur/index.ts +++ b/src/api/dayPlan/PngMeasureSalesPur/index.ts @@ -11,8 +11,37 @@ enum Api { PageAdd = '/magic-api/dayPlan/dayPlanSelectList', Export = '/dayPlan/pngMeasureSalesPur/export', + Cancel = '/dayPlan/pngMeasureSalesPur/cancel', + Reject = '/dayPlan/pngMeasureSalesPur/reject' - +} +/** + * @description: 驳回LngPngMeasureSalesPur + */ +export async function rejectLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Reject, + params: lngPngMeasureSalesPur, + }, + { + errorMessageMode: mode, + }, + ); +} +/** + * @description: 取消LngPngMeasureSalesPur + */ +export async function cancelLngPngMeasureSalesPur(lngPngMeasureSalesPur: Recordable, mode: ErrorMessageMode = 'modal') { + return defHttp.post( + { + url: Api.Cancel, + params: lngPngMeasureSalesPur, + }, + { + errorMessageMode: mode, + }, + ); } /** * @description: 查询LngPngMeasureSalesPur分页列表 diff --git a/src/components/common/approStatusModal.vue b/src/components/common/approStatusModal.vue index b5a6d09..480f409 100644 --- a/src/components/common/approStatusModal.vue +++ b/src/components/common/approStatusModal.vue @@ -1,6 +1,6 @@