feat: improve patient flow and pricing workflow
This commit is contained in:
@@ -352,7 +352,9 @@ class _JobDetailBody extends StatelessWidget {
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
job.patientCode,
|
||||
job.patientName?.isNotEmpty == true
|
||||
? job.patientName!
|
||||
: job.patientCode,
|
||||
style: Theme.of(context).textTheme.headlineSmall
|
||||
?.copyWith(
|
||||
fontWeight: FontWeight.bold,
|
||||
@@ -368,6 +370,8 @@ class _JobDetailBody extends StatelessWidget {
|
||||
|
||||
// Patient + Lab
|
||||
_SectionLabel(title: 'Hasta & Laboratuvar'),
|
||||
if (job.patientName != null && job.patientName!.isNotEmpty)
|
||||
_InfoRow(label: 'Hasta', value: job.patientName!),
|
||||
_InfoRow(label: 'Protokol No', value: job.patientCode),
|
||||
if (job.patientId != null)
|
||||
_InfoRow(label: 'Hasta ID', value: job.patientId!),
|
||||
@@ -378,6 +382,14 @@ class _JobDetailBody extends StatelessWidget {
|
||||
// Prosthetic
|
||||
_SectionLabel(title: 'Protez Bilgisi'),
|
||||
_InfoRow(label: 'Tür', value: job.prostheticType.label),
|
||||
if (job.prostheticName != null && job.prostheticName!.isNotEmpty)
|
||||
_InfoRow(label: 'Ürün', value: job.prostheticName!),
|
||||
if (job.workflowType != null)
|
||||
_InfoRow(label: 'İş Tipi', value: job.workflowType!.label),
|
||||
_InfoRow(
|
||||
label: 'Prova',
|
||||
value: job.provaRequired ? 'Provalı' : 'Provasız',
|
||||
),
|
||||
_InfoRow(label: 'Üye Sayısı', value: '${job.memberCount}'),
|
||||
if (job.teeth.isNotEmpty)
|
||||
_InfoRow(label: 'Dişler', value: job.teeth.join(', ')),
|
||||
@@ -746,4 +758,3 @@ class _StatusBadge extends StatelessWidget {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user