чеыредная правка точек

This commit is contained in:
2025-12-07 21:17:37 +03:00
parent beb29e3dd7
commit 3f2541aacb
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ async def post_requests(
return response return response
@router.post("/action/", summary="Запрос на перемещение инструмента") @router.post("/action", summary="Запрос на перемещение инструмента")
async def post_requests( async def post_requests(
request_data: dict = Depends(requestDict), request_data: dict = Depends(requestDict),
): ):
@@ -109,7 +109,7 @@ async def post_requests(
return resonse return resonse
@router.post("/toolkit/", summary="Запрос остатка инструмента") @router.post("/toolkit", summary="Запрос остатка инструмента")
async def toolkit_request( async def toolkit_request(
request_data: dict = Depends(requestDict), request_data: dict = Depends(requestDict),
): ):
+2 -2
View File
@@ -1009,7 +1009,7 @@ async function initializeToolboxTable(data, toolboxOwn, quantityMonitoring) {
async function getToolkitStocks(toolkitId) { async function getToolkitStocks(toolkitId) {
const userId = userData.id; const userId = userData.id;
const allToolboxes = accessData.view_all_toolboxes; const allToolboxes = accessData.view_all_toolboxes;
const resp = await apiRequest('/stocks/toolkit/', { toolkitId, userId, allToolboxes }); const resp = await apiRequest('/stocks/toolkit', { toolkitId, userId, allToolboxes });
return resp.data; return resp.data;
} }
@@ -1297,7 +1297,7 @@ async function showOperationModal(operation, selectedItem) {
async function actionRequest(operation, quantity, comment, selectedItem) { async function actionRequest(operation, quantity, comment, selectedItem) {
const action = { operation, quantity, comment, selectedItem }; const action = { operation, quantity, comment, selectedItem };
const sendData = { userData, accessData, action }; const sendData = { userData, accessData, action };
const resp = await apiRequest('/stocks/action/', sendData); const resp = await apiRequest('/stocks/action', sendData);
if (resp.status == 'ok') { if (resp.status == 'ok') {
return true return true
} else { } else {