|
@@ -771,21 +771,14 @@ class _ExpenseApplyEditPageState extends ConsumerState<ExpenseApplyEditPage> {
|
|
|
LoadingDialog.hide(context);
|
|
LoadingDialog.hide(context);
|
|
|
|
|
|
|
|
if (billNo != null) {
|
|
if (billNo != null) {
|
|
|
- try {
|
|
|
|
|
- final config = await api.getBillAuditConfig('AE');
|
|
|
|
|
- if (!mounted) return;
|
|
|
|
|
- final hasFlow = config['hasAuditFlow'] == true;
|
|
|
|
|
- final autoSubmit = config['autoSubmit'] == true;
|
|
|
|
|
- if (hasFlow && !autoSubmit) {
|
|
|
|
|
- final dd = data['HeadData']['AE_DD']?.toString() ?? '';
|
|
|
|
|
- await AuditFlowHelper.handle(
|
|
|
|
|
- context: context,
|
|
|
|
|
- l10n: l10n,
|
|
|
|
|
- getConfig: () async => config,
|
|
|
|
|
- onShSubmit: () => api.shSubmit(bilNo: billNo, bilDd: dd),
|
|
|
|
|
- );
|
|
|
|
|
- }
|
|
|
|
|
- } catch (_) {}
|
|
|
|
|
|
|
+ final dd = data['HeadData']['AE_DD']?.toString() ?? '';
|
|
|
|
|
+ await AuditFlowHelper.handle(
|
|
|
|
|
+ context: context,
|
|
|
|
|
+ l10n: l10n,
|
|
|
|
|
+ getConfig: () => api.getBillAuditConfig('AE'),
|
|
|
|
|
+ onShSubmit: () => api.shSubmit(bilNo: billNo, bilDd: dd),
|
|
|
|
|
+ skipOnAutoSubmit: true,
|
|
|
|
|
+ );
|
|
|
}
|
|
}
|
|
|
if (mounted) {
|
|
if (mounted) {
|
|
|
TDToast.showSuccess(l10n.get('billModified'), context: context);
|
|
TDToast.showSuccess(l10n.get('billModified'), context: context);
|