Compare commits
7 Commits
f5345fc2b8
...
000c80c1e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
000c80c1e6 | ||
|
|
aae2fafc1f | ||
|
|
e958a036c7 | ||
|
|
710ff318ef | ||
|
|
5ec4be082d | ||
|
|
955d143f52 | ||
|
|
5b287f974d |
@@ -415,6 +415,9 @@ class TestingPanelReadingResource extends Resource
|
|||||||
Tables\Columns\TextColumn::make('update_count')
|
Tables\Columns\TextColumn::make('update_count')
|
||||||
->label('Updated Count')
|
->label('Updated Count')
|
||||||
->alignCenter(),
|
->alignCenter(),
|
||||||
|
Tables\Columns\TextColumn::make('output_flag')
|
||||||
|
->label('Output Flag')
|
||||||
|
->alignCenter(),
|
||||||
Tables\Columns\TextColumn::make('scanned_at')
|
Tables\Columns\TextColumn::make('scanned_at')
|
||||||
->label('Scanned At')
|
->label('Scanned At')
|
||||||
->alignCenter()
|
->alignCenter()
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ class PalletFromLocatorDataTable extends Component
|
|||||||
$this->dispatch('open-modal', id: 'confirm-process-modal');
|
$this->dispatch('open-modal', id: 'confirm-process-modal');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadlocatorData($records,$plantId)
|
public function loadlocatorData($records, $plantId)
|
||||||
{
|
{
|
||||||
$this->plantId = $plantId;
|
$this->plantId = $plantId;
|
||||||
$this->records = $records;
|
$this->records = $records;
|
||||||
@@ -79,8 +79,6 @@ class PalletFromLocatorDataTable extends Component
|
|||||||
return view('livewire.pallet-from-locator-data-table');
|
return view('livewire.pallet-from-locator-data-table');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// public function render()
|
// public function render()
|
||||||
// {
|
// {
|
||||||
// return view('livewire.pallet-from-locator-data-table');
|
// return view('livewire.pallet-from-locator-data-table');
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ class Line extends Model
|
|||||||
"plant_id",
|
"plant_id",
|
||||||
"name",
|
"name",
|
||||||
"type",
|
"type",
|
||||||
|
"group_work_center",
|
||||||
];
|
];
|
||||||
|
|
||||||
public function plant(): BelongsTo
|
public function plant(): BelongsTo
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ return new class extends Migration
|
|||||||
UNIQUE (plant_id, motor_testing_master_id, serial_number, machine_id, line_id, rework_count, update_count),
|
UNIQUE (plant_id, motor_testing_master_id, serial_number, machine_id, line_id, rework_count, update_count),
|
||||||
|
|
||||||
FOREIGN KEY (plant_id) REFERENCES plants (id),
|
FOREIGN KEY (plant_id) REFERENCES plants (id),
|
||||||
FOREIGN KEY (motor_testing_master_id) REFERENCES motor_testing_masters(id),
|
FOREIGN KEY (motor_testing_master_id) REFERENCES motor_testing_masters (id),
|
||||||
FOREIGN KEY (machine_id) REFERENCES machines (id),
|
FOREIGN KEY (machine_id) REFERENCES machines (id),
|
||||||
FOREIGN KEY (line_id) REFERENCES lines (id)
|
FOREIGN KEY (line_id) REFERENCES lines (id)
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$sql = <<<'SQL'
|
||||||
|
|
||||||
|
ALTER TABLE lines
|
||||||
|
ADD group_work_center TEXT DEFAULT NULL;
|
||||||
|
|
||||||
|
SQL;
|
||||||
|
|
||||||
|
DB::statement($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
// Schema::table('line_masters', function (Blueprint $table) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$sql = <<<'SQL'
|
||||||
|
|
||||||
|
ALTER TABLE machines
|
||||||
|
ADD work_center TEXT DEFAULT NULL;
|
||||||
|
|
||||||
|
SQL;
|
||||||
|
|
||||||
|
DB::statement($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
// Schema::table('machines', function (Blueprint $table) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$sql1 = <<<'SQL'
|
||||||
|
|
||||||
|
ALTER TABLE sticker_masters
|
||||||
|
ADD laser_part_validation1 TEXT DEFAULT NULL;
|
||||||
|
|
||||||
|
SQL;
|
||||||
|
|
||||||
|
DB::statement($sql1);
|
||||||
|
|
||||||
|
$sql2 = <<<'SQL'
|
||||||
|
|
||||||
|
ALTER TABLE sticker_masters
|
||||||
|
ADD laser_part_validation2 TEXT DEFAULT NULL;
|
||||||
|
|
||||||
|
SQL;
|
||||||
|
|
||||||
|
DB::statement($sql2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
// Schema::table('sticker_masters', function (Blueprint $table) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user