Added logic to load work center based on serial number list
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
This commit is contained in:
@@ -176,6 +176,7 @@ class RandomSerialNumberList extends Component
|
||||
}
|
||||
|
||||
$stickerOptions = [];
|
||||
$workCenterId = null;
|
||||
|
||||
foreach ($stickerMappings as $stickerMapping) {
|
||||
|
||||
@@ -185,9 +186,9 @@ class RandomSerialNumberList extends Component
|
||||
|
||||
$stickerMachineId = $stickerMapping->$machineColumn;
|
||||
|
||||
if ((string) $stickerMachineId != (string) $machineId) {
|
||||
continue;
|
||||
}
|
||||
// if ((string) $stickerMachineId != (string) $machineId) {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
$structureColumn = "sticker_structure{$i}_id";
|
||||
|
||||
@@ -205,6 +206,8 @@ class RandomSerialNumberList extends Component
|
||||
$detail->sticker_id;
|
||||
}
|
||||
|
||||
$workCenterId = $stickerMachineId;
|
||||
|
||||
$this->dispatch('sticker-structure-updated', stickerStructureId: $stickerStructureId);
|
||||
|
||||
}
|
||||
@@ -213,6 +216,8 @@ class RandomSerialNumberList extends Component
|
||||
$this->dispatch('sticker-options', stickerOptions: $stickerOptions);
|
||||
|
||||
$this->dispatch('production-order-updated', productionOrder: $productionOrder);
|
||||
|
||||
$this->dispatch('work-center-updated', workCenter: $workCenterId);
|
||||
}
|
||||
|
||||
public function generate(): void
|
||||
|
||||
Reference in New Issue
Block a user