From 8513831fa1149e725208c6eabafab54c7e945b7c Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Mon, 22 Sep 2025 11:57:34 -0300 Subject: [PATCH] Debug --- js/main.js | 35 +++++++++++++------ .../financial_movements_form_upload.php | 4 ++- 2 files changed, 27 insertions(+), 12 deletions(-) diff --git a/js/main.js b/js/main.js index 07e8664..0d1cb27 100644 --- a/js/main.js +++ b/js/main.js @@ -1207,7 +1207,7 @@ function uploadFiles(folder, table, action, documents_categorys_id, indexing, fi }else if(parseInt(result.financial_movements_id) > 0){/** Caso seja um documento do financeiro */ /** Monta a informação do arquivo */ - badge = ''+nameFile[j]+'      Remover Confirmar'; + badge = ''+nameFile[j]+'      Remover Confirmar'; }else{/** Caso não seja uma indexação de arquivos, apenas carrego o nome do mesmo na tela */ @@ -1500,19 +1500,32 @@ function formSearchDocs(documents_categorys_id=null, description=null){ /** Confirma a gravação de um arquivo de uma determinado serviço */ function confirmFile(folder, table, action, id, file, target){ - /** Parâmetros de envio */ - let qs = { + /** Pega a categoria do documento */ + let documents_categorys_id = $('#documents_categorys_id').val(); - FOLDER : folder, - ACTION : action, - TABLE : table, - id : id, - file : file + /** Verifica se a categoria já foi selecionada */ + if(documents_categorys_id > 0){ - }; + /** Parâmetros de envio */ + let qs = { - /** Envia a solicitação */ - request(qs, '', true, '', 0, target, ' Aguarde... ', 'random', 'circle', 'sm', true); + FOLDER : folder, + ACTION : action, + TABLE : table, + id : id, + file : file, + documents_categorys_id : $('#documents_categorys_id').val(), + + }; + + /** Envia a solicitação */ + request(qs, '', true, '', 0, target, ' Aguarde... ', 'random', 'circle', 'sm', true); + + }else{ + + $('#message').html(''); + + } } diff --git a/vendor/view/financial_movements/financial_movements_form_upload.php b/vendor/view/financial_movements/financial_movements_form_upload.php index 1f46987..d2a50ea 100644 --- a/vendor/view/financial_movements/financial_movements_form_upload.php +++ b/vendor/view/financial_movements/financial_movements_form_upload.php @@ -31,7 +31,7 @@ try{ ?> -
+
@@ -67,6 +67,8 @@ try{ +
+