From 8324c778ee797ea5a844614c47d93bdacf3ffeab Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期日, 07 一月 2024 13:17:33 +0800 Subject: [PATCH] 11 --- src/api/project/fund.js | 46 +++++++++++++++++++++++++++++++++++++++------- 1 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/api/project/fund.js b/src/api/project/fund.js index 5deda83..5c20776 100644 --- a/src/api/project/fund.js +++ b/src/api/project/fund.js @@ -47,12 +47,27 @@ data: data }) } +// 璁$畻璐圭敤鐢宠涓� +export function TotalcalculationFn(data) { + return request({ + url: '/project/fund/totaltax', + method: 'post', + data: data + }) +} // 淇敼璐圭敤鐢宠涓� +// export function updateFund(data) { +// return request({ +// url: '/project/fund', +// method: 'put', +// data: data +// }) +// } export function updateFund(data) { return request({ - url: '/project/fund', - method: 'put', + url: '/project/fund/fundEdit', + method: 'post', data: data }) } @@ -60,8 +75,8 @@ // 鍒犻櫎璐圭敤鐢宠涓� export function delFund(id) { return request({ - url: '/project/fund/' + id, - method: 'delete' + url: '/project/fund/remove/' + id, + method: 'get' }) } @@ -137,9 +152,9 @@ } //鎵归噺涓婁紶璐圭敤鐢宠杩涜矾 -export function batchUploadFund(data) { +export function addorupdateFund(data) { return request({ - url: '/project/fund/addnew', + url: '/project/fund/addOrUpdateNew', method: 'post', data: data }) @@ -160,4 +175,21 @@ }) } -// /project/itemexpense/getDetailsByItemId/{itemid} \ No newline at end of file +// /project/itemexpense/getDetailsByItemId/{itemid} + +// 鍚屾鐢宠鍗曞埌鍏变韩琛� +export function addFundSharedInfo(id) { + return request({ + url: '/project/fund/addFundSharedInfo/' + id, + method: 'get' + }) +} + +//鎵嬪姩璁$畻 +export function ManualCalculation(data) { + return request({ + url: '/project/funddetail/calculateTax', + method: 'post', + data: data + }) +} \ No newline at end of file -- Gitblit v1.9.3