|
|
@@ -81,8 +81,6 @@ class _VehicleApplyDetailPageState
|
|
|
} catch (_) {}
|
|
|
|
|
|
final hasAuditFlow = auditConfig?['hasAuditFlow'] == true;
|
|
|
- final autoSubmit = auditConfig?['autoSubmit'] == true;
|
|
|
- final canManualSubmit = hasAuditFlow && !autoSubmit;
|
|
|
|
|
|
final canReturn =
|
|
|
rights?['canAdd'] == true || rights?['canModify'] == true;
|
|
|
@@ -92,7 +90,7 @@ class _VehicleApplyDetailPageState
|
|
|
_billStatusBar = (status != null)
|
|
|
? BillStatusBar(
|
|
|
billStatus: status,
|
|
|
- canManualSubmit: canManualSubmit,
|
|
|
+ hasAuditFlow: hasAuditFlow,
|
|
|
returnedText: AppLocalizations.of(
|
|
|
context,
|
|
|
).get('vehicleReturned'),
|
|
|
@@ -124,7 +122,7 @@ class _VehicleApplyDetailPageState
|
|
|
final dd = _data?.ycDd != null
|
|
|
? du.DateUtils.formatDate(_data!.ycDd!)
|
|
|
: '';
|
|
|
- LoadingDialog.show(context, text: l10n.get('submitting'));
|
|
|
+ LoadingDialog.show(context, text: l10n.get('cancelling'));
|
|
|
try {
|
|
|
await api.shSubmit(
|
|
|
bilNo: widget.billNo,
|
|
|
@@ -412,14 +410,29 @@ class _VehicleApplyDetailPageState
|
|
|
showArrow: false,
|
|
|
),
|
|
|
const SizedBox(height: 16),
|
|
|
- TripRouteCard(
|
|
|
- originLabel: app.originAdr.isNotEmpty ? app.originAdr : '-',
|
|
|
- destLabel: app.destAdr.isNotEmpty ? app.destAdr : '-',
|
|
|
- originLat: app.originLatitude,
|
|
|
- originLng: app.originLongitude,
|
|
|
- destLat: app.destLatitude,
|
|
|
- destLng: app.destLongitude,
|
|
|
- ),
|
|
|
+ if (app.originAdr.isEmpty && app.destAdr.isEmpty) ...[
|
|
|
+ FormFieldRow(
|
|
|
+ label: l10n.get('origin'),
|
|
|
+ value: '-',
|
|
|
+ readOnly: true,
|
|
|
+ showArrow: false,
|
|
|
+ ),
|
|
|
+ const SizedBox(height: 16),
|
|
|
+ FormFieldRow(
|
|
|
+ label: l10n.get('destination'),
|
|
|
+ value: '-',
|
|
|
+ readOnly: true,
|
|
|
+ showArrow: false,
|
|
|
+ ),
|
|
|
+ ] else
|
|
|
+ TripRouteCard(
|
|
|
+ originLabel: app.originAdr.isNotEmpty ? app.originAdr : '-',
|
|
|
+ destLabel: app.destAdr.isNotEmpty ? app.destAdr : '-',
|
|
|
+ originLat: app.originLatitude,
|
|
|
+ originLng: app.originLongitude,
|
|
|
+ destLat: app.destLatitude,
|
|
|
+ destLng: app.destLongitude,
|
|
|
+ ),
|
|
|
],
|
|
|
);
|
|
|
}
|