Add ChargeManagement and ChargeEdit components; implement charge management functionality with form validation and routing updates

This commit is contained in:
2024-12-23 01:41:29 +05:30
parent 9d72dc6868
commit 44112f91bd
7 changed files with 348 additions and 12 deletions

View File

@@ -18,5 +18,13 @@ export const lockerService = {
keySwap: async (cabinetId, lockerId, reason, oldKey, newKey) => {
return api.patch(`/locker/key`, { cabinetId, lockerId, reason, oldKey, newKey });
},
updateCharges: async (productCode, interestCategory, rent, penalty) => {
return api.patch(`/charge/${productCode}${interestCategory}`, { rent, penalty });
},
getCharges: async (productCode, interestCategory) => {
return api.get(`/charge/${productCode}${interestCategory}`);
}
};