Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sistema_mcid
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marcio neto
sistema_mcid
Commits
cfc2c995
Commit
cfc2c995
authored
Jan 15, 2024
by
sandroresende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inclusao dsc_resposta_demanda
parent
cec2483e
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
678 additions
and
242 deletions
+678
-242
ApiController.php
app/Http/Controllers/ApiController.php
+7
-7
DemandaController.php
app/Http/Controllers/Mod_codem/DemandaController.php
+3
-1
DebenturesReidiController.php
...ollers/Mod_debentures_reidi/DebenturesReidiController.php
+134
-0
Projetos.php
app/Mod_debentures_reidi/Projetos.php
+2
-2
SetorProjeto.php
app/Mod_debentures_reidi/SetorProjeto.php
+2
-2
TipoProjeto.php
app/Mod_debentures_reidi/TipoProjeto.php
+2
-2
ViewProjetosDebenturesReidi.php
app/Mod_debentures_reidi/ViewProjetosDebenturesReidi.php
+3
-3
app.js
public/js/app.js
+222
-83
app.js
resources/assets/js/app.js
+202
-85
CadastroDemanda.vue
resources/assets/js/components/mod_codem/CadastroDemanda.vue
+17
-2
FiltroDebenturesReidi.vue
...components/mod_debentures_reidi/FiltroDebenturesReidi.vue
+21
-6
ProjetoDebenturesReidi.vue
...omponents/mod_debentures_reidi/ProjetoDebenturesReidi.vue
+22
-12
nav_sistema.blade.php
resources/views/layouts/nav/nav_sistema.blade.php
+2
-2
dados_demanda.blade.php
resources/views/modulo_codem/dados_demanda.blade.php
+5
-5
Consultar_projeto.blade.php
...views/modulo_debendures_reidi/Consultar_projeto.blade.php
+5
-5
Dados_projeto.blade.php
...ces/views/modulo_debendures_reidi/Dados_projeto.blade.php
+14
-10
Lista_projeto.blade.php
...ces/views/modulo_debendures_reidi/Lista_projeto.blade.php
+6
-6
api.php
routes/api.php
+4
-4
web.php
routes/web.php
+5
-5
No files found.
app/Http/Controllers/ApiController.php
View file @
cfc2c995
...
...
@@ -73,9 +73,9 @@ use App\Mod_codem\TipoInteressado;
use
App\Mod_codem\RelacaoDemanda
;
use
App\Mod_codem\SituacaoDemanda
;
use
App\Mod_codem\TipoDocumento
;
use
App\Mod_deben
d
ures_reidi\SetorProjeto
;
use
App\Mod_deben
d
ures_reidi\TipoProjeto
;
use
App\Mod_deben
dures_reidi\ViewProjetosDebend
uresReidi
;
use
App\Mod_deben
t
ures_reidi\SetorProjeto
;
use
App\Mod_deben
t
ures_reidi\TipoProjeto
;
use
App\Mod_deben
tures_reidi\ViewProjetosdebent
uresReidi
;
use
App\Propostas\ViewSysRelatorioGeralDiscricionarioSistema
;
use
App\Setor
;
use
App\User
;
...
...
@@ -612,19 +612,19 @@ class ApiController extends Controller
return
User
::
where
(
'setor_id'
,
$setor
)
->
orderBy
(
'name'
)
->
get
();
}
public
function
buscarEstados
Debend
ures
()
public
function
buscarEstados
debent
ures
()
{
return
ViewProjetos
Debend
uresReidi
::
select
(
'uf_id'
,
'sg_uf'
)
->
groupBy
(
'uf_id'
,
'sg_uf'
)
->
orderBy
(
'sg_uf'
)
->
get
();
return
ViewProjetos
debent
uresReidi
::
select
(
'uf_id'
,
'sg_uf'
)
->
groupBy
(
'uf_id'
,
'sg_uf'
)
->
orderBy
(
'sg_uf'
)
->
get
();
}
public
function
buscarTipoProjeto
Debend
ures
()
public
function
buscarTipoProjeto
debent
ures
()
{
return
TipoProjeto
::
orderBy
(
'txt_tipo_projeto'
)
->
get
();
}
public
function
buscarSetorProjeto
Debend
ures
()
public
function
buscarSetorProjeto
debent
ures
()
{
return
SetorProjeto
::
orderBy
(
'txt_setor_projeto'
)
->
get
();
...
...
app/Http/Controllers/Mod_codem/DemandaController.php
View file @
cfc2c995
...
...
@@ -73,6 +73,7 @@ class DemandaController extends Controller
$demanda
->
dte_previsao_conclusao
=
$dte_previsao_conclusao
;
$demanda
->
dte_conclusao
=
$request
->
dte_conclusao
;
$demanda
->
txt_descricao_demanda
=
$request
->
txt_descricao_demanda
;
$demanda
->
dsc_resposta_demanda
=
$request
->
dsc_resposta_demanda
;
$demanda
->
situacao_id
=
1
;
$demanda
->
setor_id
=
$request
->
setor
;
$demanda
->
user_id
=
Auth
::
user
()
->
id
;
...
...
@@ -191,6 +192,7 @@ class DemandaController extends Controller
$demanda
->
txt_descricao_demanda
=
$request
->
txt_descricao_demanda
;
$demanda
->
prioridade_id
=
$request
->
prioridade
;
$demanda
->
dte_conclusao
=
$request
->
dte_conclusao
;
$demanda
->
dsc_resposta_demanda
=
$request
->
dsc_resposta_demanda
;
if
(
$request
->
tipo_demanda
==
2
)
{
$demanda
->
tipo_interessado_id
=
$request
->
tipoInteressado
;
...
...
@@ -241,7 +243,7 @@ class DemandaController extends Controller
public
function
pesquisarDemanda
(
Request
$request
)
{
return
$request
->
all
();
//
return $request->all();
$where
=
[];
...
...
app/Http/Controllers/Mod_deben
dures_reidi/Debend
uresReidiController.php
→
app/Http/Controllers/Mod_deben
tures_reidi/Debent
uresReidiController.php
View file @
cfc2c995
<?php
namespace
App\Http\Controllers\Mod_deben
d
ures_reidi
;
namespace
App\Http\Controllers\Mod_deben
t
ures_reidi
;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
App\Mod_deben
d
ures_reidi\Projetos
;
use
App\Mod_deben
dures_reidi\ViewProjetosDebend
uresReidi
;
use
App\Mod_deben
t
ures_reidi\Projetos
;
use
App\Mod_deben
tures_reidi\ViewProjetosdebent
uresReidi
;
use
App\User
;
use
DB
;
...
...
@@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Auth;
class
Debend
uresReidiController
extends
Controller
class
debent
uresReidiController
extends
Controller
{
/**
* Create a new controller instance.
...
...
@@ -36,7 +36,7 @@ class DebenduresReidiController extends Controller
public
function
consultarProjeto
()
{
$usuario
=
Auth
::
user
();
return
view
(
'modulo_deben
d
ures_reidi.Consultar_projeto'
,
compact
(
'usuario'
));
return
view
(
'modulo_deben
t
ures_reidi.Consultar_projeto'
,
compact
(
'usuario'
));
}
public
function
pesquisarProjeto
(
Request
$request
)
...
...
@@ -58,30 +58,77 @@ class DebenduresReidiController extends Controller
if
(
$request
->
tipo_projeto
)
{
$where
[]
=
[
'tipo_projeto_id'
,
$request
->
tipo_projeto
];
}
if
(
$request
->
bln_contabilizar_valores
)
{
if
(
$request
->
bln_contabilizar_valores
==
'0'
)
{
$where
=
[
'bln_contabilizar_valores'
,
false
];
}
else
{
$where
[]
=
[
'bln_contabilizar_valores'
,
true
];
}
}
$projetos
=
ViewProjetosdebenturesReidi
::
where
(
$where
)
->
orderBy
(
'sg_uf'
)
->
get
();
$projetos
=
ViewProjetosDebenduresReidi
::
where
(
$where
)
->
orderBy
(
'sg_uf'
)
->
get
();
if
(
count
(
$projetos
)
==
0
)
{
flash
()
->
erro
(
"Erro"
,
"Não existe projeto para os parametros selecionados."
);
return
back
();
}
return
view
(
'modulo_deben
d
ures_reidi.Lista_projeto'
,
compact
(
'usuario'
,
'projetos'
));
return
view
(
'modulo_deben
t
ures_reidi.Lista_projeto'
,
compact
(
'usuario'
,
'projetos'
));
return
view
(
'modulo_deben
d
ures_reidi.consultar_projeto'
,
compact
(
'usuario'
));
return
view
(
'modulo_deben
t
ures_reidi.consultar_projeto'
,
compact
(
'usuario'
));
}
public
function
dadosProjeto
(
Projetos
$projeto
)
{
$projeto
->
load
(
'tipoProjeto'
,
'setorProjeto'
);
return
view
(
'modulo_deben
d
ures_reidi.dados_projeto'
,
compact
(
'projeto'
));
return
view
(
'modulo_deben
t
ures_reidi.dados_projeto'
,
compact
(
'projeto'
));
}
public
function
updateProjeto
(
Request
$request
)
{
return
$request
->
all
();
DB
::
beginTransaction
();
$projeto
=
Projetos
::
find
(
$request
->
projeto_id
);
if
(
$projeto
->
tipo_projeto_id
==
1
)
{
$projeto
->
vlr_projeto
=
$request
->
vlr_projeto
;
if
(
$request
->
bln_contabilizar_valores
==
'0'
)
{
$projeto
->
bln_contabilizar_valores
=
false
;
}
else
{
$projeto
->
bln_contabilizar_valores
=
true
;
}
}
if
(
$projeto
->
tipo_projeto_id
==
2
)
{
$projeto
->
vlr_projeto_sem_reidi
=
$request
->
vlr_projeto_sem_reidi
;
$projeto
->
vlr_projeto_com_reidi
=
$request
->
vlr_projeto_com_reidi
;
$projeto
->
vlr_projeto
=
$request
->
vlr_projeto_sem_reidi
+
$request
->
vlr_projeto_com_reidi
;
}
$projeto
->
num_portaria
=
$request
->
portaria
;
$projeto
->
vlr_estimado
=
$request
->
vlr_estimado
;
$salvoSucesso
=
$projeto
->
update
();
if
(
$salvoSucesso
)
{
DB
::
commit
();
flash
()
->
sucesso
(
"Sucesso"
,
"Dados do projeto atualizados com sucesso!"
);
return
redirect
()
->
back
();
// return redirect("/debentures_reidi/projeto/" . $projeto->id);
}
else
{
DB
::
rollBack
();
flash
()
->
erro
(
"Erro"
,
"Não foi possível atualizar os dados do projeto."
);
return
back
();
}
}
}
app/Mod_deben
d
ures_reidi/Projetos.php
→
app/Mod_deben
t
ures_reidi/Projetos.php
View file @
cfc2c995
<?php
namespace
App\Mod_deben
d
ures_reidi
;
namespace
App\Mod_deben
t
ures_reidi
;
use
Illuminate\Database\Eloquent\Model
;
...
...
@@ -10,7 +10,7 @@ class Projetos extends Model
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_deben
d
ures_reidi.tab_projetos'
;
protected
$table
=
'mcid_deben
t
ures_reidi.tab_projetos'
;
public
$timestamps
=
true
;
// tabela não possui coluna de data de criação/atualização
...
...
app/Mod_deben
d
ures_reidi/SetorProjeto.php
→
app/Mod_deben
t
ures_reidi/SetorProjeto.php
View file @
cfc2c995
<?php
namespace
App\Mod_deben
d
ures_reidi
;
namespace
App\Mod_deben
t
ures_reidi
;
use
Illuminate\Database\Eloquent\Model
;
...
...
@@ -10,7 +10,7 @@ class SetorProjeto extends Model
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_deben
d
ures_reidi.opc_setor_projeto'
;
protected
$table
=
'mcid_deben
t
ures_reidi.opc_setor_projeto'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
...
...
app/Mod_deben
d
ures_reidi/TipoProjeto.php
→
app/Mod_deben
t
ures_reidi/TipoProjeto.php
View file @
cfc2c995
<?php
namespace
App\Mod_deben
d
ures_reidi
;
namespace
App\Mod_deben
t
ures_reidi
;
use
Illuminate\Database\Eloquent\Model
;
...
...
@@ -10,7 +10,7 @@ class TipoProjeto extends Model
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_deben
d
ures_reidi.opc_tipo_projeto'
;
protected
$table
=
'mcid_deben
t
ures_reidi.opc_tipo_projeto'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
...
...
app/Mod_deben
dures_reidi/ViewProjetosDebend
uresReidi.php
→
app/Mod_deben
tures_reidi/ViewProjetosDebent
uresReidi.php
View file @
cfc2c995
<?php
namespace
App\Mod_deben
d
ures_reidi
;
namespace
App\Mod_deben
t
ures_reidi
;
use
Illuminate\Database\Eloquent\Model
;
class
ViewProjetos
Debend
uresReidi
extends
Model
class
ViewProjetos
debent
uresReidi
extends
Model
{
protected
$connection
=
'pgsql_corp'
;
protected
$table
=
'mcid_deben
dures_reidi.view_projetos_debend
ures_reidi'
;
protected
$table
=
'mcid_deben
tures_reidi.view_projetos_debent
ures_reidi'
;
public
$timestamps
=
false
;
// tabela não possui coluna de data de criação/atualização
...
...
public/js/app.js
View file @
cfc2c995
This diff is collapsed.
Click to expand it.
resources/assets/js/app.js
View file @
cfc2c995
This diff is collapsed.
Click to expand it.
resources/assets/js/components/mod_codem/CadastroDemanda.vue
View file @
cfc2c995
...
...
@@ -220,6 +220,14 @@
v-model=
"dscDemanda"
rows=
"10"
required
></textarea>
</div>
<div
class=
"form-group br-textarea"
>
<label
for=
"dsc_resposta_demanda"
class=
"control-label"
>
Resposta da Demanda
</label>
<textarea
class=
"form-control"
id=
"dsc_resposta_demanda"
name=
"dsc_resposta_demanda"
v-model=
"dsc_resposta_demanda"
rows=
"10"
></textarea>
</div>
<div
class=
"form-group"
>
<div
class=
"row"
>
<div
class=
"col col-xs-12 col-sm-5"
>
...
...
@@ -252,9 +260,11 @@
<div
class=
"col col-xs-12 col-sm-5 br-input"
>
<label
for=
"dte_conclusao"
class=
"control-label"
>
Data de Conclusão
</label>
<input
id=
"dte_conclusao"
type=
"date"
class=
"form-control"
name=
"dte_conclusao"
:value=
"this.dte_conclusao"
:required=
"this.situacaoDemanda == 7"
>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
...
...
@@ -307,7 +317,9 @@
area
:
''
,
areas
:
''
,
dscDemanda
:
''
,
bln_documento_sei
:
''
bln_documento_sei
:
''
,
dsc_resposta_demanda
:
''
,
dte_resposta_demanda
:
''
}
},
computed
:{
...
...
@@ -565,6 +577,9 @@
this
.
dte_conclusao
=
this
.
dados
.
dte_conclusao
;
this
.
dsc_resposta_demanda
=
this
.
dados
.
dsc_resposta_demanda
;
this
.
tipoInteressado
=
this
.
dados
.
tipo_interessado_id
;
...
...
resources/assets/js/components/mod_deben
dures_reidi/FiltroDebend
uresReidi.vue
→
resources/assets/js/components/mod_deben
tures_reidi/FiltroDebent
uresReidi.vue
View file @
cfc2c995
...
...
@@ -13,7 +13,7 @@
<option
v-for=
"estado in estados"
v-text=
"estado.sg_uf"
:value=
"estado.sg_uf"
:key=
"estado.sg_uf"
></option>
</select>
</div>
<div
class=
"column col-xs-12 col-md-
5
"
>
<div
class=
"column col-xs-12 col-md-
4
"
>
<label
for=
"tipo_projeto"
>
Tipo de Projeto
</label>
<select
id=
"tipo_projeto"
...
...
@@ -24,7 +24,7 @@
<option
v-for=
"tipo_projeto in tipo_projetos"
v-text=
"tipo_projeto.txt_tipo_projeto"
:value=
"tipo_projeto.id"
:key=
"tipo_projeto.id"
></option>
</select>
</div>
<div
class=
"column col-xs-12 col-md-
5
"
>
<div
class=
"column col-xs-12 col-md-
4
"
>
<label
for=
"setor_projeto"
>
Setor de Projeto
</label>
<select
id=
"setor_projeto"
...
...
@@ -34,7 +34,21 @@
<option
value=
""
>
Escolha um setor projeto:
</option>
<option
v-for=
"setor_projeto in setor_projetos"
v-text=
"setor_projeto.txt_setor_projeto"
:value=
"setor_projeto.id"
:key=
"setor_projeto.id"
></option>
</select>
</div>
</div>
<div
class=
"column col-xs-12 col-md-2"
>
<label
for=
"bln_contabilizar_valores"
>
Contabilizar Valores
</label>
<select
id=
"bln_contabilizar_valores"
class=
"form-select br-select"
name=
"bln_contabilizar_valores"
v-model=
"bln_contabilizar_valores"
>
<option
value=
""
>
Escolha uma opção:
</option>
<option
value=
"1"
>
Sim
</option>
<option
value=
"0"
>
Não
</option>
</select>
</div>
</div>
</div>
</
template
>
...
...
@@ -50,6 +64,7 @@
tipo_projeto
:
''
,
setor_projetos
:
''
,
setor_projeto
:
''
,
bln_contabilizar_valores
:
''
}
},
methods
:{
...
...
@@ -78,7 +93,7 @@
}
,
mounted
()
{
//console.log(this.form._token);
axios
.
get
(
this
.
url
+
'/api/deben
d
ures/ufs'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/deben
t
ures/ufs'
).
then
(
resposta
=>
{
//console.log(resposta.data);
this
.
estados
=
resposta
.
data
;
this
.
estado
=
''
;
...
...
@@ -89,7 +104,7 @@
//tipo projeto
axios
.
get
(
this
.
url
+
'/api/deben
d
ures/tipo_projeto'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/deben
t
ures/tipo_projeto'
).
then
(
resposta
=>
{
//console.log(resposta.data);
this
.
tipo_projetos
=
resposta
.
data
;
}).
catch
(
erro
=>
{
...
...
@@ -97,7 +112,7 @@
})
//setor projeto
axios
.
get
(
this
.
url
+
'/api/deben
d
ures/setor_projeto'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/deben
t
ures/setor_projeto'
).
then
(
resposta
=>
{
//console.log(resposta.data);
this
.
setor_projetos
=
resposta
.
data
;
}).
catch
(
erro
=>
{
...
...
resources/assets/js/components/mod_deben
dures_reidi/ProjetoDebend
uresReidi.vue
→
resources/assets/js/components/mod_deben
tures_reidi/ProjetoDebent
uresReidi.vue
View file @
cfc2c995
...
...
@@ -71,7 +71,7 @@
class=
"form-control"
name=
"portaria"
v-model=
"portaria"
:disabled=
"this.dados.num_portaria"
>
>
</div>
<div
class=
"col col-xs-12 col-sm-6 br-input"
>
<label
for=
"data_portaria"
class=
"control-label"
>
Data da Portaria
</label>
...
...
@@ -84,7 +84,7 @@
</div>
</div>
<div
class=
"row"
v-if=
"this.tipo_projeto == 1"
>
<div
class=
"col col-xs-12 col-sm-
5
br-input"
>
<div
class=
"col col-xs-12 col-sm-
4
br-input"
>
<label
for=
"vlr_projeto"
class=
"control-label"
>
Valor do projeto
</label>
<input
id=
"vlr_projeto"
type=
"text"
...
...
@@ -92,7 +92,7 @@
name=
"vlr_projeto"
v-model=
"vlr_projeto"
>
</div>
<div
class=
"col col-xs-12 col-sm-
5
br-input"
>
<div
class=
"col col-xs-12 col-sm-
4
br-input"
>
<label
for=
"vlr_estimado"
class=
"control-label"
>
Valor Estimado
</label>
<input
id=
"vlr_estimado"
type=
"text"
...
...
@@ -100,7 +100,7 @@
name=
"vlr_estimado"
v-model=
"vlr_estimado"
>
</div>
<div
class=
"column col-xs-12 col-md-
2
"
>
<div
class=
"column col-xs-12 col-md-
4
"
>
<label
for=
"bln_contabilizar_valores"
>
Contabilizar Valores
</label>
<select
id=
"bln_contabilizar_valores"
...
...
@@ -116,7 +116,16 @@
</div>
</div>
<div
class=
"row"
v-if=
"this.tipo_projeto == 2"
>
<div
class=
"col col-xs-12 col-sm-6 br-input"
>
<div
class=
"col col-xs-12 col-sm-4 br-input"
>
<label
for=
"vlr_projeto"
class=
"control-label"
>
Valor do projeto
</label>
<input
id=
"vlr_projeto"
type=
"text"
class=
"form-control"
name=
"vlr_projeto"
disabled
:value=
"parseFloat(this.vlr_projeto_sem_reidi) + parseFloat(this.vlr_projeto_com_reidi)"
>
</div>
<div
class=
"col col-xs-12 col-sm-4 br-input"
>
<label
for=
"vlr_projeto_com_reidi"
class=
"control-label"
>
Valor do projeto com Reidi
</label>
<input
id=
"vlr_projeto_com_reidi"
type=
"text"
...
...
@@ -124,7 +133,7 @@
name=
"vlr_projeto_com_reidi"
v-model=
"vlr_projeto_com_reidi"
>
</div>
<div
class=
"col col-xs-12 col-sm-
6
br-input"
>
<div
class=
"col col-xs-12 col-sm-
4
br-input"
>
<label
for=
"vlr_projeto_sem_reidi"
class=
"control-label"
>
Valor do projeto sem Reidi
</label>
<input
id=
"vlr_projeto_sem_reidi"
type=
"text"
...
...
@@ -183,6 +192,7 @@
this
.
textoEscolhaMunicipio
=
"Filtre o Estado"
}
},
formatarData
(
data
)
{
if
(
data
)
{
const
novaData
=
data
.
toLocaleDateString
(
'pt-BR'
);
...
...
@@ -211,7 +221,7 @@
//tipo projeto
axios
.
get
(
this
.
url
+
'/api/deben
d
ures/tipo_projeto'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/deben
t
ures/tipo_projeto'
).
then
(
resposta
=>
{
//console.log(resposta.data);
this
.
tipo_projetos
=
resposta
.
data
;
}).
catch
(
erro
=>
{
...
...
@@ -219,7 +229,7 @@
})
//setor projeto
axios
.
get
(
this
.
url
+
'/api/deben
d
ures/setor_projeto'
).
then
(
resposta
=>
{
axios
.
get
(
this
.
url
+
'/api/deben
t
ures/setor_projeto'
).
then
(
resposta
=>
{
//console.log(resposta.data);
this
.
setor_projetos
=
resposta
.
data
;
}).
catch
(
erro
=>
{
...
...
@@ -236,10 +246,10 @@
this
.
nome_projeto
=
this
.
dados
.
txt_nome_projeto
;
this
.
portaria
=
this
.
dados
.
num_portaria
;
this
.
data_portaria
=
this
.
dados
.
dte_portaria
;
this
.
vlr_projeto
=
this
.
formatarValor
(
this
.
dados
.
vlr_projeto
,
2
)
;
this
.
vlr_projeto_sem_reidi
=
this
.
formatarValor
(
this
.
dados
.
vlr_projeto_sem_reidi
,
2
)
;
this
.
vlr_projeto_com_reidi
=
this
.
formatarValor
(
this
.
dados
.
vlr_projeto_com_reidi
,
2
)
;
this
.
vlr_estimado
=
this
.
formatarValor
(
this
.
dados
.
vlr_estimado
,
2
)
;
this
.
vlr_projeto
=
this
.
dados
.
vlr_projeto
;
this
.
vlr_projeto_sem_reidi
=
this
.
dados
.
vlr_projeto_sem_reidi
;
this
.
vlr_projeto_com_reidi
=
this
.
dados
.
vlr_projeto_com_reidi
;
this
.
vlr_estimado
=
this
.
dados
.
vlr_estimado
;
if
(
this
.
dados
.
bln_contabilizar_valores
){
this
.
bln_contabilizar_valores
=
1
;
}
else
{
...
...
resources/views/layouts/nav/nav_sistema.blade.php
View file @
cfc2c995
...
...
@@ -46,10 +46,10 @@
<!-- inicio menu Documentos-->
<div
class=
"menu-folder"
><a
class=
"menu-item"
href=
"javascript: void(0)"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-text fa-lg"
></i></span><span
class=
"content"
>
Debend
ures e Reidi
</span></a>
<i
class=
"bi bi-journal-text fa-lg"
></i></span><span
class=
"content"
>
debent
ures e Reidi
</span></a>
<ul>
<li><a
class=
"menu-item"
href=
"{{ url('/deben
d
ures_reidi/projetos/consultar') }}"
title=
"Consultar Projeto"
><span
class=
"icon"
>
<li><a
class=
"menu-item"
href=
"{{ url('/deben
t
ures_reidi/projetos/consultar') }}"
title=
"Consultar Projeto"
><span
class=
"icon"
>
<i
class=
"bi bi-journal-arrow-up fa-lg"
></i></span><span
class=
"content"
>
Consultar Projeto
</span></a>
</li>
...
...
resources/views/modulo_codem/dados_demanda.blade.php
View file @
cfc2c995
...
...
@@ -122,10 +122,7 @@
</table>
@endif
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
window
.
location
.
href
=
'/codem/demanda/minhas_demandas'
">Fechar
</button>
</div>
</div>
</div>
</div>
...
...
@@ -254,7 +251,10 @@
</div>
</div>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
window
.
location
.
href
=
'/codem/demanda/minhas_demandas'
">Fechar
</button>
</div>
...
...
resources/views/modulo_debendures_reidi/Consultar_projeto.blade.php
View file @
cfc2c995
...
...
@@ -5,8 +5,8 @@
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'
Debend
ures e Reidi'"
:
telatual
=
"'Consultar
Debend
ures e Reidi'"
:
telanterior01
=
"'
debent
ures e Reidi'"
:
telatual
=
"'Consultar
debent
ures e Reidi'"
>
</
historico
-
navegacao
>
...
...
@@ -15,15 +15,15 @@
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<cabecalho-relatorios
:titulo="
'Consultar
Debend
ures e Reidi'
"
:titulo="
'Consultar
debent
ures e Reidi'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
<form role="
form
" method="
POST
" action='{{ url("
deben
d
ures_reidi
/
projetos
/
pesquisar
") }}'>
<form role="
form
" method="
POST
" action='{{ url("
deben
t
ures_reidi
/
projetos
/
pesquisar
") }}'>
@csrf
<filtro-deben
dures-reidi :url="
'{{ url('
/
') }}'
"></filtro-debend
ures-reidi>
<filtro-deben
tures-reidi :url="
'{{ url('
/
') }}'
"></filtro-debent
ures-reidi>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
submit
" name="
Salvar
Edição
">Pesquisar
...
...
resources/views/modulo_debendures_reidi/Dados_projeto.blade.php
View file @
cfc2c995
...
...
@@ -5,9 +5,9 @@
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'
Debend
ures e Reidi'"
:
telanterior02
=
"'Consultar
Debend
ures e Reidi'"
:
telanterior03
=
"'Lista
Debend
ures e Reidi'"
:
telanterior01
=
"'
debent
ures e Reidi'"
:
telanterior02
=
"'Consultar
debent
ures e Reidi'"
:
telanterior03
=
"'Lista
debent
ures e Reidi'"
:
telatual
=
"'Dados do Projeto'"
>
...
...
@@ -17,11 +17,11 @@
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
" >
<cabecalho-relatorios
:titulo="
'{{$projeto->txt_titular_projeto}}'
"
titulo="
{{
$projeto
->
txt_titular_projeto
}}
"
:subtitulo1="
'{{$projeto->tipoProjeto->txt_tipo_projeto}}'
"
:subtitulo2="
'{{$projeto->setorProjeto->txt_setor_projeto}}'
"
:subtitulo3="
'{{$projeto->sg_uf}}'
"
:linkcompartilhar="
'{{ url("/deben
d
ures_reidi/projeto/".$projeto->id) }}'
"
:linkcompartilhar="
'{{ url("/deben
t
ures_reidi/projeto/".$projeto->id) }}'
"
@if(
$projeto->updated_at
)
:dataatualizacao="
'{{date('
d
/
m
/
Y
',strtotime($projeto->updated_at))}}'
"
@elseif(
$projeto->created_at
)
...
...
@@ -30,20 +30,24 @@
:barracompartilhar="
true
">
</cabecalho-relatorios>
<form role="
form
" method="
POST
" action='{{ url("
deben
d
ures_reidi
/
projeto
/
update
") }}'>
<form role="
form
" method="
POST
" action='{{ url("
deben
t
ures_reidi
/
projeto
/
update
") }}'>
@csrf
<input type="
hidden
" id="
projeto_id
" name="
projeto_id
" value="
{{
$projeto
->
id
}}
">
<projeto-deben
d
ures-reidi
<projeto-deben
t
ures-reidi
:url="
'{{ url('
/
') }}'
"
v-bind:dados="
{{
json_encode
(
$projeto
)}}
"
></projeto-deben
d
ures-reidi>
></projeto-deben
t
ures-reidi>
<div class="
p
-
3
text
-
right
">
<button class="
br
-
button
primary
mr
-
3
" type="
submit
">Atualizar
</button>
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
<form role="
form
" method="
POST
" action='{{ url("
debentures_reidi
/
projetos
/
pesquisar
") }}'>
@csrf
<input type="
hidden
" id="
request
" name="
request
" value="">
<button class="
br
-
button
danger
mr
-
3
" type="
button
" onclick="
javascript
:
window
.
history
.
go
(
-
1
)
">Voltar
</button>
</form>
</div>
</form>
...
...
resources/views/modulo_debendures_reidi/Lista_projeto.blade.php
View file @
cfc2c995
...
...
@@ -5,9 +5,9 @@
<
historico
-
navegacao
:
url
=
"'{{ url('/home') }}'"
:
telanterior01
=
"'
Debend
ures e Reidi'"
:
telanterior01
=
"'Consultar
Debend
ures e Reidi'"
:
telatual
=
"'Lista
Debend
ures e Reidi'"
:
telanterior01
=
"'
debent
ures e Reidi'"
:
telanterior01
=
"'Consultar
debent
ures e Reidi'"
:
telatual
=
"'Lista
debent
ures e Reidi'"
>
</
historico
-
navegacao
>
...
...
@@ -16,7 +16,7 @@
<
div
class
="
main
-
content
pl
-
sm
-
3
mt
-
5
container
-
fluid
" id="
main
-
content
">
<cabecalho-relatorios
:titulo="
'Lista
Debend
ures e Reidi'
"
:titulo="
'Lista
debent
ures e Reidi'
"
:linkcompartilhar="
'{{ url("/") }}'
"
:barracompartilhar="
false
">
</cabecalho-relatorios>
...
...
@@ -50,7 +50,7 @@
<tbody>
@foreach(
$projetos
as
$dados
)
@if(
$dados->updated_at
)
@if(
$dados->updated_at
)
<tr class="
text
-
center
" >
@else
<tr class="
text
-
center
table
-
danger
" >
...
...
@@ -71,7 +71,7 @@
<td class="
p
-
3
text
-
right
">
<button type="
button
" class="
br
-
button
circle
secondary
small
mr
-
3
" aria-label="
Ícone
ilustrativo
"
onclick='window.location.href="
{{
url
(
"deben
d
ures_reidi/projeto/
$dados->id
"
)}}
"'>
onclick='window.location.href="
{{
url
(
"deben
t
ures_reidi/projeto/
$dados->id
"
)}}
"'>
<i class="
fas
fa
-
eye
" aria-hidden="
true
"></i>
</button>
...
...
routes/api.php
View file @
cfc2c995
...
...
@@ -155,7 +155,7 @@ Route::get('/rps/situacaoPropostasAjustadas', 'ApiController@listaSituacaoPropos
//
DEBENDURES
Route
::
get
(
'/deben
dures/ufs'
,
'ApiController@buscarEstadosDebend
ures'
);
Route
::
get
(
'/deben
dures/tipo_projeto'
,
'ApiController@buscarTipoProjetoDebend
ures'
);
Route
::
get
(
'/deben
dures/setor_projeto'
,
'ApiController@buscarSetorProjetoDebend
ures'
);
//
debentures
Route
::
get
(
'/deben
tures/ufs'
,
'ApiController@buscarEstadosdebent
ures'
);
Route
::
get
(
'/deben
tures/tipo_projeto'
,
'ApiController@buscarTipoProjetodebent
ures'
);
Route
::
get
(
'/deben
tures/setor_projeto'
,
'ApiController@buscarSetorProjetodebent
ures'
);
routes/web.php
View file @
cfc2c995
...
...
@@ -347,8 +347,8 @@ Route::get('/codem/demanda/observacao/excluir/{observacao}', 'Mod_codem\Observac
//////módulo CODEM
//módulo debendures e reidi
Route
::
get
(
'/debendures_reidi/projetos/consultar'
,
'Mod_debendures_reidi\DebenduresReidiController@consultarProjeto'
);
Route
::
post
(
'/debendures_reidi/projetos/pesquisar'
,
'Mod_debendures_reidi\DebenduresReidiController@pesquisarProjeto'
);
Route
::
get
(
'/debendures_reidi/projeto/{projeto}'
,
'Mod_debendures_reidi\DebenduresReidiController@dadosProjeto'
);
Route
::
post
(
'/debendures_reidi/projeto/update'
,
'Mod_debendures_reidi\DebenduresReidiController@updateProjeto'
);
\ No newline at end of file
//módulo debentures e reidi
Route
::
get
(
'/debentures_reidi/projetos/consultar'
,
'Mod_debentures_reidi\debenturesReidiController@consultarProjeto'
);
Route
::
post
(
'/debentures_reidi/projetos/pesquisar'
,
'Mod_debentures_reidi\debenturesReidiController@pesquisarProjeto'
);
Route
::
get
(
'/debentures_reidi/projeto/{projeto}'
,
'Mod_debentures_reidi\debenturesReidiController@dadosProjeto'
);
Route
::
post
(
'/debentures_reidi/projeto/update'
,
'Mod_debentures_reidi\debenturesReidiController@updateProjeto'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment