优化付款交货待办展示并支持列表快捷登记

This commit is contained in:
reddaniel110
2026-09-17 15:20:39 +08:00
parent 000f4198a8
commit 0e45a58e5b
16 changed files with 591 additions and 103 deletions
+4 -3
View File
@@ -203,13 +203,14 @@ def run(executable=None):
approver.screenshot(path=str(RUN / (kind+'-mobile-tracking.png')))
assert hashlib.sha256(approver.request.get(view_url.replace('/view','/pdf')).body()).hexdigest() == archives[-1][1]
admin.goto(base + '/')
for key in ('prepayment', 'invoice_due', 'partial_delivery', 'paid_undelivered'):
for key in ('prepayment', 'invoice_due', 'paid_undelivered'):
assert admin.locator('[data-tracking="'+key+'"] .v').inner_text() == '1', key
assert admin.locator('#board-filter option[value="partial_delivery"]').inner_text() == '部分交货(1)'
admin.screenshot(path=str(RUN / 'tracking-dashboard.png'), full_page=True)
admin.locator('[data-tracking="paid_undelivered"]').click()
admin.wait_for_load_state('networkidle')
assert admin.locator('table.grid tr').count() == 2
assert 'WO' in admin.locator('table.grid tr').nth(1).inner_text()
assert admin.locator('.tracking-table tbody tr').count() == 1
assert 'WO' in admin.locator('.tracking-table tbody tr').first.inner_text()
admin.screenshot(path=str(RUN / 'tracking-filter.png'), full_page=True)
for width in (320, 390, 768):
approver.set_viewport_size({'width':width, 'height':844})