This commit is contained in:
Dwi Swandhana
2026-05-04 06:32:22 +07:00
parent fe89a024a1
commit 16eac8512e
11 changed files with 466 additions and 56 deletions
@@ -1981,10 +1981,25 @@ class DokterController extends Controller
'marking' => '',
]);
}
Periksa::where('id', $idperiksa)->update([
'status' => $request->input('komponen') ?? ''.' '.$request->input('status') ?? '',
if ($status == 'Proses identifikasi dan uji kepekaan vitek'){
$status = 'Sedang ID+AST';
}
if ($status == 'Proses identifikasi dan uji kepekaan manual'){
$status = 'Sedang ID+AST';
}
if ($status == 'Proses identifikasi malditof+ uji kepekaan vitek'){
$status = 'Sedang ID+AST';
}
if ($status == 'Proses identifikasi malditof+ uji kepekaan manual'){
$status = 'Sedang ID+AST';
}
if ($status == 'Proses identifikasi manual+ uji kepekaan vitek'){
$status = 'Sedang ID+AST';
}
Periksa::where('id', $nofoto)->update([
'status' => $status,
]);
return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => $request->input('komponen') ?? ''.' '.$request->input('status') ?? '']);
return response()->json(['icon' => 'success', 'warna' => '#1dcbbd', 'status' => 'Success', 'message' => $request->input('komponen') ?? ''.' '.$status]);
} catch (Exception $e) {
$pesan = $e->getMessage();
Log::error('Gagal Input Pertumbuhan Koloni', [
@@ -2016,10 +2031,9 @@ class DokterController extends Controller
return back();
}
} else if ($worklist == 'copydatabaptocap'){
$getdataawal = Periksa::where('nofoto', $nofoto)->first();
$id = $getdataawal->id ?? $nofoto;
$idtabel = $request->input('id');
try {
$ceksek = DB::table('pertumkolomni')->where('orderid', $id)->first();
$ceksek = DB::table('pertumkolomni')->where('id', $idtabel)->first();
DB::table('pertumkolomni')->insert([
'orderid' => $ceksek->orderid ?? $id,
'tglpenyimpanan' => date('Y-m-d'),