第5项:按页面管理导航、历史草稿与操作回执

This commit is contained in:
黄健铭 committed 2026-12-05 08:14:03 -08:00
1 parent f570929cfe
commit ff8b05973a
48 files changed
+1577 -574

No files matched your search

@@ -6,6 +6,8 @@ export async function material(context, { owner, assistant, yesterday }) {
const { action, field, fill, navigate, write, submit } = ui(context);
async function buy(page, label, date, grams, total, note) {
await navigate(page, 'material-pools');
// 旧界面读完料池后会替换整个购料表单,此时才可稳定填写。
await page.locator('#material-pools-content .material-pool-table').first().waitFor();
const form = page.locator('#material-purchase-form');
await fill(form, { date, grams, total, note });
await write(label, page, '/api/material-purchases', () => submit(form));