From c2486044121750d274d40aac2e65b47d4c25b5c9 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期一, 22 四月 2024 18:08:15 +0800 Subject: [PATCH] 11 --- src/api/project/reimbursementdetail.js | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/api/project/reimbursementdetail.js b/src/api/project/reimbursementdetail.js index 6132cd9..cdd5b70 100644 --- a/src/api/project/reimbursementdetail.js +++ b/src/api/project/reimbursementdetail.js @@ -17,8 +17,6 @@ }) } - - // /project/reimbursement/getRBDetailList/{rbid} // 鑾峰彇鍝嶅簲鐨刣etails鍒楄〃 export function getReimbursementdetaillist(id) { @@ -28,6 +26,15 @@ }) } +// /project/reimbursement/getRBDetailList/{rbid} +// 淇敼details鍒楄〃 +export function addOrupdateReimbursementdetaillist(data) { + return request({ + url: '/project/reimbursementdetail/updateRDlList', + method: 'post', + data: data + }) +} // /project/reimbursement/getMaxId @@ -45,17 +52,24 @@ export function addReimbursementdetail(data) { return request({ - url: '/project/reimbursementdetail', + url: '/project/reimbursementdetail/add', method: 'post', data: data }) } // 淇敼鎶ラ攢鐢宠鏄庣粏 +// export function updateReimbursementdetail(data) { +// return request({ +// url: '/project/reimbursementdetail', +// method: 'put', +// data: data +// }) +// } export function updateReimbursementdetail(data) { return request({ - url: '/project/reimbursementdetail', - method: 'put', + url: '/project/reimbursementdetail/reimbursementdetailEdit', + method: 'post', data: data }) } @@ -64,7 +78,7 @@ export function delReimbursementdetail(id) { return request({ url: '/project/reimbursementdetail/deleteDetail/' + id, - method: 'delete' + method: 'get', }) } @@ -87,7 +101,7 @@ export function delReimbursementdetailrbid(rbid) { return request({ url: '/project/reimbursementdetail/deleteByRBId/' + rbid, - method: 'delete' + method: 'get', }) } -- Gitblit v1.9.3