feat(android): add attachment config dialog and FJ- scan in registration

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-08-12 14:56:28 +08:00
parent b7484915c6
commit 6b05d6c0e3
6 changed files with 503 additions and 1 deletions

View File

@@ -45,8 +45,9 @@ extension _RegistrationScanPart on _RegistrationPageState {
final parsed = CodeParser.parse(result.barcode);
switch (parsed.type) {
case CodeType.zongpaiNo:
case CodeType.attachmentCode:
_handleZongpaiScan(parsed.value);
case CodeType.attachmentCode:
_handleAttachmentScan(parsed.value);
case CodeType.locationNormal:
case CodeType.locationTransit:
case CodeType.locationTempStorage:
@@ -116,6 +117,8 @@ extension _RegistrationScanPart on _RegistrationPageState {
if (shouldRefresh) {
_loadOverview(zongpaiNo);
}
// Trigger attachment config check in background (modal dialog if needed)
unawaited(_checkAndConfigureAttachment(zongpaiNo));
}
void _triggerDoubleVibration() {