version beta Test Ispt4.0
This commit is contained in:
parent
476118578a
commit
9fa08d54a7
|
|
@ -17,6 +17,7 @@ class WorkstationsJobsController extends Controller
|
||||||
{
|
{
|
||||||
public function receiveAnswersEquipment(Request $request)
|
public function receiveAnswersEquipment(Request $request)
|
||||||
{
|
{
|
||||||
|
|
||||||
// Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas
|
// Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas
|
||||||
$receiveAnswersElementalTasks = new workstationsTaskAnswers;
|
$receiveAnswersElementalTasks = new workstationsTaskAnswers;
|
||||||
$receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid;
|
$receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid;
|
||||||
|
|
@ -49,7 +50,7 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
|
|
||||||
// Armazenando a string JSON no banco de dados
|
// Armazenando a string JSON no banco de dados
|
||||||
$receiveAnswersElementalTasks->answer_json = $jsonString;
|
$receiveAnswersElementalTasks->answer_json = $jsonString;
|
||||||
$receiveAnswersElementalTasks->save();
|
// $receiveAnswersElementalTasks->save();
|
||||||
|
|
||||||
// update departure_date value
|
// update departure_date value
|
||||||
$receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid);
|
$receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid);
|
||||||
|
|
@ -92,9 +93,60 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
$elemental_tasks_id = null;
|
$elemental_tasks_id = null;
|
||||||
$further_tasks_id = $next_todo;
|
$further_tasks_id = $next_todo;
|
||||||
}
|
}
|
||||||
//Se a proxima WS for igual a atual deve criar dados para a ws
|
|
||||||
if ($recebeDataControlId->id_workstations == $next_workstation) {
|
|
||||||
|
|
||||||
|
// Para criar a divisao do equipamento em entre compo e Obturador
|
||||||
|
if ($receiveDataControlWs->elemental_tasks_id == 5 || $receiveDataControlWs->elemental_tasks_id == 6) {
|
||||||
|
$nextEquipmentTask1 = DB::select("
|
||||||
|
INSERT INTO control_equipment_workstation
|
||||||
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
|
VALUES
|
||||||
|
(:equipment_id,NULL,8,:further_tasks_id,NULL,NULL,NULL)
|
||||||
|
", [
|
||||||
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
|
'further_tasks_id' => $further_tasks_id
|
||||||
|
]);
|
||||||
|
|
||||||
|
$nextEquipmentTask2 = DB::select("
|
||||||
|
INSERT INTO control_equipment_workstation
|
||||||
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
|
VALUES
|
||||||
|
(:equipment_id,NULL,9,:further_tasks_id,NULL,NULL,NULL)
|
||||||
|
", [
|
||||||
|
'equipment_id' => $receiveDataEquipment->equipment_id,
|
||||||
|
'further_tasks_id' => $further_tasks_id
|
||||||
|
]);
|
||||||
|
// Equipamento separado em 2 corpo/ Obturador
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Quando concluir as tarefas 8 e 9 ele apenas deve
|
||||||
|
else if ($receiveDataControlWs->elemental_tasks_id == 8 || $receiveDataControlWs->elemental_tasks_id == 9) {
|
||||||
|
// Verifique se já existem registros na tabela control_equipment_workstation
|
||||||
|
$existingRecords = DB::table('control_equipment_workstation')
|
||||||
|
->where('equipment_id', $receiveDataControlWs->equipment_id)
|
||||||
|
->whereIn('elemental_tasks_id', [8, 9])
|
||||||
|
->whereNotNull('departure_date')
|
||||||
|
->get();
|
||||||
|
|
||||||
|
// Verifique se há pelo menos dois registros que atendem às condições
|
||||||
|
if ($existingRecords->count() >= 2) {
|
||||||
|
// Crie um novo registro com elemental_tasks_id igual a 10
|
||||||
|
$nextEquipmentTask3 = DB::table('control_equipment_workstation')->insertGetId([
|
||||||
|
'equipment_id' => $receiveDataControlWs->equipment_id,
|
||||||
|
'id_workstations' => NULL,
|
||||||
|
'elemental_tasks_id' => 10,
|
||||||
|
'further_tasks_id' => $further_tasks_id,
|
||||||
|
'equipment_comments_id' => NULL,
|
||||||
|
'entry_date' => NULL,
|
||||||
|
'departure_date' => NULL,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
}
|
||||||
|
|
||||||
|
//Se a proxima WS for igual a atual deve criar dados para a ws
|
||||||
|
else if ($recebeDataControlId->id_workstations == $next_workstation) {
|
||||||
$nextEquipmentTask = DB::select("
|
$nextEquipmentTask = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
|
|
@ -106,6 +158,7 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
'elemental_tasks_id' => $elemental_tasks_id,
|
'elemental_tasks_id' => $elemental_tasks_id,
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$lastInsertedId = DB::getPdo()->lastInsertId();
|
$lastInsertedId = DB::getPdo()->lastInsertId();
|
||||||
|
|
||||||
return view('workstations.workstations', [
|
return view('workstations.workstations', [
|
||||||
|
|
@ -116,9 +169,9 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
]);
|
]);
|
||||||
// Se verificar que a proxima tarefa e Null ele deve apenas voltar ao start
|
// Se verificar que a proxima tarefa e Null ele deve apenas voltar ao start
|
||||||
} else if ($next_todo == null) {
|
} else if ($next_todo == null) {
|
||||||
return view('workstations.start');
|
|
||||||
}
|
return redirect()->route('enterWorkstation');
|
||||||
else {
|
} else {
|
||||||
$nextEquipmentTask = DB::select("
|
$nextEquipmentTask = DB::select("
|
||||||
INSERT INTO control_equipment_workstation
|
INSERT INTO control_equipment_workstation
|
||||||
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
(equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date)
|
||||||
|
|
@ -130,21 +183,73 @@ public function receiveAnswersEquipment(Request $request)
|
||||||
'further_tasks_id' => $further_tasks_id
|
'further_tasks_id' => $further_tasks_id
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return view('workstations.start');
|
return redirect()->route('enterWorkstation');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados.
|
// Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados.
|
||||||
public function getEquipmentData($equipment_id)
|
public function getEquipmentData($equipment_id)
|
||||||
{ //vai receber o email atual, no caso o da workstation que se encontra
|
{ //vai receber o email atual, no caso o da workstation que se encontra
|
||||||
$userEmail = Auth::user()->email;
|
$userEmail = Auth::user();
|
||||||
|
|
||||||
|
|
||||||
|
// Busca os dados da Ws com base no Login
|
||||||
|
$findDataWs = ConstructionWorkstation::where('name_workstations', $userEmail->user_name)->first();
|
||||||
|
|
||||||
|
// Recebe os dados do Equipamento
|
||||||
$receiveDataEquipment = Equipment::where('equipment_id', $equipment_id)->first();
|
$receiveDataEquipment = Equipment::where('equipment_id', $equipment_id)->first();
|
||||||
|
|
||||||
//Calling the MySQL procedure tthat will return a table with two columns and one row
|
// Busca as tarefas do Equipamento a serem feitas
|
||||||
|
$equipmentTasks = DB::table('users as u')
|
||||||
|
->join('construction_workstations as cw', 'u.user_name', '=', 'cw.name_workstations')
|
||||||
|
->join('workstations_association_tasks as wat', 'cw.id_workstations', '=', 'wat.id_workstations')
|
||||||
|
->join('equipments as e', 'wat.company_projects_id', '=', 'e.company_projects_id')
|
||||||
|
->join('ordered_equipment_tasks as oet', 'e.equipment_id', '=', 'oet.equipment_id')
|
||||||
|
->where('u.email', $userEmail->email)
|
||||||
|
->select('e.equipment_id', 'e.equipment_tag', DB::raw('GROUP_CONCAT(DISTINCT COALESCE(oet.elemental_tasks_id, oet.further_tasks_id) ORDER BY oet.execution_order) AS equipment_all_tasks'))
|
||||||
|
->groupBy('e.equipment_id', 'e.equipment_tag')
|
||||||
|
->orderBy('e.equipment_id', 'ASC')
|
||||||
|
->get();
|
||||||
|
|
||||||
|
//Busca as tarefas que podem ser feitas pela WS Atual a partir do Email
|
||||||
|
$userTasks = DB::table('users as u')
|
||||||
|
->join('construction_workstations as cw', 'u.user_name', '=', 'cw.name_workstations')
|
||||||
|
->join('workstations_association_tasks as wat', 'cw.id_workstations', '=', 'wat.id_workstations')
|
||||||
|
->where('u.email', $userEmail->email)
|
||||||
|
->select('cw.id_workstations', 'cw.name_workstations', DB::raw('GROUP_CONCAT(COALESCE(wat.elemental_tasks_id, wat.further_tasks_id)) AS all_tasks'))
|
||||||
|
->groupBy('cw.id_workstations', 'cw.name_workstations')
|
||||||
|
->get();
|
||||||
|
|
||||||
|
// Convertendo as tarefas do usuário em um array
|
||||||
|
$tasksArray = explode(',', $userTasks->pluck('all_tasks')->first());
|
||||||
|
|
||||||
|
$controlEquipmentWorkstation = ControlEquipmentWorkstation::where('equipment_id', $receiveDataEquipment->equipment_id)
|
||||||
|
->whereIn('elemental_tasks_id', $tasksArray)
|
||||||
|
->whereNull('id_workstations')
|
||||||
|
->whereNull('entry_date')
|
||||||
|
->whereNull('departure_date')
|
||||||
|
->first();
|
||||||
|
|
||||||
|
// Se encontrar um dado que satisfaca as verificacoes acima deve implementar a tarefa para esta WS.
|
||||||
|
if ($controlEquipmentWorkstation) {
|
||||||
|
|
||||||
|
$controlEquipmentWorkstation->id_workstations = $findDataWs->id_workstations;
|
||||||
|
$controlEquipmentWorkstation->entry_date = now();
|
||||||
|
$controlEquipmentWorkstation->save();
|
||||||
|
|
||||||
|
$receiveDataElementalTask = ElementalTasks::find($controlEquipmentWorkstation->elemental_tasks_id);
|
||||||
|
|
||||||
|
//Returning the values to a view "values"
|
||||||
|
return view('workstations.workstations', [
|
||||||
|
'receiveDataElementalTask' => $receiveDataElementalTask,
|
||||||
|
'receiveDataEquipment' => $receiveDataEquipment,
|
||||||
|
'control_ew_id' => $controlEquipmentWorkstation->control_equipment_workstation_id,
|
||||||
|
'task_todo' => $controlEquipmentWorkstation->elemental_tasks_id
|
||||||
|
]);
|
||||||
|
} else
|
||||||
|
|
||||||
//cria a nova linha
|
//cria a nova linha
|
||||||
$equipmentData = DB::select('CALL ManageEquipmentTasks(?, ?)', [$userEmail, $equipment_id]);
|
$equipmentData = DB::select('CALL ManageEquipmentTasks(?, ?)', [$userEmail->email, $equipment_id]);
|
||||||
|
|
||||||
// //Saving the values to a variable
|
// //Saving the values to a variable
|
||||||
if (count($equipmentData) > 0) {
|
if (count($equipmentData) > 0) {
|
||||||
|
|
@ -156,11 +261,33 @@ public function getEquipmentData($equipment_id)
|
||||||
$task_todo = null;
|
$task_todo = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Recebe os dados de cada Tarefa Elementar.
|
||||||
|
|
||||||
$recebeDataControlId = ControlEquipmentWorkstation::find($control_ew_id);
|
$recebeDataControlId = ControlEquipmentWorkstation::find($control_ew_id);
|
||||||
|
|
||||||
// Recebe os dados de cada Tarefa Elementar.
|
// Quando se da Refreash a pagina me devolve um erro de laravel pois o $recebeDataControlId e Null , pois claramente ja foi feita seus scripts e apos o refreash nao e feito denovo, sendo assim e melhor perder os dados criados e fazer novamente do que ter erros de lAravel :D
|
||||||
|
if ($recebeDataControlId == NULL) {
|
||||||
|
|
||||||
|
$deleteDataControlWhereRefreashPage = ControlEquipmentWorkstation::where('id_workstations', $findDataWs->id_workstations)
|
||||||
|
->where('equipment_id', $receiveDataEquipment->equipment_id)
|
||||||
|
->whereNotNull('entry_date')
|
||||||
|
->whereNull('departure_date')
|
||||||
|
->first();
|
||||||
|
// dd($deleteDataControlWhereRefreashPage);
|
||||||
|
|
||||||
|
if ($deleteDataControlWhereRefreashPage) {
|
||||||
|
$deleteDataControlWhereRefreashPage->id_workstations = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->entry_date = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->departure_date = null;
|
||||||
|
$deleteDataControlWhereRefreashPage->save();
|
||||||
|
}
|
||||||
|
return redirect()->route('enterWorkstation');
|
||||||
|
|
||||||
|
} else
|
||||||
|
|
||||||
$receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id);
|
$receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id);
|
||||||
|
|
||||||
|
|
||||||
//Deve recupar os dados da tarefa Atual quando receber o control_id
|
//Deve recupar os dados da tarefa Atual quando receber o control_id
|
||||||
|
|
||||||
//Returning the values to a view "values"
|
//Returning the values to a view "values"
|
||||||
|
|
|
||||||
|
|
@ -1,224 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\Controllers;
|
|
||||||
|
|
||||||
use Illuminate\Http\Request;
|
|
||||||
use Illuminate\Support\Facades\Auth;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
|
||||||
|
|
||||||
|
|
||||||
class WorkstationsJobsController extends Controller
|
|
||||||
{
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
$userEmail = Auth::user()->email;
|
|
||||||
|
|
||||||
dd($userEmail);
|
|
||||||
|
|
||||||
$equipmentsTodo = DB::table('ordered_equipment_tasks AS oet')
|
|
||||||
->distinct()
|
|
||||||
->select('oet.equipment_id', 'eq.equipment_tag')
|
|
||||||
->join('equipments AS eq', 'oet.equipment_id', '=', 'eq.equipment_id')
|
|
||||||
->join('workstations_association_tasks AS wat', 'oet.elemental_tasks_id', '=', 'wat.elemental_tasks_id')
|
|
||||||
->whereIn('eq.company_projects_id', function ($query) use ($userEmail) {
|
|
||||||
$query->select('cw.company_projects_id')
|
|
||||||
->from('construction_workstations AS cw')
|
|
||||||
->join('users AS u', 'cw.name_workstations', '=', 'u.user_name')
|
|
||||||
->where('u.email', $userEmail);
|
|
||||||
})
|
|
||||||
->whereIn('wat.id_workstations', function ($query) use ($userEmail) {
|
|
||||||
$query->select('cw.id_workstations')
|
|
||||||
->from('construction_workstations AS cw')
|
|
||||||
->join('users AS u', 'cw.name_workstations', '=', 'u.user_name')
|
|
||||||
->where('u.email', $userEmail);
|
|
||||||
})
|
|
||||||
->where('oet.execution_order', '=', function ($query) {
|
|
||||||
$query->selectRaw('IFNULL(MIN(ot.execution_order), 1)')
|
|
||||||
->from('ordered_equipment_tasks AS ot')
|
|
||||||
->whereColumn('ot.equipment_id', 'oet.equipment_id')
|
|
||||||
->whereNotIn('ot.elemental_tasks_id', function ($query) {
|
|
||||||
$query->select('cew.elemental_tasks_id')
|
|
||||||
->from('control_equipment_workstation AS cew')
|
|
||||||
->whereColumn('ot.equipment_id', 'cew.equipment_id');
|
|
||||||
});
|
|
||||||
})
|
|
||||||
->whereNotExists(function ($query) {
|
|
||||||
$query->select(DB::raw(1))
|
|
||||||
->from('control_equipment_workstation AS cew')
|
|
||||||
->whereColumn('oet.equipment_id', 'cew.equipment_id');
|
|
||||||
})
|
|
||||||
->get();
|
|
||||||
|
|
||||||
|
|
||||||
$equipmentsDone = DB::select("
|
|
||||||
WITH username AS (
|
|
||||||
SELECT
|
|
||||||
user_name
|
|
||||||
FROM
|
|
||||||
users
|
|
||||||
WHERE
|
|
||||||
email = :email
|
|
||||||
),
|
|
||||||
workstations AS (
|
|
||||||
SELECT
|
|
||||||
id_workstations,
|
|
||||||
company_projects_id
|
|
||||||
FROM
|
|
||||||
construction_workstations
|
|
||||||
WHERE
|
|
||||||
name_workstations = (SELECT user_name FROM username)
|
|
||||||
),
|
|
||||||
watet AS (
|
|
||||||
SELECT
|
|
||||||
elemental_tasks_id
|
|
||||||
FROM
|
|
||||||
workstations_association_tasks
|
|
||||||
WHERE
|
|
||||||
id_workstations = (SELECT id_workstations FROM workstations)
|
|
||||||
),
|
|
||||||
jobs AS (
|
|
||||||
SELECT
|
|
||||||
ordered_equipment_tasks.equipment_id,
|
|
||||||
equipments.equipment_tag,
|
|
||||||
ordered_equipment_tasks.execution_order,
|
|
||||||
ordered_equipment_tasks.elemental_tasks_id,
|
|
||||||
workstations.id_workstations
|
|
||||||
FROM
|
|
||||||
ordered_equipment_tasks
|
|
||||||
INNER JOIN
|
|
||||||
equipments
|
|
||||||
ON
|
|
||||||
ordered_equipment_tasks.equipment_id = equipments.equipment_id
|
|
||||||
INNER JOIN
|
|
||||||
workstations
|
|
||||||
ON
|
|
||||||
equipments.company_projects_id = workstations.company_projects_id
|
|
||||||
WHERE
|
|
||||||
ordered_equipment_tasks.elemental_tasks_id IN (SELECT elemental_tasks_id FROM watet)
|
|
||||||
),
|
|
||||||
valid_jobs AS (
|
|
||||||
SELECT
|
|
||||||
jobs.equipment_id,
|
|
||||||
jobs.equipment_tag
|
|
||||||
FROM
|
|
||||||
jobs
|
|
||||||
WHERE
|
|
||||||
NOT EXISTS (
|
|
||||||
SELECT
|
|
||||||
1
|
|
||||||
FROM
|
|
||||||
jobs AS j2
|
|
||||||
WHERE
|
|
||||||
j2.equipment_id = jobs.equipment_id
|
|
||||||
AND NOT EXISTS (
|
|
||||||
SELECT
|
|
||||||
1
|
|
||||||
FROM
|
|
||||||
control_equipment_workstation
|
|
||||||
WHERE
|
|
||||||
control_equipment_workstation.equipment_id = j2.equipment_id
|
|
||||||
AND control_equipment_workstation.elemental_tasks_id = j2.elemental_tasks_id
|
|
||||||
AND control_equipment_workstation.elemental_tasks_id IS NOT NULL
|
|
||||||
)
|
|
||||||
)
|
|
||||||
AND EXISTS (
|
|
||||||
SELECT
|
|
||||||
1
|
|
||||||
FROM
|
|
||||||
control_equipment_workstation
|
|
||||||
WHERE
|
|
||||||
control_equipment_workstation.equipment_id = jobs.equipment_id
|
|
||||||
AND jobs.id_workstations = control_equipment_workstation.id_workstations
|
|
||||||
AND control_equipment_workstation.id_workstations IS NOT NULL
|
|
||||||
AND control_equipment_workstation.entry_date IS NOT NULL
|
|
||||||
AND control_equipment_workstation.departure_date IS NOT NULL
|
|
||||||
)
|
|
||||||
)
|
|
||||||
SELECT DISTINCT
|
|
||||||
valid_jobs.equipment_id,
|
|
||||||
valid_jobs.equipment_tag
|
|
||||||
FROM
|
|
||||||
valid_jobs;
|
|
||||||
", ['email' => $userEmail]);
|
|
||||||
|
|
||||||
|
|
||||||
$equipmentsReturned = DB::select("
|
|
||||||
SELECT DISTINCT
|
|
||||||
jobs.equipment_id,
|
|
||||||
jobs.equipment_tag
|
|
||||||
FROM (
|
|
||||||
SELECT
|
|
||||||
oet.equipment_id,
|
|
||||||
e.equipment_tag,
|
|
||||||
oet.execution_order,
|
|
||||||
oet.elemental_tasks_id,
|
|
||||||
cw.id_workstations
|
|
||||||
FROM
|
|
||||||
ordered_equipment_tasks AS oet
|
|
||||||
JOIN
|
|
||||||
equipments AS e ON oet.equipment_id = e.equipment_id
|
|
||||||
JOIN
|
|
||||||
(
|
|
||||||
SELECT
|
|
||||||
cw.id_workstations,
|
|
||||||
cw.company_projects_id,
|
|
||||||
wat.elemental_tasks_id
|
|
||||||
FROM
|
|
||||||
construction_workstations AS cw
|
|
||||||
JOIN
|
|
||||||
users AS u ON cw.name_workstations = u.user_name
|
|
||||||
JOIN
|
|
||||||
(
|
|
||||||
SELECT
|
|
||||||
wat.id_workstations,
|
|
||||||
wat.elemental_tasks_id
|
|
||||||
FROM
|
|
||||||
workstations_association_tasks AS wat
|
|
||||||
) AS wat ON wat.id_workstations = cw.id_workstations
|
|
||||||
WHERE
|
|
||||||
u.email = :email
|
|
||||||
) AS cw ON e.company_projects_id = cw.company_projects_id
|
|
||||||
WHERE
|
|
||||||
oet.elemental_tasks_id = cw.elemental_tasks_id
|
|
||||||
) AS jobs
|
|
||||||
INNER JOIN (
|
|
||||||
SELECT cew.*
|
|
||||||
FROM control_equipment_workstation cew
|
|
||||||
INNER JOIN (
|
|
||||||
SELECT equipment_id, elemental_tasks_id
|
|
||||||
FROM control_equipment_workstation
|
|
||||||
GROUP BY equipment_id, elemental_tasks_id
|
|
||||||
HAVING COUNT(*) > 1
|
|
||||||
) AS subquery
|
|
||||||
ON cew.equipment_id = subquery.equipment_id
|
|
||||||
AND cew.elemental_tasks_id = subquery.elemental_tasks_id
|
|
||||||
WHERE cew.id_workstations IS NULL
|
|
||||||
AND cew.entry_date IS NULL
|
|
||||||
) AS repeated ON jobs.equipment_id = repeated.equipment_id
|
|
||||||
AND jobs.elemental_tasks_id = repeated.elemental_tasks_id
|
|
||||||
", ['email' => $userEmail]);
|
|
||||||
|
|
||||||
$workstationNameQuery = DB::select("
|
|
||||||
SELECT construction_workstations.nomenclature_workstation
|
|
||||||
FROM construction_workstations
|
|
||||||
JOIN users
|
|
||||||
WHERE construction_workstations.name_workstations = users.user_name
|
|
||||||
AND users.email = :email;
|
|
||||||
", ['email' => $userEmail]);
|
|
||||||
|
|
||||||
$workstationName = $workstationNameQuery[0]->nomenclature_workstation;
|
|
||||||
|
|
||||||
//Counting of equipments
|
|
||||||
$equipmentsTodoCount = count($equipmentsTodo);
|
|
||||||
$equipmentsDoneCount = count($equipmentsDone);
|
|
||||||
$equipmentsReturnedCount = count($equipmentsReturned);
|
|
||||||
|
|
||||||
//Returning values of the queries to workstations layout
|
|
||||||
return view('workstations.index', [
|
|
||||||
'equipmentsTodo' => $equipmentsTodo, 'equipmentsTodoCount' => $equipmentsTodoCount,
|
|
||||||
'equipmentsDone' => $equipmentsDone, 'equipmentsDoneCount' => $equipmentsDoneCount,
|
|
||||||
'equipmentsReturned' => $equipmentsReturned, 'equipmentsReturnedCount' => $equipmentsReturnedCount,
|
|
||||||
'workstationName' => $workstationName
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -116,7 +116,7 @@ public function compose(View $view)
|
||||||
WHERE wc.equipment_id = emr.equipment_id
|
WHERE wc.equipment_id = emr.equipment_id
|
||||||
AND wc.control_id_workstations IS NOT NULL
|
AND wc.control_id_workstations IS NOT NULL
|
||||||
GROUP BY wc.equipment_id
|
GROUP BY wc.equipment_id
|
||||||
HAVING COUNT(DISTINCT wc.control_id_workstations) > 1
|
HAVING COUNT(DISTINCT wc.control_id_workstations) > 20
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
GROUP BY
|
GROUP BY
|
||||||
|
|
@ -157,6 +157,8 @@ public function compose(View $view)
|
||||||
e.equipment_tag
|
e.equipment_tag
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
workstations_multiple_rows AS (
|
workstations_multiple_rows AS (
|
||||||
SELECT
|
SELECT
|
||||||
cw.id_workstations,
|
cw.id_workstations,
|
||||||
|
|
@ -172,6 +174,8 @@ public function compose(View $view)
|
||||||
u.email = :email2
|
u.email = :email2
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
workstations_control_all_tasks AS (
|
workstations_control_all_tasks AS (
|
||||||
SELECT
|
SELECT
|
||||||
cew.control_equipment_workstation_id,
|
cew.control_equipment_workstation_id,
|
||||||
|
|
@ -204,6 +208,8 @@ public function compose(View $view)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SELECT
|
SELECT
|
||||||
emr.equipment_id,
|
emr.equipment_id,
|
||||||
emr.equipment_tag
|
emr.equipment_tag
|
||||||
|
|
@ -223,7 +229,8 @@ public function compose(View $view)
|
||||||
WHERE wc.equipment_id = emr.equipment_id
|
WHERE wc.equipment_id = emr.equipment_id
|
||||||
AND wc.control_id_workstations IS NOT NULL
|
AND wc.control_id_workstations IS NOT NULL
|
||||||
GROUP BY wc.equipment_id
|
GROUP BY wc.equipment_id
|
||||||
HAVING COUNT(DISTINCT wc.control_id_workstations) >= 2
|
HAVING COUNT(DISTINCT wc.control_id_workstations) >= 20
|
||||||
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
GROUP BY
|
GROUP BY
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,6 @@ public function refreshDataEquipments($datasProject)
|
||||||
$this->totalEquivalentEquipment = array_sum($equipmentCounts);
|
$this->totalEquivalentEquipment = array_sum($equipmentCounts);
|
||||||
|
|
||||||
$this->completed1 = collect($this->completed1);
|
$this->completed1 = collect($this->completed1);
|
||||||
dump($this->completed1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -142,17 +142,13 @@ class="brand-image img-circle elevation-3" style="opacity: .8">
|
||||||
<a href="#" class="nav-link text-white" style="background-color: #007BFF;">
|
<a href="#" class="nav-link text-white" style="background-color: #007BFF;">
|
||||||
<i class="nav-icon fas fa-play"></i>
|
<i class="nav-icon fas fa-play"></i>
|
||||||
<p>
|
<p>
|
||||||
{{ $equipmentsTodoCount }} a iniciar
|
{{ $equipmentsTodoCount }} a inicia
|
||||||
<i class="right fas fa-angle-left"></i>
|
<i class="right fas fa-angle-left"></i>
|
||||||
</p>
|
</p>
|
||||||
</a>
|
</a>
|
||||||
<ul class="nav nav-treeview">
|
<ul class="nav nav-treeview">
|
||||||
@foreach ($equipmentsTodo as $equipmentTodo)
|
@foreach ($equipmentsTodo as $equipmentTodo)
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
{{-- <a href="#" class="nav-link text-white">
|
|
||||||
<i class="fas fa-tag nav-icon"></i>
|
|
||||||
<p>{{ $equipmentTodo->equipment_tag }}</p>
|
|
||||||
</a> --}}
|
|
||||||
<a href="{{ route('getEquipmentData', $equipmentTodo->equipment_id) }}"
|
<a href="{{ route('getEquipmentData', $equipmentTodo->equipment_id) }}"
|
||||||
class="nav-link text-white">
|
class="nav-link text-white">
|
||||||
<i class="fas fa-tag nav-icon"></i>
|
<i class="fas fa-tag nav-icon"></i>
|
||||||
|
|
|
||||||
|
|
@ -257,4 +257,5 @@ function addBeforeUnload() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
@extends('Templates.templateWorkstations')
|
@extends('Templates.templateWorkstations')
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
|
||||||
|
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
|
||||||
|
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.js">
|
||||||
|
</script>
|
||||||
|
<link rel="stylesheet"
|
||||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/jquery-ui-timepicker-addon.min.css">
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
{{-- TE1 - Desmontar da linha --}}
|
{{-- TE1 - Desmontar da linha --}}
|
||||||
@if ($task_todo == 1)
|
@if ($task_todo == 1)
|
||||||
|
|
@ -11,7 +19,6 @@
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE1 - Desmontar da linha</h3>
|
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -19,7 +26,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form1" class="monitored-form">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
|
@ -147,11 +154,9 @@ class="form-control" placeholder="">
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary">Cancelar</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -174,14 +179,14 @@ class="form-control" placeholder="">
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE2 - Descontaminar</h3>
|
{{-- <h3 class="card-title mb-0">TE2 - Descontaminar</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form id="form2" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -222,10 +227,10 @@ class="form-control" placeholder="">
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -249,14 +254,14 @@ class="form-control" placeholder="">
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE3 - PSV - Pré-teste</h3>
|
{{-- <h3 class="card-title mb-0">TE3 - PSV - Pré-teste</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="form3" class="monitored-form" >
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -655,10 +660,10 @@ class="form-control datetimepicker-input"
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -682,7 +687,7 @@ class="form-control datetimepicker-input"
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE3 - CV - Pré-teste</h3>
|
{{-- <h3 class="card-title mb-0">TE3 - CV - Pré-teste</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -690,7 +695,7 @@ class="form-control datetimepicker-input"
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form id="form4" class="monitored-form" action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||||
@csrf
|
@csrf
|
||||||
|
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
@ -1087,10 +1092,10 @@ class="form-control datetimepicker-input"
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -1114,13 +1119,16 @@ class="form-control datetimepicker-input"
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE4 - PSV - Abertura de válvula, análise e controle dos
|
{{-- <h3 class="card-title mb-0">TE4 - PSV - Abertura de válvula, análise e controle dos
|
||||||
componentes
|
componentes
|
||||||
|
</h3> --}}
|
||||||
|
<h3 class="card-title mb-0">
|
||||||
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
<span>Válvula XXXXX</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST" id="idDoFormulario">
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
<input type="hidden" name="control_equipment_workstationid" value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
|
@ -1442,10 +1450,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -1469,10 +1477,13 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE4 - CV - Abertura de válvula, análise e controle dos
|
{{-- <h3 class="card-title mb-0">TE4 - CV - Abertura de válvula, análise e controle dos
|
||||||
componentes
|
componentes
|
||||||
|
</h3> --}}
|
||||||
|
<h3 class="card-title mb-0">
|
||||||
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
<span>Válvula XXXXX</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||||
|
|
@ -1867,10 +1878,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -1894,9 +1905,9 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE4 - ISV - Abertura de válvula, análise e controle dos
|
{{-- <h3 class="card-title mb-0">TE4 - ISV - Abertura de válvula, análise e controle dos
|
||||||
componentes
|
componentes
|
||||||
</h3>
|
</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -2134,10 +2145,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -2161,7 +2172,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE5 - Limpeza e lavagem dos componentes</h3>
|
{{-- <h3 class="card-title mb-0">TE5 - Limpeza e lavagem dos componentes</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -2172,6 +2183,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
<input type="hidden" name="elemental_tasks_id"
|
||||||
|
value="{{ $receiveDataElementalTask->elemental_tasks_id }}">
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group"> <!-- Single form-group for all content -->
|
<div class="form-group"> <!-- Single form-group for all content -->
|
||||||
|
|
||||||
|
|
@ -2199,10 +2214,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- {{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -2226,9 +2241,9 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE6 - PSV - Retificação e limpeza</h3>
|
{{-- <h3 class="card-title mb-0">TE6 - PSV - Retificação e limpeza</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_id }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2237,6 +2252,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
@csrf
|
@csrf
|
||||||
<input type="hidden" name="control_equipment_workstationid"
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
value="{{ $control_ew_id }}">
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
<input type="hidden" name="elemental_tasks_code"
|
||||||
|
value="{{ $receiveDataElementalTask->elemental_tasks_code }}">
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="form-group"> <!-- Single form-group for all content -->
|
<div class="form-group"> <!-- Single form-group for all content -->
|
||||||
|
|
||||||
|
|
@ -2291,7 +2310,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
||||||
|
|
@ -2318,8 +2337,8 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE7 - PSV - Fecho da válvula e substituição de componentes
|
{{-- <h3 class="card-title mb-0">TE7 - PSV - Fecho da válvula e substituição de componentes
|
||||||
</h3>
|
</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -2528,10 +2547,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -2555,7 +2574,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE7 - CV - Fecho de válvula e substituição de componentes</h3>
|
{{-- <h3 class="card-title mb-0">TE7 - CV - Fecho de válvula e substituição de componentes</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3155,10 +3174,10 @@ class="form-control" placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -3182,8 +3201,8 @@ class="form-control" placeholder="" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE7 - ISV - Fecho de válvula e substituição de componentes
|
{{-- <h3 class="card-title mb-0">TE7 - ISV - Fecho de válvula e substituição de componentes
|
||||||
</h3>
|
</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3571,10 +3590,10 @@ class="form-control" placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -3598,7 +3617,7 @@ class="form-control" placeholder="" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE8 - PSV - Calibrar e certificar</h3>
|
{{-- <h3 class="card-title mb-0">TE8 - PSV - Calibrar e certificar</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3772,10 +3791,10 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -3799,7 +3818,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE9 - Pintura</h3>
|
{{-- <h3 class="card-title mb-0">TE9 - Pintura</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3838,10 +3857,10 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -3865,7 +3884,7 @@ class="form-control" style="width: 100%;" placeholder="">
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE10 - PSV ISV - Montagem na linha</h3>
|
{{-- <h3 class="card-title mb-0">TE10 - PSV ISV - Montagem na linha</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3911,10 +3930,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -3938,7 +3957,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE10 - CV - Montagem na linha</h3>
|
{{-- <h3 class="card-title mb-0">TE10 - CV - Montagem na linha</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -3985,10 +4004,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4012,7 +4031,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE11 - Inspeção final</h3>
|
{{-- <h3 class="card-title mb-0">TE11 - Inspeção final</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -4054,10 +4073,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4081,7 +4100,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE12 - CV - Inspeção visual</h3>
|
{{-- <h3 class="card-title mb-0">TE12 - CV - Inspeção visual</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -4256,10 +4275,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4284,7 +4303,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE13 - CV - Teste final</h3>
|
{{-- <h3 class="card-title mb-0">TE13 - CV - Teste final</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -4672,10 +4691,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4700,7 +4719,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE14 - ISV - Ensaio</h3>
|
{{-- <h3 class="card-title mb-0">TE14 - ISV - Ensaio</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -4821,10 +4840,10 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4848,7 +4867,7 @@ class="form-control select2" style="width: 100%;" required>
|
||||||
<div class="card card-info">
|
<div class="card card-info">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
<h3 class="card-title mb-0">TE15 - Empancar</h3>
|
{{-- <h3 class="card-title mb-0">TE15 - Empancar</h3> --}}
|
||||||
<h3 class="card-title mb-0">
|
<h3 class="card-title mb-0">
|
||||||
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
@ -4973,10 +4992,10 @@ class="form-control" placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer d-flex justify-content-between">
|
<div class="card-footer d-flex justify-content-between">
|
||||||
<!-- Left-aligned button -->
|
<!-- Left-aligned button -->
|
||||||
<button type="button" class="btn btn-primary">Voltar</button>
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
<button type="button" class="btn btn-primary mx-auto">Devolver</button>
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
<!-- Right-aligned button -->
|
<!-- Right-aligned button -->
|
||||||
<button type="submit" class="btn btn-primary">Seguinte</button>
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
|
@ -4989,4 +5008,106 @@ class="form-control" placeholder="" required>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
{{-- TE10.1 - Confirmação de ligação --}}
|
||||||
|
@if ($task_todo == 24)
|
||||||
|
<section class="content">
|
||||||
|
<div class="row justify-content-center align-items-center">
|
||||||
|
<div class="col-6">
|
||||||
|
|
||||||
|
<!-- Workstation card -->
|
||||||
|
<div class="card card-info">
|
||||||
|
<div class="card-header">
|
||||||
|
<div class="d-flex justify-content-between align-items-center" style="width: 100%;">
|
||||||
|
{{-- <h3 class="card-title mb-0">TE10.1 - Confirmação de ligação</h3> --}}
|
||||||
|
<h3 class="card-title mb-0">
|
||||||
|
{{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }}
|
||||||
|
</h3>
|
||||||
|
<span>{{ $receiveDataEquipment->equipment_tag }}</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<form action="{{ route('receiveAnswersEquipment') }}" method="POST">
|
||||||
|
@csrf
|
||||||
|
<input type="hidden" name="control_equipment_workstationid"
|
||||||
|
value="{{ $control_ew_id }}">
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="form-group"> <!-- Single form-group for all content -->
|
||||||
|
|
||||||
|
<!-- Executado -->
|
||||||
|
<div class="row mb-3 mt-3">
|
||||||
|
<div class="col-md-6 d-flex align-items-center">
|
||||||
|
<label>Executado? <span style="color: red;">*</span></label>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="icheck-primary d-inline mr-2">
|
||||||
|
<input type="radio" id="executed-yes" name="executed-checkbox"
|
||||||
|
required>
|
||||||
|
<label value="Sim" for="executed-yes">Sim</label>
|
||||||
|
</div>
|
||||||
|
<div class="icheck-primary d-inline mr-2">
|
||||||
|
<input type="radio" id="executed-no" name="executed-checkbox">
|
||||||
|
<label value="Não" for="executed-no">Não</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- ./ Executado -->
|
||||||
|
|
||||||
|
|
||||||
|
</div> <!-- End of single form-group -->
|
||||||
|
</div>
|
||||||
|
<div class="card-footer d-flex justify-content-between">
|
||||||
|
<!-- Left-aligned button -->
|
||||||
|
{{-- <button type="button" class="btn btn-primary">Voltar</button> --}}
|
||||||
|
|
||||||
|
<!-- Center-aligned button (using `mx-auto` to push it to the center) -->
|
||||||
|
{{-- <button type="button" class="btn btn-primary mx-auto">Devolver</button> --}}
|
||||||
|
|
||||||
|
<!-- Right-aligned button -->
|
||||||
|
<button type="submit" class="btn btn-primary">Seguinte</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<!-- ./ Workstation card-->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
let formSubmitted = false;
|
||||||
|
|
||||||
|
document.addEventListener('DOMContentLoaded', (event) => {
|
||||||
|
const forms = document.querySelectorAll('.monitored-form');
|
||||||
|
forms.forEach(form => {
|
||||||
|
if (getComputedStyle(form).display !== 'none') { // Verifica se o formulário está visível
|
||||||
|
form.addEventListener('submit', function() {
|
||||||
|
formSubmitted = true;
|
||||||
|
});
|
||||||
|
|
||||||
|
form.addEventListener('input', function() {
|
||||||
|
addBeforeUnload();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function addBeforeUnload() {
|
||||||
|
window.addEventListener('beforeunload', function(e) {
|
||||||
|
if (!formSubmitted) {
|
||||||
|
const message = 'Você tem alterações não salvas. Se você sair, perderá essas alterações.';
|
||||||
|
e.returnValue = message;
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user