From b5c6e17f2e9cb10ed323c1adfa2e449bab307134 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期五, 17 一月 2025 15:15:12 +0800 Subject: [PATCH] 考核结果路由跳转、工单详情权限 --- src/api/platform/calculate-report.js | 32 ++++++++++++++++++++++++++++---- 1 files changed, 28 insertions(+), 4 deletions(-) diff --git a/src/api/platform/calculate-report.js b/src/api/platform/calculate-report.js index dd5da2e..ad1650f 100644 --- a/src/api/platform/calculate-report.js +++ b/src/api/platform/calculate-report.js @@ -18,9 +18,9 @@ } // 閫氳繃id鑾峰彇鏍哥畻鎶ュ憡 -export const getCalculateReportById = (params) => { +export const getCalculateReportById = (contractId,whichYear) => { return axios({ - url: "/calculate-report/" + params, + url: "/calculate-report/" + contractId+"/"+whichYear, method: "GET" }) } @@ -52,10 +52,34 @@ } // 娣诲姞鏍哥畻鎶ュ憡 -export const addCalculateReport = (params) => { +export const addCalculateReport = (data) => { return axios({ url: "/calculate-report/", method: "POST", - data: params + data: data + }) +} + +// 鍥炲~閲戦 +export const backfill = (data) => { + return axios({ + url: "/calculate-report/backfill/money", + method: "POST", + data: data + }) +} + +// 淇敼鍙戝竷鐘舵�� +export const updatePublishStatus = (contractId,whichYear) => { + return axios({ + url: "/calculate-report/status/" + contractId+"/"+whichYear, + method: "PUT", + }) +} +// 淇敼鍙戝竷鐘舵�� + export const updatePublishStatusById = (id,status) => { + return axios({ + url: "/calculate-report/status/detail/"+ id+"/"+status, + method: "PUT", }) } -- Gitblit v1.8.0