diff --git a/.env b/.env index 9f849a3c..74e54776 100755 --- a/.env +++ b/.env @@ -11,6 +11,7 @@ LOG_LEVEL=debug DB_CONNECTION=mysql DB_PORT=3306 + # DB_HOST=127.0.0.1 # DB_DATABASE=ispt_4.0 # DB_USERNAME=root @@ -18,7 +19,7 @@ DB_PORT=3306 # Alteracoes para funcionar com o servidor, porem não funciona na firma DB_HOST=ispt-innovation.com -DB_DATABASE=ispt40_version01_BK +DB_DATABASE=ispt40_version01 DB_USERNAME=ispt40 DB_PASSWORD=qu3ro3ntr@r diff --git a/app/Http/Controllers/CreateProjectController.php b/app/Http/Controllers/CreateProjectController.php index a703a01f..ba3bc5df 100755 --- a/app/Http/Controllers/CreateProjectController.php +++ b/app/Http/Controllers/CreateProjectController.php @@ -51,7 +51,7 @@ public function changeStateProject($projectId) $detailsPrpject->order_project = 3; $detailsPrpject->save(); - // Redireciona para a rota 'home' após alterar o estado para Execussao + // Redireciona para a rota 'home' após alterar o estado para execução return redirect()->route('home'); } @@ -411,12 +411,16 @@ public function receiveUnitsForExcelTemplate($numberProject) // Dados das Fabricas $receveUnits = Unit::where('plant_id', $recevePlant->plant_id)->get(); - // dd($receveUnits); + $filePath = public_path('templateExcel/Valves_Template.xlsx'); // Load the spreadsheet $spreadsheet = IOFactory::load($filePath); // Get the second sheet $sheet = $spreadsheet->getSheet(1); // Sheet index starts from 0 + + // Define o valor de $numberProject na célula E2 + $sheet->setCellValue('E2', $numberProject); + $row = 2; // Row number where you want to start inserting data foreach ($receveUnits as $unit) { // Set value for column D @@ -537,7 +541,7 @@ public function finishCreatingProject($numberProject) return redirect()->back()->with('errors', $allMissingTasks); } else if ($receiveDetailsProject->order_project == 5) { - // Se for igual a 5 significa que forem adicionados apenas equipamentos extras e sendo assim precisa voltar para a Obra em execussao + // Se for igual a 5 significa que forem adicionados apenas equipamentos extras e sendo assim precisa voltar para a Obra Em execução $receiveDetailsProject->order_project = 3; $receiveDetailsProject->save(); return redirect()->route('home'); @@ -613,6 +617,9 @@ public function removeProjectEquipment(Request $request) } public function EditEquipment(Request $request) { + + // dd($request); + // Localiza o equipment pelo numberProject $dataEquipment = Equipment::where('equipment_id', $request->equipmentID)->first(); @@ -669,6 +676,7 @@ public function EditEquipment(Request $request) } } } + return back()->with('success', 'Equipamento Atualizado!'); } @@ -1213,8 +1221,7 @@ public function processStep2(Request $request) { // Valide e processe os dados do formulário $file = $request->file('documento'); - // Criar o array para adicionar o HashMap - // $uniqueRowsHashmap = []; + // Recebe a id do Projecto criado $company_projects_id = $request->numberProject; // Recebe mais detalhes da Obra Atual. @@ -1230,6 +1237,38 @@ public function processStep2(Request $request) $originalFileName = $file->getClientOriginalName(); // Carregue o arquivo Excel $spreadsheet = IOFactory::load($file->path()); + + // Verifica se existe uma sheet chamada 'list' + if ($spreadsheet->sheetNameExists('lists')) { + $listSheet = $spreadsheet->getSheetByName('lists'); + + // Verifica o valor da célula E2 na sheet 'list' + $sheetValueE2 = $listSheet->getCell('E2')->getValue(); + + // Compara com o valor de $request->numberProject + if ($sheetValueE2 != $request->numberProject) { + + // Decide a rota de redirecionamento com base em 'order_project' se osnumeros da Obra nao forem o mesmo + if ($detailsCompanyProject->order_project == 5) { + return redirect()->route('changeFromExecutionToPlanning', ['projectID' => $request->numberProject]) + ->with('danger', 'Arquivo ignorado, Template de outra Obra'); + } else { + return redirect()->route('articulated_2', ['projectID' => $request->numberProject]) + ->with('danger', 'Arquivo ignorado, Template de outra Obra'); + } + } + } else { + // Decide a rota de redirecionamento se a sheet 'lists' não existir + if ($detailsCompanyProject->order_project == 5) { + return redirect()->route('changeFromExecutionToPlanning', ['projectID' => $request->numberProject]) + ->with('danger', 'Arquivo ignorado, por não ser compatível com a template 4.0'); + } else { + return redirect()->route('articulated_2', ['projectID' => $request->numberProject]) + ->with('danger', 'Arquivo ignorado, por não ser compatível com a template 4.0'); + } + } + + // Obtenha a primeira planilha, onde fica os nomes chaves para associar as tabelas : 'general_attributes_equipaments' ,'equipments' e 'equipmentWorkHistorys' $worksheet = $spreadsheet->getSheet(0); // Transforme os dados da planilha em um array @@ -1254,7 +1293,7 @@ public function processStep2(Request $request) $documentType = $parts[2]; // 98 $timestamp = $parts[3]; // 2024-01-14_14-33 - + //Funcao para padronizar as respostas, como eliminar espacos em branco e reduzir o texto sempre para minisculas function normalize($value) { // Remove espaços em branco no início e no fim da string @@ -1296,7 +1335,6 @@ function normalize($value) // Em cada um das linhas horizontais do excel, vai se guardar a 'key' vinculada ao valor do campo preenchido ou seja a 'key' vai ter o mesmo nome de um dos dados da tabela 'general_attributes_equipaments' na coluna : general_attributes_equipment_description, assim sendo mais facil implementar na tabela : specific_attributes_equipament_types $joinArrays = array_combine($columnNames, $dataLines); - // vai guardar todos os campos de possiveis novos equipamentos, cada um em um array para multiplos inserts, na base de dados $datas = array_filter($joinArrays, function ($chave) { return !empty($chave); @@ -1493,7 +1531,7 @@ function normalize($value) // Caso a linha nao se enquadre em nenhuma das verificacoes anteriores, ele sera considerado um equipamento novo. } else { - //Novo equipamento + //--------- Novo equipamento $newEquipament = new Equipment; $newEquipament->unit_id = $detailsUnit->unit_id; $newEquipament->equipment_type_id = $equipmentType->equipment_type_id; @@ -1512,7 +1550,9 @@ function normalize($value) //Criar 'specific_attributes_equipament_types' de acordo com o escrito, na linha do excel $generalAttributes = GeneralAttributesEquipment::all(); + foreach ($generalAttributes as $generalAttribute) { + // Verifica se a chave existe em $datas if (isset($datas[$generalAttribute->general_attributes_equipment_description])) { $specificAttribute = new SpecificAttributesEquipmentType; diff --git a/app/Http/Controllers/ExecutionProjectController.php b/app/Http/Controllers/ExecutionProjectController.php index e27f0a64..fcc056e4 100755 --- a/app/Http/Controllers/ExecutionProjectController.php +++ b/app/Http/Controllers/ExecutionProjectController.php @@ -4,6 +4,7 @@ use App\Models\Company; use App\Models\EquipmentWorkHistory; +use App\Models\OrderEquipmentTasks; use App\Models\PendingEquipment; use App\Models\Plant; use App\Models\ProjectExcelLog; @@ -567,7 +568,7 @@ public function receiveExecutionProject($ProjectId) // dd($allWorkstations); // Adicionando a nomenclatura de workstation aos usuários filtrados $filteredUsers->map(function ($user) use ($allWorkstations) { - if (isset ($allWorkstations[$user->user_name])) { + if (isset($allWorkstations[$user->user_name])) { $user->nomenclature_workstation = $allWorkstations[$user->user_name]->nomenclature_workstation; } return $user; @@ -598,7 +599,7 @@ public function receiveExecutionProject($ProjectId) return redirect()->route('home'); } else { - //Caso nem todos os equipamento tenham-se concluidos, deve voltar a pagina de Execussao normalmente + //Caso nem todos os equipamento tenham-se concluidos, deve voltar a pagina de execução normalmente // Retornando a view com os dados necessários return view('projectsClients/executionProjectNew', [ @@ -734,69 +735,52 @@ public function showQrcodesInProject($projectNumber) ->with('equipmentsProjects', $equipmentsProjects); } - - - // public function receiveDetailsEquipmentsProject(Request $request) - // { - // $numberProject = $request->input('receiveNumberProject'); - // $tableType = $request->input('tableType'); // Captura o tipo de tabela - - // // Para - // if ($tableType == 'pending') { - - // $initialQuery = Equipment::where('company_projects_id', $numberProject); - - // } else { - // // Lógica para a tabela 'normal' - // $initialQuery = Equipment::where('company_projects_id', $numberProject); - // } - - // $query = $initialQuery->get(); // Certifique-se de usar get() para retornar uma coleção - - // return DataTables::of($query) - // ->addColumn('equipment_type_name', function ($query) { - // // Retorna 'equipment_type_name' do relacionamento 'equipmentType' - // return $query->equipmentType ? $query->equipmentType->equipment_type_name : 'N/A'; - // }) - // ->addColumn('unit_name', function ($query) { - // // Retorna 'unit_name' do relacionamento 'unit' - // return $query->unit ? $query->unit->unit_name : 'N/A'; - // }) - // ->addColumn('ambit_name', function ($query) { - // $firstEquipmentWorkHistory = $query->equipmentWorkHistory->first(); - // return $firstEquipmentWorkHistory->equipmentAssociationAmbit->ambitsEquipment->ambits_description; - // }) - // ->make(true); - // } - public function receiveDetailsEquipmentsProject(Request $request) { $numberProject = $request->input('receiveNumberProject'); $tableType = $request->input('tableType'); // Captura o tipo de tabela - - // Ajusta a query inicial dependendo se estamos buscando equipamentos pendentes ou normais. + // query inicial dependendo se estamos buscando equipamentos pendentes ou normais. $initialQuery = Equipment::where('company_projects_id', $numberProject) ->whereHas('equipmentWorkHistory', function ($query) use ($tableType) { - //Para a tabela com status = pending' deve ir equipamentos com status = 1 pois estao pendentes para Aprovar - // Para os restantes equipamentos vao para a tabela que lista os equipamentos da Obra,porem apenas os equipmentos com status = 0 - //Equipamentos concluidos e aprovados,vao ter o status = 2 e servir apenas para visualizar - - // Definir o status com base no tipo de tabela + // Para a tabela 'pending' devem ir equipamentos com status = 1 ou 4 (por rever) pois estão pendentes para aprovação if ($tableType === 'pending') { $statuses = [1, 4]; // Equipamentos pendentes para aprovação $query->whereIn('equipment_status_project', $statuses); - } else if ($tableType === 'completed') { + } + // Para a tabela 'completed', apenas equipamentos concluídos e aprovados (status = 2) + else if ($tableType === 'completed') { $status = 2; // Equipamentos concluídos e aprovados $query->where('equipment_status_project', $status); - } else { - $status = 0; // Outros equipamentos em andamento (normal) - $query->where('equipment_status_project', $status); + } + // Para as tabelas 'start' e 'execution', primeiro filtramos equipamentos em andamento (status = 0) + else if (in_array($tableType, ['start', 'execution'])) { + $query->where('equipment_status_project', 0); } }); - $query = $initialQuery->get(); // Obtém a coleção de equipamentos com base nos critérios + // lógica para 'start' e 'execution' diretamente com a relação entre equipmentWorkHistory e controlEquipmentWorkstation + if ($tableType === 'start') { + // Equipamentos que ainda não iniciaram (sem registros no ControlEquipmentWorkstation) + $initialQuery->whereHas('equipmentWorkHistory', function ($query) { + $query->whereDoesntHave('controlEquipmentWorkstation', function ($subQuery) { + $subQuery->whereNotNull('equipmentWorkHistorys_id'); // Equipamentos que ainda não iniciaram + }); + }); + } else if ($tableType === 'execution') { + // Equipamentos já iniciados (com registros no ControlEquipmentWorkstation) + $initialQuery->whereHas('equipmentWorkHistory', function ($query) { + $query->whereHas('controlEquipmentWorkstation', function ($subQuery) { + $subQuery->whereNotNull('equipmentWorkHistorys_id'); // Equipamentos que já iniciaram + }); + }); + } + $query = $initialQuery->get(); // Obtém a coleção de equipamentos com base nos critérios return DataTables::of($query) + ->addColumn('ispt_number', function ($equipment) { + $firstEquipmentWorkHistory = $equipment->equipmentWorkHistory->first(); + return $firstEquipmentWorkHistory ? $firstEquipmentWorkHistory->ispt_number : 'N/A'; + }) ->addColumn('equipment_type_name', function ($equipment) { // Retorna 'equipment_type_name' do relacionamento 'equipmentType' return $equipment->equipmentType ? $equipment->equipmentType->equipment_type_name : 'N/A'; @@ -809,7 +793,6 @@ public function receiveDetailsEquipmentsProject(Request $request) $firstEquipmentWorkHistory = $equipment->equipmentWorkHistory->first(); return $firstEquipmentWorkHistory ? $firstEquipmentWorkHistory->equipmentAssociationAmbit->ambitsEquipment->ambits_description : 'N/A'; }) - ->addColumn('extra_equipment', function ($equipment) { $firstEquipmentWorkHistory = $equipment->equipmentWorkHistory->first(); if ($firstEquipmentWorkHistory) { @@ -818,14 +801,78 @@ public function receiveDetailsEquipmentsProject(Request $request) return 'N/A'; // Retorna 'N/A' se não houver registros na relação equipmentWorkHistory }) + // ->addColumn('status', function ($equipment) { + // // Pegue o primeiro equipmentWorkHistory do equipamento + // $firstEquipmentWorkHistory = $equipment->equipmentWorkHistory->first(); + // if (!$firstEquipmentWorkHistory) { + // return 'N/A'; // Se não houver histórico de trabalho + // } + + // // Pegue os valores de 'elemental_tasks_id' da tabela OrderEquipmentTasks com base no equipmentWorkHistorys_id + // $elementalTasks = OrderEquipmentTasks::where('equipmentWorkHistorys_id', $firstEquipmentWorkHistory->equipmentWorkHistorys_id) + // ->pluck('elemental_tasks_id') + // ->toArray(); // Armazena todos os elemental_tasks_id em um array + + // // Se não houver tarefas elementares, retorna '0 / 0' + // if (empty($elementalTasks)) { + // return '0 / 0'; + // } + + // // Busque correspondências na tabela control_equipment_workstation com base nos mesmos 'elemental_tasks_id' + // $correspondencias = ControlEquipmentWorkstation::where('equipmentWorkHistorys_id', $firstEquipmentWorkHistory->equipmentWorkHistorys_id) + // ->whereIn('elemental_tasks_id', $elementalTasks) // Verifica as correspondências + // ->count(); // Conta quantas correspondências existem + + // // Total de tarefas é o número de 'elemental_tasks_id' que encontramos na tabela OrderEquipmentTasks + // $totalDeTarefas = count($elementalTasks); + + // // Retorne a string com o formato 'contador de tarefas / total de tarefas' + // return $correspondencias . ' / ' . $totalDeTarefas; + // }) + + ->addColumn('status', function ($equipment) { + // Pegue o primeiro equipmentWorkHistory do equipamento + $firstEquipmentWorkHistory = $equipment->equipmentWorkHistory->first(); + if (!$firstEquipmentWorkHistory) { + return 'N/A'; // Se não houver histórico de trabalho + } + + // Pegue os valores de 'elemental_tasks_id' da tabela OrderEquipmentTasks com base no equipmentWorkHistorys_id + $elementalTasks = OrderEquipmentTasks::where('equipmentWorkHistorys_id', $firstEquipmentWorkHistory->equipmentWorkHistorys_id) + ->pluck('elemental_tasks_id') + ->toArray(); // Armazena todos os elemental_tasks_id em um array + + // Se não houver tarefas elementares, retorna '0 / 0' + if (empty($elementalTasks)) { + return '0 / 0'; + } + + // Busque correspondências na tabela control_equipment_workstation com base nos mesmos 'elemental_tasks_id', + // usando distinct para contar apenas valores únicos de 'elemental_tasks_id' + $correspondencias = ControlEquipmentWorkstation::where('equipmentWorkHistorys_id', $firstEquipmentWorkHistory->equipmentWorkHistorys_id) + ->whereIn('elemental_tasks_id', $elementalTasks) // Verifica as correspondências + ->distinct('elemental_tasks_id') // Garante que só tarefas únicas sejam contadas + ->count(); // Conta quantas correspondências existem + + // Total de tarefas é o número de 'elemental_tasks_id' que encontramos na tabela OrderEquipmentTasks + $totalDeTarefas = count($elementalTasks); + + // Retorne a string com o formato 'contador de tarefas / total de tarefas' + return $correspondencias . ' / ' . $totalDeTarefas; + }) + + ->addColumn('action', function ($dataEquipment) use ($numberProject, $tableType) { $equipmentStatus = ($tableType === 'pending' ? 1 : ($tableType === 'completed' ? 2 : 0)); $actionBtn = ''; return $actionBtn; }) - ->make(true); } + + + + } \ No newline at end of file diff --git a/app/Http/Controllers/ProjectoDatacontroller.php b/app/Http/Controllers/ProjectoDatacontroller.php index 5398deb1..2ef62ba5 100755 --- a/app/Http/Controllers/ProjectoDatacontroller.php +++ b/app/Http/Controllers/ProjectoDatacontroller.php @@ -22,6 +22,7 @@ use Yajra\DataTables\Facades\DataTables; +use Carbon\Carbon; use App\Models\Equipment; use App\Models\Plant; @@ -79,7 +80,7 @@ public function completedEquipmentInProject(Request $request) OrderEquipmentTasks::whereIn('id', $tasksToDelete->pluck('id'))->delete(); } - // Voltar home da Obra em execussao + // Voltar home da Obra Em execução return redirect()->route('ExecutionProject', ['projectID' => $equipmentHistoryDetails->company_projects_id]) ->with('success', 'Equipamento ' . $equipmentHistoryDetails->equipment->equipment_tag . 'foi alterado para "Concluido"'); @@ -143,8 +144,8 @@ public function createPDFforcompletedEquipment($equipmentId) } else { // Caso não haja dados, defina datas nulas - $oldestDate = null; - $latestDate = null; + $startDate = null; + $endDate = null; } @@ -169,7 +170,7 @@ public function createPDFforcompletedEquipment($equipmentId) // Contador para a ordem dos âmbitos $ambitCounter = 1; - + // Itera sobre cada âmbito anterior foreach ($receiveAmbitHistory as $index => $ambitHistory) { @@ -181,7 +182,7 @@ public function createPDFforcompletedEquipment($equipmentId) if ($tasksByAmbit->has($ambitId)) { $tasksForAmbit = $tasksByAmbit->get($ambitId); - + // Loop para associar a ultima tarefa feita de acordo com o ambito relacionado com ela. foreach ($tasksForAmbit as $taskHistory) { if ($ambitId == $latestAmbitHistory->history_of_equipment_ambits_id) { @@ -204,9 +205,17 @@ public function createPDFforcompletedEquipment($equipmentId) } } - // - $workstationTaskAnswer = $taskHistory->workstationsTaskAnswers->first(); + // Verifica se há um comentário associado e adiciona ao taskHistory + if ($taskHistory->taskEquipmentComment) { + $taskHistory->taskComment = $taskHistory->taskEquipmentComment->task_comment; + } + // else { + // $taskHistory->taskComment = 'N/A'; // Ou qualquer outro valor padrão caso não tenha comentário + // } + + //recebe os dados do id da workstations_task_answers_id, control_equipment_workstation_id e as respostar : answer_json + $workstationTaskAnswer = $taskHistory->workstationsTaskAnswers->first(); if ($workstationTaskAnswer && $workstationTaskAnswer->answer_json) { $answersArray = json_decode($workstationTaskAnswer->answer_json, true); @@ -245,7 +254,9 @@ public function createPDFforcompletedEquipment($equipmentId) // Define os caminhos das logos- Simbolo ISPT_4.0 - $defaultLogoPath = '/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-100.jpg'; + // $defaultLogoPath = '/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-100.jpg'; + + $defaultLogoPath = '/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-8.png'; $isptLogoPath = '/img/ispt/ispt.jpg'; @@ -279,6 +290,10 @@ public function createPDFforcompletedEquipment($equipmentId) ]); } } + + // dd($receiveDetailsProject); + //Deve devolver com Observacoes se existir. + //Precisamos receber o Tipo de equipamento e detalhes da Obra, alem do atributos especificos de acordo com o tipo de equipamento. // Converte as imagens para base64 usando o serviço PdfWrapper $pdfWrapper = new PdfWrapper(); @@ -477,6 +492,13 @@ public function showAmbitDetailsProjectHistory($equipmentStatus, $projectID, $eq $taskHistory->cardTypeStyle = 'gray'; // Adiciona o campo 'cardTypeStyle' $taskHistory->typeStatusHistory = 'historic'; + // Verifica se há um comentário associado e adiciona ao taskHistory + if ($taskHistory->taskEquipmentComment) { + $taskHistory->taskComment = $taskHistory->taskEquipmentComment->task_comment; + } + + + // Obtém o primeiro registro de workstationsTaskAnswers ou define como null se não existir $workstationTaskAnswer = $taskHistory->workstationsTaskAnswers->first(); @@ -531,7 +553,7 @@ public function showAmbitDetailsProjectHistory($equipmentStatus, $projectID, $eq $taskHistory->runtime = $diffInDays . ' dias ' . $remainingHours . ' horas'; } } else { - $taskHistory->runtime = 'N/A'; // Ou qualquer valor padrão que você prefira + $taskHistory->runtime = 'N/A'; // valor padrão } // Adiciona o taskHistory à coleção principal @@ -583,10 +605,6 @@ public function showAmbitDetailsProjectHistory($equipmentStatus, $projectID, $eq ]); } - // dd($receiveAllTasksHistiory); - - //recebe normalmente, porem os checkbox nao conseguem buscar valor, execepto o ultimo dado. - return view('projectsClients.showAmbitDetailProjectHistory', compact('receiveComments', 'equipmentStatus', 'detailsProject', 'receiveAmbit', 'receiveAllTasksHistiory', 'detalsEquipment', 'detailsEquipmentWorkProject')); } @@ -721,7 +739,6 @@ public function projectDetails_11($projectID, $equipmentID) ->where('company_projects_id', $projectID) ->first(); - $attributes = SpecificAttributesEquipmentType::where('equipment_id', $equipmentID)->get(); // recebe todos os atributos espesificos do equipamento // $DetailsTasks = OrderEquipmentTasks::where('equipmentWorkHistorys_id', $receiveEquipmentWorkHistorys->equipmentWorkHistorys_id)->get(); // Todas as tarefas que o equipamento vai realizar : @@ -803,10 +820,11 @@ public function projectDetails_11($projectID, $equipmentID) foreach ($specificAttributes as $attribute) { $specificAttributesArray[$attribute->general_attributes_equipment_id] = $attribute->specific_attributes_value; } + + // Cria um sistema de 1 a 3 , onde 1 e apenas 'ler', 2 apenas editar e 3 as 2 opcoes + $portfolioOnlyreadOrEditToo = 3; //filteredTasks', 'OrdemTasks', 'DetailsTasks' campos vazios para ISV. - - - return view('projectsClients.articulated_2_ShowEquipment', compact('detailsProject', 'dataEquipment', 'filteredTasks', 'OrdemTasks', 'DetailsTasks', 'specificAttributesArray', 'receiveEquipmentWorkHistorys')); + return view('projectsClients.articulated_2_ShowEquipment', compact('detailsProject', 'dataEquipment', 'filteredTasks', 'OrdemTasks', 'DetailsTasks', 'specificAttributesArray', 'receiveEquipmentWorkHistorys','portfolioOnlyreadOrEditToo')); } //Funcao que recebe a Acoes do dataTables do portifolio. @@ -850,7 +868,10 @@ public function articulated_22($equipmentID) $specificAttributesArray[$attribute->general_attributes_equipment_id] = $attribute->specific_attributes_value; } - return view('projectsClients.testRoute', compact('dataEquipment', 'receiveAlldetailsEquipmentWorkHistory', 'specificAttributesArray')); + // Cria um sistema de 1 a 3 , onde 1 e apenas 'ler', 2 apenas editar e 3 as 2 opcoes + $portfolioOnlyreadOrEditToo = 3; + + return view('projectsClients.testRoute', compact('dataEquipment', 'receiveAlldetailsEquipmentWorkHistory', 'specificAttributesArray', 'portfolioOnlyreadOrEditToo')); } diff --git a/app/Http/Controllers/WorkstationsJobsController.php b/app/Http/Controllers/WorkstationsJobsController.php index e40ddb2d..e17c6ca0 100755 --- a/app/Http/Controllers/WorkstationsJobsController.php +++ b/app/Http/Controllers/WorkstationsJobsController.php @@ -329,10 +329,10 @@ public function getEquipmentData($equipment_id, $component_tag) // Busca os dados da Ws com base no Login $receiveDataWs = ConstructionWorkstation::where('name_workstations', $userEmail->user_name)->first(); // Recebe os dados do Equipamento - $receiveDataEquipment = Equipment::where('equipment_id', $equipment_id)->first(); + $dataEquipment = Equipment::where('equipment_id', $equipment_id)->first(); //Recebe os atributos especificos - $specificAttributes = SpecificAttributesEquipmentType::where('equipment_id', $receiveDataEquipment->equipment_id)->get(); + $specificAttributes = SpecificAttributesEquipmentType::where('equipment_id', $dataEquipment->equipment_id)->get(); $specificAttributesArray = []; @@ -345,8 +345,8 @@ public function getEquipmentData($equipment_id, $component_tag) // Busca os dados do equipamento - $receiveEquipmentWorkHistory = EquipmentWorkHistory::where('equipment_id', $receiveDataEquipment->equipment_id) - ->where('company_projects_id', $receiveDataEquipment->company_projects_id) + $receiveEquipmentWorkHistory = EquipmentWorkHistory::where('equipment_id', $dataEquipment->equipment_id) + ->where('company_projects_id', $dataEquipment->company_projects_id) ->first(); //Recebe os dados do Ambito para o equipamento atual @@ -612,7 +612,7 @@ public function getEquipmentData($equipment_id, $component_tag) $receiveComments = EquipmentComment::with(['user']) ->where('equipmentWorkHistorys_id', $receiveEquipmentWorkHistory->equipmentWorkHistorys_id) - ->where('company_projects_id', $receiveDataEquipment->company_projects_id) + ->where('company_projects_id', $dataEquipment->company_projects_id) ->get() ->transform(function ($comment) { // Adiciona uma nova propriedade ao objeto de comentário @@ -620,17 +620,21 @@ public function getEquipmentData($equipment_id, $component_tag) return $comment; }); - $receiveDataEquipment->istp_number = $receiveEquipmentWorkHistory->ispt_number; - $receiveDataEquipment->equipment_ambit = $receiveAmbit->ambitsEquipment->ambits_description; + $dataEquipment->istp_number = $receiveEquipmentWorkHistory->ispt_number; + $dataEquipment->equipment_ambit = $receiveAmbit->ambitsEquipment->ambits_description; + + // Cria um sistema de 1 a 3 , onde 1 e apenas 'ler', 2 apenas editar e 3 as 2 opcoes + $portfolioOnlyreadOrEditToo = 3; return view('workstations.workstations', [ // Deve receber o atual COntrol ID ? tudo a vez que atualizar ?? 'receiveComments' => $receiveComments, 'dataControlEquipment' => $receiveDataControlEquipment, - 'receiveDataEquipment' => $receiveDataEquipment, + 'dataEquipment' => $dataEquipment, 'specificAttributesArray' => $specificAttributesArray, 'recebeTasksForEquipment' => $recebeTasksForEquipment, - 'receiveComponentTag' => $component_tag + 'receiveComponentTag' => $component_tag, + 'portfolioOnlyreadOrEditToo' => $portfolioOnlyreadOrEditToo, // 'divisionElementalTasks' => $divisionElementalTasks, ]); } diff --git a/app/Http/Middleware/CheckUserType.php b/app/Http/Middleware/CheckUserType.php index dbbe6828..1a86b2a5 100755 --- a/app/Http/Middleware/CheckUserType.php +++ b/app/Http/Middleware/CheckUserType.php @@ -54,10 +54,10 @@ protected function getAllowedRoutesForUserType($userType) switch ($userType) { case 5: // Técnico - return ['enterWorkstation', 'getEquipmentData', 'receiveAnswersEquipment','sendTaskComment']; + return ['enterWorkstation', 'getEquipmentData', 'receiveAnswersEquipment','sendTaskComment','editEquipment']; case 3: // Empresa return ['dashboardClient','reportingDataClient', 'manageAssetsClient','usersProfiles', - // Obras em Execussao + // Obras Em execução 'ExecutionProject', //Relatorios 'showDataDetailsProjectClient','showReportingForAmbitsProject', diff --git a/app/Http/ViewComposers/WorkstationComposer.php b/app/Http/ViewComposers/WorkstationComposer.php index dcfdc1bb..c0f2ade4 100755 --- a/app/Http/ViewComposers/WorkstationComposer.php +++ b/app/Http/ViewComposers/WorkstationComposer.php @@ -25,7 +25,7 @@ public function compose(View $view) $equipmentToReview = collect(); // Coleção para armazenar equipamentos para revisão - $executionEquipment = collect();// Coleção para armazenar equipamentos em execussao + $executionEquipment = collect();// Coleção para armazenar equipamentos Em execução $completedEquipments = collect(); // Coleção para armazenar equipamentos concluídos // Verifica equipamentos que tenho 2 dados com o departure_date = NULL e especificamente um dado tem o elemental_tasks_id = 9 e o outro igual a NULL. @@ -129,8 +129,8 @@ public function compose(View $view) // Se não houver registros, considera como valor 0 (nenhuma tarefa ativa) $equipmentStatus[$equipment->equipment_id] = 0; } else { - //Caso ja tenha dados sobre o equipamento no control, significa que ja e um equipamento 'Em execussao' - //Ao colocar aqui a adicao a execussao, ele apenas considera os equipamentos que estao em algum posto de trabalho, sem considerar as tarefas ja feitas. + //Caso ja tenha dados sobre o equipamento no control, significa que ja e um equipamento 'Em execução' + //Ao colocar aqui a adicao a execução, ele apenas considera os equipamentos que estao em algum posto de trabalho, sem considerar as tarefas ja feitas. $executionEquipment->push($equipment); //Deve verificar se o departure_date e NULL e o id_workstations <> null, e status = 0 diff --git a/app/Models/ControlEquipmentWorkstation.php b/app/Models/ControlEquipmentWorkstation.php index 7065283d..0e2c8f2f 100755 --- a/app/Models/ControlEquipmentWorkstation.php +++ b/app/Models/ControlEquipmentWorkstation.php @@ -27,6 +27,11 @@ public function equipmentWorkHistory() return $this->belongsTo(EquipmentWorkHistory::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); } + public function taskEquipmentComment() + { + return $this->belongsTo(TaskEquipmentComment::class, 'control_equipment_workstation_id', 'control_equipment_workstation_id'); + } + public function elementalTask() { return $this->belongsTo(ElementalTasks::class, 'elemental_tasks_id', 'elemental_tasks_id'); diff --git a/app/Models/EquipmentWorkHistory.php b/app/Models/EquipmentWorkHistory.php index 11565378..a634e501 100644 --- a/app/Models/EquipmentWorkHistory.php +++ b/app/Models/EquipmentWorkHistory.php @@ -32,6 +32,12 @@ public function controlEquipmentWorkstation() return $this->hasMany(ControlEquipmentWorkstation::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); } + public function OrderEquipmentTasks() + { + return $this->hasMany(OrderEquipmentTasks::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); + } + + public function taskEquipmentComment() { return $this->hasMany(TaskEquipmentComment::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); diff --git a/app/Models/OrderEquipmentTasks.php b/app/Models/OrderEquipmentTasks.php index f20d4217..a05dfaff 100755 --- a/app/Models/OrderEquipmentTasks.php +++ b/app/Models/OrderEquipmentTasks.php @@ -24,6 +24,11 @@ public function elementalTask() return $this->belongsTo(ElementalTasks::class,'elemental_tasks_id','elemental_tasks_id'); } + public function equipmentWorkHistory() + { + return $this->belongsTo(EquipmentWorkHistory::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); + } + // public function furtherTasks() // { // return $this->belongsTo(FurtherTasks::class,'further_tasks_id','further_tasks_id'); diff --git a/app/Models/TaskEquipmentComment.php b/app/Models/TaskEquipmentComment.php index 530d6ea3..cab125fd 100644 --- a/app/Models/TaskEquipmentComment.php +++ b/app/Models/TaskEquipmentComment.php @@ -23,4 +23,9 @@ public function equipmentWorkHistory() return $this->belongsTo(EquipmentWorkHistory::class, 'equipmentWorkHistorys_id', 'equipmentWorkHistorys_id'); } + public function controlEquipmentWorkstation() + { + return $this->belongsTo(ControlEquipmentWorkstation::class, 'control_equipment_workstation_id', 'control_equipment_workstation_id'); + } + } diff --git a/config/app.php b/config/app.php index bc366b83..edaab33e 100755 --- a/config/app.php +++ b/config/app.php @@ -70,7 +70,9 @@ | */ - 'timezone' => 'UTC', + // 'timezone' => 'UTC', + 'timezone' => 'Europe/Lisbon', + /* |-------------------------------------------------------------------------- diff --git a/public/companies_logo/1726759230.jpg b/public/companies_logo/1726759230.jpg new file mode 100644 index 00000000..fdc02cf2 Binary files /dev/null and b/public/companies_logo/1726759230.jpg differ diff --git a/public/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-8.png b/public/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-8.png new file mode 100644 index 00000000..e4152aee Binary files /dev/null and b/public/img/ispt/4.0/Ispt4.0_Símbolo_Fundo_Azul-Marinho@2x-8.png differ diff --git a/public/img/ispt/The-Navigator-Company-group-Logotip.jpg b/public/img/ispt/The-Navigator-Company-group-Logotip.jpg new file mode 100644 index 00000000..fdc02cf2 Binary files /dev/null and b/public/img/ispt/The-Navigator-Company-group-Logotip.jpg differ diff --git a/public/img/ispt/galpLogo1.png b/public/img/ispt/galpLogo1.png new file mode 100755 index 00000000..1cfda590 Binary files /dev/null and b/public/img/ispt/galpLogo1.png differ diff --git a/public/img/ispt/png-transparent-logo-the-navigator-company-brand-design-angle-white-text-thumbnail.png b/public/img/ispt/png-transparent-logo-the-navigator-company-brand-design-angle-white-text-thumbnail.png new file mode 100644 index 00000000..c044a8f5 Binary files /dev/null and b/public/img/ispt/png-transparent-logo-the-navigator-company-brand-design-angle-white-text-thumbnail.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2590_4095/img1.png b/public/receiveImagesControlEquipmentWorkstation/2590_4095/img1.png new file mode 100644 index 00000000..9cca2b7e Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2590_4095/img1.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2617_4095/img1.png b/public/receiveImagesControlEquipmentWorkstation/2617_4095/img1.png new file mode 100644 index 00000000..8b693cca Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2617_4095/img1.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2617_4095/img2.png b/public/receiveImagesControlEquipmentWorkstation/2617_4095/img2.png new file mode 100644 index 00000000..1fcaea09 Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2617_4095/img2.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2618_4095/img1.png b/public/receiveImagesControlEquipmentWorkstation/2618_4095/img1.png new file mode 100644 index 00000000..fc68a5df Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2618_4095/img1.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2618_4095/img2.png b/public/receiveImagesControlEquipmentWorkstation/2618_4095/img2.png new file mode 100644 index 00000000..c7db1e64 Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2618_4095/img2.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2619_4095/img1.png b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img1.png new file mode 100644 index 00000000..57f806ea Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img1.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2619_4095/img2.png b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img2.png new file mode 100644 index 00000000..9e98cd33 Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img2.png differ diff --git a/public/receiveImagesControlEquipmentWorkstation/2619_4095/img3.png b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img3.png new file mode 100644 index 00000000..f8e3e4c3 Binary files /dev/null and b/public/receiveImagesControlEquipmentWorkstation/2619_4095/img3.png differ diff --git a/public/templateExcel/.~Valves_Template.xlsx b/public/templateExcel/.~Valves_Template.xlsx new file mode 100644 index 00000000..ef7113ce Binary files /dev/null and b/public/templateExcel/.~Valves_Template.xlsx differ diff --git a/public/templateExcel/Valves_Template.xlsx b/public/templateExcel/Valves_Template.xlsx index e7bedaa0..29d05803 100644 Binary files a/public/templateExcel/Valves_Template.xlsx and b/public/templateExcel/Valves_Template.xlsx differ diff --git a/resources/views/Templates/templateWorkstations.blade.php b/resources/views/Templates/templateWorkstations.blade.php index 2c71a135..0ee479cf 100755 --- a/resources/views/Templates/templateWorkstations.blade.php +++ b/resources/views/Templates/templateWorkstations.blade.php @@ -35,6 +35,12 @@ + + {{-- --}} + + + + - - - - - {{--
-
- @include( - 'projectsClients.pdf._header', - compact('tag', 'numeroPanini', 'nObra', 'ambito', 'projectLogoPath', 'companyLogoPath')) -
- -
- {{ $slot }} -
- - -
--}} - -
- - - {{--
--}} - @yield('firstPage') - - - {{--
- @yield('loopPages') -
--}} - -
- - - - - diff --git a/resources/views/components/portfolio/portfolioAttributesForEquipments.blade.php b/resources/views/components/portfolio/portfolioAttributesForEquipments.blade.php new file mode 100644 index 00000000..5138341d --- /dev/null +++ b/resources/views/components/portfolio/portfolioAttributesForEquipments.blade.php @@ -0,0 +1,2873 @@ + +@if ($dataEquipment->equipment_type_id == 1) + + + @if ($portfolioOnlyreadOrEditToo == 1 || $portfolioOnlyreadOrEditToo == 3) + {{-- Visualizar --}} +
+ +
+
+

CV

+
+
+ + + +
+ +
+
+ + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} +
+ +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line :dimension, rating, dim_right --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line : manufacturer, actuatorManufacturer, ActuatorModel --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 4 inputs per line : actuatorSerialNumber, positionerManufacturer, positionerSerialNumber, isolation --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 4 Selects per line : scaffolding, crane, interlocks, decontamination --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ +
+ + +
+
+ +
+ @endif + + + @if ($portfolioOnlyreadOrEditToo == 2 || $portfolioOnlyreadOrEditToo == 3) + {{-- Editar --}} +
+
+
+

CV - Editar

+
+
+ @csrf + + + +
+ + + +
+ +
+
+ + +
+
+ +
+
+ + + + +
+
+ +
+ + + +
+ +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line :dimension, rating, dim_right --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line : manufacturer, actuatorManufacturer, ActuatorModel --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 4 inputs per line : actuatorSerialNumber, positionerManufacturer, positionerSerialNumber, isolation --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ +
+ + + +
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ + + +
+
+ + + + +
+
+ + +
+ + + +
+
+
+
+ @endif + + +@elseif ($dataEquipment->equipment_type_id == 2) + + @if ($portfolioOnlyreadOrEditToo == 1 || $portfolioOnlyreadOrEditToo == 3) + {{-- Visualizar --}} +
+ + {{-- ISV-card-visualizar --}} +
+
+

ISV - Visualizar

+
+ +
+ + +
+ +
+
+ + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} +
+ +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line :dimension, rating, dim_right --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ {{-- ./row --}} + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 Inputs per line :material ,manufacturer ,isolation --}} +
+
+
+ + + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ {{-- ./row --}} + + {{-- 4 Selects per line : scaffolding, crane, interlocks, decontamination --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ +
+ + +
+ +
+ {{-- ./ISV-card-visualizar --}} + + + @if (isset($receiveEquipmentWorkHistorys)) + {{-- Âmbito-ISV - Visualizar --}} +
+ +
+

Âmbito : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} + - Visualizar +

+
+ +
+
+ {{-- ./card-header --}} +
+
+
+

Lista de Tarefas Elementares : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} +

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Tarefas ElementaresSelecionar Tarefa +
TE1Desmontar da linha + +
TE2Descontaminar + +
TE4(3)Abertura da válvula, análise e controle dos componentes + +
TE5Limpeza e lavagem dos componentes + +
TE7(3)Fecho da válvula e substituição de componentes + +
TE14Ensaio + +
TE9Pintura + +
TE10Montagem na linha + +
TE11Inspeção Final + +
TE15Empancar (ISV) + +
+
+ + {{-- @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) --}} + +
+ {{-- ./description --}} +
+ {{-- ./card-body --}} +
+ {{-- ./Ambito ISV - Visualizar --}} + @endif + +
+ {{-- Visualizar --}} + @endif + + + @if ($portfolioOnlyreadOrEditToo == 2 || $portfolioOnlyreadOrEditToo == 3) + {{-- Editar --}} +
+ + {{-- ISV-card-Editar --}} +
+
+

ISV - Editar

+
+ +
+ @csrf +
+ + + + +
+
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} +
+ +
+
+ + + + +
+
+
+
+ + + + + {{-- --}} +
+
+
+
+ + + + + {{-- --}} +
+
+
+ + + {{-- 3 inputs per line :dimension, rating, dim_right --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ {{-- ./row --}} + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 Inputs per line :material ,manufacturer ,isolation --}} +
+
+
+ + + + + +
+
+
+
+ + + + +
+
+ +
+
+ + + + +
+
+
+ {{-- ./row --}} + + {{-- 4 Selects per line : scaffolding, crane, interlocks, decontamination --}} +
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ +
+ + + +
+ + +
+ + +
+ {{-- ./ISV-card-Editar --}} + + + @if (isset($receiveEquipmentWorkHistorys)) + {{-- Âmbito-ISV - Editar --}} +
+ +
+

Âmbito : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} + - Editar +

+
+ +
+
+ {{-- ./card-header --}} +
+
+
+

Lista de Tarefas Elementares : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} +

+
+ +
+
+ @csrf + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Tarefas ElementaresSelecionar Tarefa +
TE1Desmontar da linha + + + +
TE2Descontaminar + + + +
TE4(3)Abertura da válvula, análise e controle dos componentes + + + +
TE5Limpeza e lavagem dos componentes + + + +
TE7(3)Fecho da válvula e substituição de componentes + + + +
TE14Ensaio + + + +
TE9Pintura + + + +
TE10Montagem na linha + + + +
TE11Inspeção Final + + + +
TE15Empancar (ISV) + + + +
+ + +
+
+ + @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) + +
+ {{-- ./description --}} +
+ {{-- ./card-body --}} +
+ {{-- ./Ambito ISV - Editar --}} + @endif + +
+ {{-- Editar --}} + @endif + + +@elseif ($dataEquipment->equipment_type_id == 3) + + @if ($portfolioOnlyreadOrEditToo == 1 || $portfolioOnlyreadOrEditToo == 3) + {{-- Visualizar --}} +
+ {{-- ./PSV-card --}} +
+
+

PSV

+
+ +
+ + +
+ +
+
+ + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} +
+ +
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + + + {{-- 3 inputs per line :dim_ent, dim_exit, dim_right --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : rating, rating_flange_mount, rating_flange_jusante --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line :SP_(Bar)_Cold, Back_Presure_(Bar), manufacturer --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : material, isolation, decontamination --}} +
+ +
+
+ + + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ + +
+ + + {{-- 3 Selects per line : scaffolding, crane, interlocks --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + + +
+
+ +
+
+ + + + +
+
+ +
+ + +
+ +
+ {{-- ./PSV-card --}} + + + @if (isset($receiveEquipmentWorkHistorys)) + {{-- Âmbito-PSV-Visualizar --}} +
+ +
+

Âmbito : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} + - Visualizar +

+
+ +
+
+ {{-- ./card-header --}} +
+
+
+

Lista de Tarefas Elementares : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} +

+
+ +
+ + + + + + + + {{-- --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Tarefas ElementaresSelecionar Tarefa + Inspecionar
TE1Desmontar da linha + +
TE2Descontaminar + +
TE3Pŕe-Teste + +
TE4Abertura da válvula, análise e controle dos + componentes + +
TE5Limpeza e lavagem dos componentes + +
TE6Retificação e lapidação + +
TE7Fecho da válvula e substituição de + componentes + +
TE8Calibrar e certificar + +
TE9Pintura + +
TE10Montagem na linha + +
TE10.1Confirmação de ligação + +
TE11Inspeção Final + +
+
+ + {{-- @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) --}} + +
+ {{-- ./description --}} +
+ {{-- ./card-body --}} +
+ @endif + +
+ {{-- Visualizar --}} + @endif + + + @if ($portfolioOnlyreadOrEditToo == 2 || $portfolioOnlyreadOrEditToo == 3) + {{-- Editar-PSV --}} +
+ +
+
+

PSV

+
+ + +
+ @csrf +
+ + + + +
+
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} +
+ +
+
+ + + + +
+
+
+
+ + + + + {{-- --}} +
+
+
+
+ + + + + {{-- --}} +
+
+
+ + + {{-- 3 inputs per line :dim_ent, dim_exit, dim_right --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : rating, rating_flange_mount, rating_flange_jusante --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} +
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+
+ + + + +
+
+
+ + + {{-- 3 inputs per line :SP_(Bar)_Cold, Back_Presure_(Bar), manufacturer --}} +
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+
+ + + + +
+
+ +
+ + + {{-- 3 inputs per line : material, isolation, decontamination --}} +
+ +
+
+ + + + + +
+
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ +
+ + + {{-- 3 Selects per line : scaffolding, psv_crane, interlocks --}} +
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ + +
+
+ + + + +
+
+ +
+ + + +
+ +
+
+ + @if (isset($receiveEquipmentWorkHistorys)) + {{-- Âmbito-PSV-Editar --}} +
+ +
+

Âmbito : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} + - Editar +

+
+ +
+
+ {{-- ./card-header --}} +
+
+
+

Lista de Tarefas Elementares : + {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} +

+
+ +
+ +
+ @csrf + + + + + + + {{-- --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{-- Apenas para ver se recebe um on ou off, o hidden serve para devolver valor se o checkbox não estiver a 'checked' --}} + + + + + + + + + + + + + + +
#Tarefas ElementaresSelecionar Tarefa + Inspecionar
TE1Desmontar da linha + + + +
TE2Descontaminar + + + +
TE3Pŕe-Teste + + + +
TE4Abertura da válvula, análise e controle dos + componentes + + + +
TE5Limpeza e lavagem dos componentes + + + +
TE6Retificação e lapidação + + + +
TE7Fecho da válvula e substituição de + componentes + + + +
TE8Calibrar e certificar + + + +
TE9Pintura + + + +
TE10Montagem na linha + + + +
TE10.1Confirmação de ligação + + + +
TE11Inspeção Final + + + +
+ + + +
+ +
+ + @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) + +
+ {{-- ./description --}} +
+ {{-- ./card-body --}} +
+ @endif +
+ {{-- ./Editar-PSV --}} + @endif + +@endif + + + + + + + + + + + + + + + + diff --git a/resources/views/projectsClients/articulated_2_ShowEquipment.blade.php b/resources/views/projectsClients/articulated_2_ShowEquipment.blade.php index 625b34e1..debdd5db 100755 --- a/resources/views/projectsClients/articulated_2_ShowEquipment.blade.php +++ b/resources/views/projectsClients/articulated_2_ShowEquipment.blade.php @@ -86,3222 +86,7 @@
- {{-- CV --}} - @if ($dataEquipment->equipment_type_id == 1) - {{-- Visualizar --}} -
- - {{-- ./CV-card-visualizar --}} -
-
-

CV

-
-
- {{-- 2 inputs per line :equipmentTag ,equipmentDescription --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 inputs per line :serialNumberEquipment, equipmentBrand, equipmentModel --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- - {{-- ./row --}} - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - -
-
- -
-
- - - - -
-
- -
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line :main_equipment ,P_idEquipment ,NumberSapEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line :materialEquipment ,manufacturerEquipment ,isolationEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line : actuatorManufacturer,ActuatorModel,actuatorSerialNumber --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./Row --}} - {{-- 2 Inputs per line : PositionerManufacturer,PositionerSerialNumber --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 2 Selects per line :scaffold, crane --}} -
-
-
- - - - - -
-
-
-
- - - - - -
-
-
- {{-- ./row --}} -
-
- {{-- ./CV-card-visualizar --}} - - {{-- Ambito-CV-Visualizar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Visualizar -

-
- -
-
- {{-- ./card-header --}} -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
- - - - - - - - {{-- --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa - Inspecionar
TE1Desmontar da linha - -
TE12Inspeção visual - -
TE2Descontaminar - -
TE3(2)Pŕe-Teste - -
TE4(2)Abertura da válvula, análise e controle dos - componentes - -
TE5Limpeza e lavagem dos componentes - -
TE7(2)Fecho da válvula e substituição de - componentes - -
TE13Teste final - -
TE9Pintura - -
TE10Montagem na linha - -
TE10.1Confirmação de ligação - -
TE11Inspeção Final - -
-
- - {{-- @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) --}} - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
- {{-- ./Ambito-CV-Visualizar --}} - -
- {{-- ./Visualizar --}} - - {{-- Editar --}} -
- - {{-- CV-card-Editar --}} -
-
-

CV - Editar

-
-
- @csrf -
- - - - - {{-- 2 inputs per line :equipmentTag ,equipmentDescription --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 inputs per line :serialNumberEquipment, equipmentBrand, equipmentModel --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - -
-
- -
-
- - - - -
-
- -
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line :main_equipment ,P_idEquipment ,NumberSapEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line :materialEquipment ,manufacturerEquipment ,isolationEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 3 Inputs per line : actuatorManufacturer, --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./Row --}} - {{-- 2 Inputs per line : actuatorManufacturer, --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - {{-- 2 Selects per line :scaffold, crane --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - -
-
-
- {{-- ./CV-card-Editar --}} - - {{-- Ambito-CV-Editar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Editar -

-
- -
-
- {{-- ./card-header --}} - -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
- -
- @csrf - - - - - - - - {{-- --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa - Inspecionar
TE1Desmontar da linha - - - -
TE12Inspeção visual - - - -
TE2Descontaminar - - - -
TE3(2)Pŕe-Teste - - - -
TE4(2)Abertura da válvula, análise e controle dos - componentes - - - -
TE5Limpeza e lavagem dos componentes - - - -
TE7(2)Fecho da válvula e substituição de - componentes - - - -
TE13Teste final - - - -
TE9Pintura - - - -
TE10Montagem na linha - - - -
TE10.1Confirmação de ligação - - - -
TE11Inspeção Final - - - -
- - - -
-
- - @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
- {{-- ./Ambito-CV-Editar --}} - -
- {{-- Editar --}} - @endif - - {{-- ISV --}} - @if ($dataEquipment->equipment_type_id == 2) - {{-- Visualizar --}} -
- - {{-- ISV-card-visualizar --}} -
-
-

ISV - Visualizar

-
- -
- - {{-- 2 inputs per line :equipmentTag ,equipmentDescription --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :serialNumberEquipment, equipmentBrand, equipmentModel --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 3 Inputs per line :main_equipment ,p&id ,sap_number --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 3 Inputs per line :material ,manufacturerEquipment ,isolationEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 2 Selects per line : scaffold, crane --}} -
-
-
- - - - - -
-
-
-
- - - - - -
-
-
- {{-- ./row --}} -
- -
- {{-- ./ISV-card-visualizar --}} - - {{-- Âmbito-ISV - Visualizar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Visualizar -

-
- -
-
- {{-- ./card-header --}} -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa -
TE1Desmontar da linha - -
TE2Descontaminar - -
TE4(3)Abertura da válvula, análise e controle dos componentes - -
TE5Limpeza e lavagem dos componentes - -
TE7(3)Fecho da válvula e substituição de componentes - -
TE14Ensaio - -
TE9Pintura - -
TE10Montagem na linha - -
TE11Inspeção Final - -
TE15Empancar (ISV) - -
-
- - {{-- @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) --}} - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
- {{-- ./Ambito ISV - Visualizar --}} - -
- {{-- Visualizar --}} - - {{-- Editar --}} -
- - {{-- ISV-card-Editar --}} -
-
-

ISV - Editar

-
- -
- @csrf -
- - - - {{-- 2 inputs per line :equipmentTag ,equipmentDescription --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :serialNumberEquipment, equipmentBrand, equipmentModel --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 Inputs per line :main_equipment ,p&id ,sap_number --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 3 Inputs per line :material ,manufacturerEquipment ,isolationEquipment --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 2 Selects per line :scaffold, crane --}} -
-
-
- - - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - -
- -
-
- {{-- ./ISV-card-Editar --}} - - {{-- Âmbito-ISV - Editar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Editar -

-
- -
-
- {{-- ./card-header --}} -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
-
- @csrf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa -
TE1Desmontar da linha - - - -
TE2Descontaminar - - - -
TE4(3)Abertura da válvula, análise e controle dos componentes - - - -
TE5Limpeza e lavagem dos componentes - - - -
TE7(3)Fecho da válvula e substituição de componentes - - - -
TE14Ensaio - - - -
TE9Pintura - - - -
TE10Montagem na linha - - - -
TE11Inspeção Final - - - -
TE15Empancar (ISV) - - - -
- - -
-
- - @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
- {{-- ./Ambito ISV - Editar --}} - - -
- {{-- Editar --}} - - - @endif - - {{-- PSV --}} - @if ($dataEquipment->equipment_type_id == 3) - {{-- Visualizar --}} -
- {{-- ./PSV-card --}} -
-
-

PSV

-
- -
- -
-
-
- - - - -
-
- -
-
- - - - -
-
- -
- - - {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - - {{-- --}} -
-
- -
-
- - - - - {{-- --}} -
-
- -
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :SP_(Bar)_Cold, Back_Presure_(Bar), material --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 2 inputs per line : --}} -
-
-
- - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - {{-- 2 Selects per line :psv_scaffold, psv_crane --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - -
-
-
- {{-- ./row --}} -
- -
- {{-- ./PSV-card --}} - - {{-- Âmbito-PSV-Visualizar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Visualizar -

-
- -
-
- {{-- ./card-header --}} -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
- - - - - - - - {{-- --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa - Inspecionar
TE1Desmontar da linha - -
TE2Descontaminar - -
TE3Pŕe-Teste - -
TE4Abertura da válvula, análise e controle dos - componentes - -
TE5Limpeza e lavagem dos componentes - -
TE6Retificação e lapidação - -
TE7Fecho da válvula e substituição de - componentes - -
TE8Calibrar e certificar - -
TE9Pintura - -
TE10Montagem na linha - -
TE10.1Confirmação de ligação - -
TE11Inspeção Final - -
-
- - {{-- @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) --}} - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
- -
- {{-- Visualizar --}} - - {{-- Editar-PSV --}} -
- -
-
-

PSV

-
- - -
- @csrf -
- - - - -
-
-
- - - - -
-
- -
-
- - - - -
-
- -
- {{-- ./row --}} - - {{-- 3 inputs per line :equipmentSerialNumber, equipmentBrand, equipmentModel --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :equipmentDimension, equipmentRating, equipmentDimcerta --}} -
-
-
- - - - - {{-- --}} -
-
- -
-
- - - - - {{-- --}} -
-
- -
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line : main_equipment, p&id, sap_number --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 3 inputs per line :SP_(Bar)_Cold, Back_Presure_(Bar), material --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 2 inputs per line : --}} -
-
-
- - - - - {{-- --}} -
-
-
-
- - - - - {{-- --}} -
-
-
- {{-- ./row --}} - - {{-- 2 Selects per line :psv_scaffold, psv_crane --}} -
-
-
- - - - - -
-
-
-
- - - - -
-
-
- {{-- ./row --}} - - -
- -
-
- - {{-- Âmbito-PSV-Editar --}} -
- -
-

Âmbito : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} - - Editar -

-
- -
-
- {{-- ./card-header --}} -
-
-
-

Lista de Tarefas Elementares : - {{ $receiveEquipmentWorkHistorys->equipmentAssociationAmbit->ambitsEquipment->ambits_description }} -

-
- -
- -
- @csrf - - - - - - - {{-- --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{-- Apenas para ver se recebe um on ou off, o hidden serve para devolver valor se o checkbox não estiver a 'checked' --}} - - - - - - - - - - - - - - -
#Tarefas ElementaresSelecionar Tarefa - Inspecionar
TE1Desmontar da linha - - - -
TE2Descontaminar - - - -
TE3Pŕe-Teste - - - -
TE4Abertura da válvula, análise e controle dos - componentes - - - -
TE5Limpeza e lavagem dos componentes - - - -
TE6Retificação e lapidação - - - -
TE7Fecho da válvula e substituição de - componentes - - - -
TE8Calibrar e certificar - - - -
TE9Pintura - - - -
TE10Montagem na linha - - - -
TE10.1Confirmação de ligação - - - -
TE11Inspeção Final - - - -
- - - -
- -
- - @livewire('articulado.additonal-task', ['equipment' => $dataEquipment], key($dataEquipment->equipment_id)) - -
- {{-- ./description --}} -
- {{-- ./card-body --}} -
-
- {{-- ./Editar-PSV --}} - @endif +
@@ -3408,3 +193,8093 @@ class="form-control card_inputs" id="isolation" }) @endsection + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +@forelse ($recebeTasksForEquipment as $task_todo) + +@if ($task_todo->elemental_tasks_id == 1) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + +
+ + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + + + + +

+ + + + + + @endif + + + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+
+ formatted_answers['diameter']) && $task_todo->formatted_answers['diameter'] == 'Polegadas') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+ formatted_answers['diameter']) && $task_todo->formatted_answers['diameter'] == 'Milímetros') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> x + + cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ + +
+
+
+ formatted_answers['piping']) && $task_todo->formatted_answers['piping'] == 'TRUE') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+ formatted_answers['piping']) && $task_todo->formatted_answers['piping'] == 'FALSE') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+ +
+ +
+@endif + + +{{-- Verificar ??? --}} +{{-- + + + + + --}} + + + +{{-- TE12 - Inspeção visual --}} +@if ($task_todo->elemental_tasks_id == 18) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 2) +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+ + + +
+ @csrf + + + +
+ + + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + + + + + +
+
+ +
+ +
+
+ formatted_answers['decontamination']) && + $task_todo->formatted_answers['decontamination'] == 'yes') || + !isset($task_todo->formatted_answers['decontamination'])) checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+ formatted_answers['decontamination']) && $task_todo->formatted_answers['decontamination'] == 'no') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+ formatted_answers['decontamination']) && $task_todo->formatted_answers['decontamination'] == 'nA') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+ +
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+ +
+
+@endif + + +@if ($task_todo->elemental_tasks_id == 3) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ + +
+
+ @csrf + + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ + +
+ +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+ + +
+ formatted_answers['validate'] ?? '' == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> +
+
+ + + +
+ + +
+ + + +
+
+ +
+
+
+ cardTypeStyle == 'gray') readonly @endif> + +
+
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+ +
+
+ +
+ + + +
+ + +
+
+
+
+ cardTypeStyle == 'gray') readonly @endif> + +
+
+ + + +
+
+ + +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ + +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ + +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Falha ao abrirFalha de estanquicidade (Fuga) +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ + +
+ + + + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 4) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ + +
+ +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+
+ formatted_answers['validate_technical_specifications'] ?? '' == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif + required> + +
+
+ + + +
+ + +
+ + + +
+
+ + * +
+
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+
+ + + +
+
+ +
+
+ +
+
+ + + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+ +
+ + + + +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+ {{-- @dd($task_todo->formatted_answers) --}} + +
+ + + + +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+ + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+@endif + + +@if ($task_todo->elemental_tasks_id == 5) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+ + +
+ +
+ + +
+ +
+ +
+ + +
+
+ + +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+
+ +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+ + +
+ + +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 6) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ +
+ +
+
+ +
+ + +
+
+ + +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ +
+ +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ + + +
+ +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 7) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + +
+ + +
+ +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+
+ {{-- formatted_answers['validate_technical_specifications'] ?? '' == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif + required> + --}} +
+
+ + + +
+ + +
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 8) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+
+ +
+
+ +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 9) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + +
+ +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 10) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + + + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + + + + +

+ + + + + + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+ +
+@endif + +{{-- + + + --}} + + + +@if ($task_todo->elemental_tasks_id == 11) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + + + + +
+ + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ + +
+ +
+ +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+ +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ + + +
+ +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 12) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + + + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+ + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ +
+ + +
+ +
+ + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+ +
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 13) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf +
+ + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ +
+
+ + * +
+
+
+ cardTypeStyle == 'gray') readonly @endif + required> +
+
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 14) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+
+ +
+
+ +
+
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 15) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + + + + + +

+ + + + + + +
+ {{--
+ formatted_answers['confirm_label_compliance']) && $task_todo->formatted_answers['confirm_label_compliance'] == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif required> + +
--}} +
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+ +
+ +
+@endif + + +@if ($task_todo->elemental_tasks_id == 16) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+ {{--
+ formatted_answers['confirm_label_compliance']) && $task_todo->formatted_answers['confirm_label_compliance'] == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif required> + +
--}} +
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 24) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + + + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ + +
+
+ +
+
+
+ formatted_answers['executed']) && $task_todo->formatted_answers['executed'] == 'Sim') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif + required> + +
+
+ formatted_answers['executed']) && $task_todo->formatted_answers['executed'] == 'Não') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif> + +
+
+
+ + + +
+ + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+@endif + + +@if ($task_todo->elemental_tasks_id == 17) + +
+ +
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + +
+ + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+
+ formatted_answers['check_flanges_tightness']) && + $task_todo->formatted_answers['check_flanges_tightness'] == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif required> + +
+
+ + + +
+
+ formatted_answers['check_the_tightness_of_the_bolts']) && + $task_todo->formatted_answers['check_the_tightness_of_the_bolts'] == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif required> + +
+
+ + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+ +
+@endif + + +@if ($task_todo->elemental_tasks_id == 19) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf + +
+ + + + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ + +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif> +
+
+ + + +
+
+ + +
+
+ +
+
+ + + +
+ + +
+ + +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + + +@if ($task_todo->elemental_tasks_id == 20) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+
+
+ @csrf +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+
+ +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ +
+ +
+ + +
+ +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+ +
+@endif + + +@if ($task_todo->elemental_tasks_id == 21) + +
+
+
+

+ {{ $task_todo->elementalTask->elemental_tasks_code }} - + {{ $task_todo->elementalTask->elemental_tasks_description }}

+
+ +
+
+
+ +
+
+ @csrf + +
+ + + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + +
+
+
+

Observações

+
+ +
+
+
+
+ + + + + +
+
+ + @endif + +
+ @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif + + +
+ +
+ +
+
+ formatted_answers['validate_technical_specifications'] ?? '' == 'on') checked @endif + @if ($task_todo->cardTypeStyle == 'gray') disabled @endif required> + +
+
+ + + +
+ + +
+ + +
+
+
+ + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ + + +
+
+ +
+
+ cardTypeStyle == 'gray') readonly @endif required> +
+
+ +
+ +
+ + @if ($task_todo->cardTypeStyle != 'gray' && $task_todo->cardTypeStyle != '#8CC084') + + @endif +
+
+
+ +@endif + +@empty +

O obturador do equipamento selecionado não tem tarefas associadas. Por favor, feche e + selecione o obturador de outro equipamento. Este equipamento não inclui a tarefa TE6 - + Retificação e lapidação.

+@endforelse + + + diff --git a/resources/views/projectsClients/executionProjectNew.blade.php b/resources/views/projectsClients/executionProjectNew.blade.php index 193a005f..676f1817 100755 --- a/resources/views/projectsClients/executionProjectNew.blade.php +++ b/resources/views/projectsClients/executionProjectNew.blade.php @@ -104,9 +104,10 @@ @if ((auth()->user() && auth()->user()->type_users == 2) || (auth()->user() && auth()->user()->type_users == 1))
- -
+ +
Imprimir Qrcodes
@if ((auth()->user() && auth()->user()->type_users == 2) || (auth()->user() && auth()->user()->type_users == 1)) - {{-- Faça algo específico para esse tipo de usuário --}} +
+ +
+

Lista de equipamentos da Obra - Por iniciar

+
+ + +
+ + + + + + + + + + + + + + + +
N.IsptTagDescriçãoTipo EquipamentoFabricaEquipamento ExtraÂmbitostatusAção
+ +
+
+ +
@@ -178,12 +208,14 @@ class="btn btn-danger">Imprimir Qrcodes + + @@ -206,12 +238,14 @@ class="btn btn-danger">Imprimir Qrcodes class="table table-bordered table-striped"> + + @@ -234,12 +268,14 @@ class="table table-bordered table-striped"> class="table table-bordered table-striped"> + + @@ -342,6 +378,7 @@ class="table table-bordered table-striped"> @endsection @section('scriptsTemplateAdmin') + - - @endsection diff --git a/resources/views/projectsClients/pdf/_header.blade.php b/resources/views/projectsClients/pdf/_header.blade.php index 66c1756b..ccf780ed 100644 --- a/resources/views/projectsClients/pdf/_header.blade.php +++ b/resources/views/projectsClients/pdf/_header.blade.php @@ -6,10 +6,9 @@ style="max-width: 85px; max-height: 85px;">
- {{-- Company Logo --}} - Company Logo + Company Logo +
diff --git a/resources/views/projectsClients/pdf/testePdf.blade.php b/resources/views/projectsClients/pdf/testePdf.blade.php index 62873a06..3173a50f 100644 --- a/resources/views/projectsClients/pdf/testePdf.blade.php +++ b/resources/views/projectsClients/pdf/testePdf.blade.php @@ -17,22 +17,27 @@ @if ($detailsEquipment->equipment_type_id == 3) -

FICHA DE BENEFICIAÇÃO E REPARAÇÃO
DE
VÁLVULAS DE SECCIONAMENTO

+

FICHA DE EQUIPAMENTO PSV
DE
{{ $detailsEquipment['specificAttributes'][5]['value'] ?? 'N/A' }} +

+ @elseif($detailsEquipment->equipment_type_id == 1) -

FICHA DE BENEFICIAÇÃO E REPARAÇÃO
DE
VÁLVULAS DE CONTROLO E ON/OFF

+

FICHA DE EQUIPAMENTO CV
DE
{{ $detailsEquipment['specificAttributes'][5]['value'] ?? 'N/A' }} +

+ @else -

FICHA DE BENEFICIAÇÃO E REPARAÇÃO
DE
VÁLVULAS DE SEGURANCA

+

FICHA DE EQUIPAMENTO ISV
DE
{{ $detailsEquipment['specificAttributes'][5]['value'] ?? 'N/A' }} +

@endif
-

OBRA Nº:N/A -
FICHA Nº: {{ $detailsEquipmentWorkHistory->ispt_number }} -
PAGINA : 1 de {{ $totalPages }} +

OBRA Nº: {{ $receiveDetailsProject->project_ispt_number ?? 'N/A' }} +
FICHA Nº: {{ $detailsEquipmentWorkHistory->ispt_number ?? 'N/A' }} +
PAGINA : 1 de {{ $totalPages ?? 'N/A' }}

@@ -40,12 +45,12 @@
N.Ispt Tag Descrição Tipo Equipamento Fabrica Equipamento Extra Âmbitostatus Ação
N.Ispt Tag Descrição Tipo Equipamento Fabrica Equipamento Extra Âmbitostatus Ação
N.Ispt Tag Descrição Tipo Equipamento Fabrica Equipamento Extra Âmbitostatus Ação
- - + + - - +
Cliente: {{ $receiveDetailsProject->plant->company->company_name }} Obra Cliente: N/A Cliente: {{ $receiveDetailsProject->plant->company->company_name ?? 'N/A' }} Obra Cliente: {{ $receiveDetailsProject->company_project_description ?? 'N/A' }}
Unidade: {{ $receiveDetailsProject->plant->plant_name }} Trabalhos Realizados de: {{ $oldestDate }} a {{ $latestDate }} + Unidade: {{ $receiveDetailsProject->plant->plant_name ?? 'N/A' }} Trabalhos Realizados de: {{ $oldestDate ?? 'N/A' }} a {{ $latestDate ?? 'N/A' }}
@@ -250,8 +255,8 @@
+ @if (!empty($detailsEquipmentWorkHistory->justification_for_finalization)) -

* @@ -298,7 +303,6 @@ @endsection @section('loopPages') - @php $pageCounter = 2; // Start from page 2, assuming the first page is already handled @endphp @@ -323,7 +327,8 @@

@include('components.elemental-tasks', ['task_todo' => $task_todo]) - @if (isset($taskImages[$task_todo->control_equipment_workstation_id]) && is_array($taskImages[$task_todo->control_equipment_workstation_id])) + @if (isset($taskImages[$task_todo->control_equipment_workstation_id]) && + is_array($taskImages[$task_todo->control_equipment_workstation_id]))
@foreach ($taskImages[$task_todo->control_equipment_workstation_id] as $image)
@@ -354,5 +359,4 @@ $pageCounter++; // Increment the page counter for each iteration @endphp @endforeach - @endsection diff --git a/resources/views/projectsClients/preparedProject.blade.php b/resources/views/projectsClients/preparedProject.blade.php index 1681ae84..19e933ea 100755 --- a/resources/views/projectsClients/preparedProject.blade.php +++ b/resources/views/projectsClients/preparedProject.blade.php @@ -453,7 +453,7 @@ class="checkboxChoseTasksOficesCV" Alterar para Execussao + class="btn btn-primary float-right">Alterar para execução