修复小额打款导出筛选条件 (#163)

This commit is contained in:
yueyang 2026-09-11 16:16:21 +08:00
parent a0858a0ff2
commit 60063e9d34
2 changed files with 3 additions and 1 deletions

View File

@ -189,7 +189,7 @@
class="upstream-data-table small-payment-table small-payment-table--wide"
aria-label="聚水潭小额打款工单"
data-finance-export-base="{{ route('business.financial-operations.small-payment-work-orders.export') }}"
data-finance-export-query="{{ e(json_encode($filters, JSON_UNESCAPED_UNICODE)) }}"
data-finance-export-query="{{ json_encode($filters, JSON_UNESCAPED_UNICODE) }}"
data-finance-export-disabled="{{ $rows->total() === 0 || $smallPaymentError || $smallPaymentPending || $smallPaymentIndexPending ? 'true' : 'false' }}"
>
<thead>

View File

@ -89,6 +89,8 @@ class SmallPaymentWorkOrderPageTest extends FeatureTestCase
->assertSeeText('第 2 / 2 页')
->assertSee('workspace/financial-operations/small-payment-work-orders/export', false)
->assertSee('data-finance-export-base=', false)
->assertSee('data-finance-export-query="{&quot;from&quot;:&quot;2026-09-01&quot;,&quot;to&quot;:&quot;2026-09-03&quot;', false)
->assertDontSee('data-finance-export-query="{&amp;quot;', false)
->assertSee('data-export-field="work_order_no"', false)
->assertSee('value="ORDER-001"', false);
}